From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26835 invoked by alias); 18 Jun 2013 18:55:28 -0000 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 Received: (qmail 26817 invoked by uid 89); 18 Jun 2013 18:55:25 -0000 X-Spam-SWARE-Status: No, score=-4.2 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,SPF_SOFTFAIL autolearn=no version=3.3.1 Received: from mtaout22.012.net.il (HELO mtaout22.012.net.il) (80.179.55.172) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Tue, 18 Jun 2013 18:55:23 +0000 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MOL00L00R2H6M00@a-mtaout22.012.net.il> for gdb-patches@sourceware.org; Tue, 18 Jun 2013 21:55:16 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MOL00KTSR83KUC0@a-mtaout22.012.net.il>; Tue, 18 Jun 2013 21:55:15 +0300 (IDT) Date: Tue, 18 Jun 2013 19:02:00 -0000 From: Eli Zaretskii Subject: Re: [PATCH v2] Add convenience variable $_exitsignal In-reply-to: To: Sergio Durigan Junior Cc: gdb-patches@sourceware.org, dje@google.com, palves@redhat.com Reply-to: Eli Zaretskii Message-id: <83txkvqmef.fsf@gnu.org> References: X-SW-Source: 2013-06/txt/msg00454.txt.bz2 > From: Sergio Durigan Junior > Cc: Eli Zaretskii , Doug Evans , > Pedro Alves > Date: Tue, 18 Jun 2013 15:46:48 -0300 > > diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo > index e6ec4ff..a445b1a 100644 > --- a/gdb/doc/gdb.texinfo > +++ b/gdb/doc/gdb.texinfo > @@ -9734,8 +9734,15 @@ to match the format in which the data was printed. > > @item $_exitcode > @vindex $_exitcode@r{, convenience variable} > -The variable @code{$_exitcode} is automatically set to the exit code when > -the program being debugged terminates. > +When the program being debugged terminates normally, @value{GDBN} > +automatically sets this variable to the exit code of the program, and > +clears @code{$_exitsignal}. > + > +@item $_exitsignal > +@vindex $_exitsignal@r{, convenience variable} > +When the program being debugged dies due to an uncaught signal, > +@value{GDBN} automatically sets this variable to that signal's number, > +and clears @code{$_exitcode}. This is good, but I wonder whether the meaning of "clears $_exitcode" will be sufficiently clear (pun intended) to the reader. You mean to say that the variable will be void, right? Thanks.