From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4966 invoked by alias); 17 Aug 2003 12:38:44 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 4943 invoked from network); 17 Aug 2003 12:38:37 -0000 Received: from unknown (HELO walton.kettenis.dyndns.org) (213.93.115.144) by sources.redhat.com with SMTP; 17 Aug 2003 12:38:37 -0000 Received: from elgar.kettenis.dyndns.org (elgar.kettenis.dyndns.org [192.168.0.2]) by walton.kettenis.dyndns.org (8.12.6p2/8.12.5) with ESMTP id h7HCcaCH008916 for ; Sun, 17 Aug 2003 14:38:36 +0200 (CEST) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: from elgar.kettenis.dyndns.org (localhost [127.0.0.1]) by elgar.kettenis.dyndns.org (8.12.6p2/8.12.6) with ESMTP id h7HCcZF7003074 for ; Sun, 17 Aug 2003 14:38:35 +0200 (CEST) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: (from kettenis@localhost) by elgar.kettenis.dyndns.org (8.12.6p2/8.12.6/Submit) id h7HCcZDJ003071; Sun, 17 Aug 2003 14:38:35 +0200 (CEST) Date: Sun, 17 Aug 2003 12:38:00 -0000 Message-Id: <200308171238.h7HCcZDJ003071@elgar.kettenis.dyndns.org> From: Mark Kettenis To: gdb@sources.redhat.com Subject: completion.exp and the pager X-SW-Source: 2003-08/txt/msg00175.txt.bz2 Folks, On various FreeBSD 5.x systems I get a few failures in completion.exp. The first failure is: FAIL: gdb.base/completion.exp: (timeout) complete (2) 'p 'a' If I look at gdb.log, it's clear what's happening. FreeBSD has quite a few symbols in libc that start with an 'a'. Defenitely more than can be listed on a 24-line terminal. The pager kicks in and the test gets a timeout: acl_dup aio_error authdes_create acl_free aio_read authdes_getucred acl_from_text aio_return authdes_lock --More--FAIL: gdb.base/completion.exp: (timeout) complete (2) 'p 'a' ^G^MESC[K^Macl_get_entry aio_suspend authdes_ops_lock acl_get_fd aio_waitcomplete authdes_pk_seccreate This isn't our normal pager (the test does a "set height 0"), but readline's completion pager. However, we don't synchronize GDB's and readline's idea of the size of our terminal. I think we should do this. The readline library has the functions rl_{get|set}_screen_size() to communicate the size of the terminal. It's also possible to disable the completion pager entirely, but that's a bit more cumbersome, since it has to be done with rl_variable_bind(), and it doesn't seem to be possible to check the current setting. I'll see whether I can come up with a patch. Mark