From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25605 invoked by alias); 16 Jun 2013 16:22:05 -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 25591 invoked by uid 89); 16 Jun 2013 16:22:03 -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 mtaout21.012.net.il (HELO mtaout21.012.net.il) (80.179.55.169) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Sun, 16 Jun 2013 16:22:02 +0000 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MOH00H00UM4WE00@a-mtaout21.012.net.il> for gdb-patches@sourceware.org; Sun, 16 Jun 2013 19:21:09 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MOH00HY7UR9VY20@a-mtaout21.012.net.il>; Sun, 16 Jun 2013 19:21:09 +0300 (IDT) Date: Mon, 17 Jun 2013 03:33:00 -0000 From: Eli Zaretskii Subject: Re: [RFC/PATCH] New convenience variable $_exitsignal In-reply-to: To: Sergio Durigan Junior Cc: gdb-patches@sourceware.org, palves@redhat.com Reply-to: Eli Zaretskii Message-id: <83mwqqt4ay.fsf@gnu.org> References: X-SW-Source: 2013-06/txt/msg00355.txt.bz2 > From: Sergio Durigan Junior > Cc: Pedro Alves > Date: Sun, 16 Jun 2013 03:25:15 -0300 > > This patch was proposed by Pedro at: > > > > It adds a new convenience variable called "$_exitsignal", which will > hold the signal number when the inferior terminates due to the uncaught > signal. Thanks. > diff --git a/gdb/NEWS b/gdb/NEWS > index eea9917..e9e81b3 100644 > --- a/gdb/NEWS > +++ b/gdb/NEWS > @@ -69,6 +69,10 @@ show range-stepping > * The exception-related catchpoints, like "catch throw", now accept a > regular expression which can be used to filter exceptions by type. > > +* The new convenience variable $_exitsignal is automatically set to > + the signal number when the program being debugged dies due to an > + uncaught signal. I'd say "set to the terminating signal number". Otherwise, OK. > +@item $_exitsignal > +@vindex $_exitsignal@r{, convenience variable} > +The variable @code{$_exitsignal} is automatically set to the signal > +number when the program being debugged dies due to an uncaught signal. I'd reverse the order: When the program being debugged dies due to an uncaught signal, @value{GDBN} automatically sets this variable to that signal's number.