From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11583 invoked by alias); 26 Jun 2013 02:45:03 -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 11570 invoked by uid 89); 26 Jun 2013 02:45:02 -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 mtaout20.012.net.il (HELO mtaout20.012.net.il) (80.179.55.166) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Wed, 26 Jun 2013 02:45:01 +0000 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MOZ00300BMNYX00@a-mtaout20.012.net.il> for gdb-patches@sourceware.org; Wed, 26 Jun 2013 05:44:58 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MOZ003OVBMYSK50@a-mtaout20.012.net.il>; Wed, 26 Jun 2013 05:44:58 +0300 (IDT) Date: Wed, 26 Jun 2013 02:48:00 -0000 From: Eli Zaretskii Subject: Re: [PATCH v4] Exit code of exited inferiors in -list-thread-groups In-reply-to: <51C9FC5B.9020306@ericsson.com> To: Simon Marchi Cc: gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83vc51h9p8.fsf@gnu.org> References: <51C9FC5B.9020306@ericsson.com> X-SW-Source: 2013-06/txt/msg00752.txt.bz2 > Date: Tue, 25 Jun 2013 16:23:55 -0400 > From: Simon Marchi > > Don't reset the exit code at inferior exit and print it in > -list-thread-groups. > > Reminder: this patch depends on another one that fixes mi_expect_stop, > the last version being this one: > http://sourceware.org/ml/gdb-patches/2013-06/msg00736.html > > gdb/ChangeLog: > 2013-06-25 Simon Marchi > > * NEWS: Announce new exit-code field in -list-thread-groups > output. > * inferior.c (exit_inferior_1): Don't clear exit code. > (inferior_appeared): Clear exit code. > * mi/mi-main.c (print_one_inferior): Add printing of the exit code. > > gdb/testsuite/ChangeLog: > 2013-06-25 Simon Marchi > > * gdb.mi/mi-exit-code.exp: New file. > * gdb.mi/mi-exit-code.c: New file. > > gdb/doc/ChangeLog: > 2013-06-25 Simon Marchi > > * gdb.texinfo (Miscellaneous gdb/mi Commands): Document new > exit-code field in -list-thread-groups output. The documentation parts are OK. Thanks.