From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11591 invoked by alias); 6 Nov 2011 21:17:13 -0000 Received: (qmail 11582 invoked by uid 22791); 6 Nov 2011 21:17:13 -0000 X-SWARE-Spam-Status: No, hits=-7.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 06 Nov 2011 21:16:53 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id pA6LGqes005172 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 6 Nov 2011 16:16:52 -0500 Received: from host1.jankratochvil.net (ovpn-116-24.ams2.redhat.com [10.36.116.24]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id pA6LGok1018700 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 6 Nov 2011 16:16:52 -0500 Received: from host1.jankratochvil.net (localhost [127.0.0.1]) by host1.jankratochvil.net (8.14.4/8.14.4) with ESMTP id pA6LGnOE019303; Sun, 6 Nov 2011 22:16:49 +0100 Received: (from jkratoch@localhost) by host1.jankratochvil.net (8.14.4/8.14.4/Submit) id pA6LGnb5019301; Sun, 6 Nov 2011 22:16:49 +0100 Date: Sun, 06 Nov 2011 21:17:00 -0000 From: Jan Kratochvil To: Doug Evans Cc: gdb@sourceware.org Subject: Re: Is readline's SIGINT handler supposed to set quit_flag? Message-ID: <20111106211648.GA19044@host1.jankratochvil.net> References: <20111106202852.151D1246194@ruffy.mtv.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20111106202852.151D1246194@ruffy.mtv.corp.google.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2011-11/txt/msg00044.txt.bz2 On Sun, 06 Nov 2011 21:28:51 +0100, Doug Evans wrote: > Or is ^c when in readline not intended to invoke the QUIT machinery? I find it working in general. The idea is that: GDB has handle_sigint installed which sets QUIT_FLAG. readline has _rl_handle_signal installed which will do some readline cleanups and call also rl_cleanup_after_signal which restores back the SIGINT handler to GDB and rethrows the SIGINT signal, so that GBD catches it. readline also aborts some completion operations it does thanks to the work _rl_handle_signal does. Offtopic here is that various functions are called from that signal handler which are not signal-safe in POSIX and sometimes really crash GDB. > (gdb) b functi<^c> > > Is that ^c intended to terminate all the symbol completion machinery? It works for me, for (gdb) b f<^c> FSF GDB HEAD aborts for me leaving on screen: (gdb) b fQuit (gdb) _ Regards, Jan