From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6183 invoked by alias); 25 Mar 2008 02:53:55 -0000 Received: (qmail 6173 invoked by uid 22791); 25 Mar 2008 02:53:54 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 25 Mar 2008 02:53:32 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 80CA1983C6; Tue, 25 Mar 2008 02:53:31 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 5CC8B9810C; Tue, 25 Mar 2008 02:53:31 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1JdzI2-0001Sj-G0; Mon, 24 Mar 2008 22:53:30 -0400 Date: Tue, 25 Mar 2008 02:53:00 -0000 From: Daniel Jacobowitz To: Chet Ramey Cc: Nick Roberts , Jan Kratochvil , gdb-patches@sourceware.org Subject: Re: [patch] Fix testsuite annotate-quit race (PR 544) Message-ID: <20080325025330.GA4677@caradoc.them.org> Mail-Followup-To: Chet Ramey , Nick Roberts , Jan Kratochvil , gdb-patches@sourceware.org References: <20080321204506.GA5033@host0.dyn.jankratochvil.net> <20080321210323.GA30247@caradoc.them.org> <20080321214448.GB29593@caradoc.them.org> <18406.14411.437345.335844@kahikatea.snap.net.nz> <20080323163027.GB13603@caradoc.them.org> <20080323164331.GA1195@host0.dyn.jankratochvil.net> <20080323173015.GA17514@caradoc.them.org> <18406.61574.596374.828002@kahikatea.snap.net.nz> <20080324025836.GA14474@caradoc.them.org> <47E84EEA.8000801@case.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47E84EEA.8000801@case.edu> User-Agent: Mutt/1.5.17 (2007-12-11) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-03/txt/msg00377.txt.bz2 On Mon, Mar 24, 2008 at 09:01:30PM -0400, Chet Ramey wrote: > Daniel Jacobowitz wrote: > >> What I think is happening is that rl_redisplay has some optimizations >> which cause it not to redisplay. And since we have a custom function >> installed readline isn't calling the alternate hooks that force >> display. So rl_redisplay does not actually meet the interface >> associated with rl_redisplay_function despite being its default >> value. Nasty. > > That's interesting, if true. Can anyone add detail confirming this? Sure. There's a check "rl_redisplay_function == rl_redisplay" in the readline source, and another in the definition of CUSTOM_REDISPLAY_FUNCTION. So that function is inherently special. >From what Nick and Jan have found, stty -echo and then running GDB with a custom redisplay function that just calls rl_redisplay will not display the GDB prompt. -- Daniel Jacobowitz CodeSourcery