From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29441 invoked by alias); 13 Oct 2014 03:22: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 29422 invoked by uid 89); 13 Oct 2014 03:22:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 13 Oct 2014 03:22:01 +0000 Received: from svr-orw-fem-04.mgc.mentorg.com ([147.34.97.41]) by relay1.mentorg.com with esmtp id 1XdWCp-0000Kp-Ny from Yao_Qi@mentor.com ; Sun, 12 Oct 2014 20:21:55 -0700 Received: from GreenOnly (147.34.91.1) by svr-orw-fem-04.mgc.mentorg.com (147.34.97.41) with Microsoft SMTP Server id 14.3.181.6; Sun, 12 Oct 2014 20:21:55 -0700 From: Yao Qi To: Simon Marchi CC: Eli Zaretskii , , , Subject: Re: [PATCH v5][pushed] Exit code of exited inferiors in -list-thread-groups References: <1400018204-29559-1-git-send-email-simon.marchi@ericsson.com> <87mweh31qi.fsf@fleche.redhat.com> <537CE38B.7040000@ericsson.com> <537CEBCB.5020401@redhat.com> <538CC2CD.9040309@ericsson.com> <538CCF1F.5000902@redhat.com> <87lhtcbl8e.fsf@fleche.redhat.com> <5429D25E.4020302@ericsson.com> <5429D2E5.8050203@ericsson.com> <8338b9n8bp.fsf@gnu.org> <542C0F12.8090707@ericsson.com> Date: Mon, 13 Oct 2014 03:22:00 -0000 In-Reply-To: <542C0F12.8090707@ericsson.com> (Simon Marchi's message of "Wed, 1 Oct 2014 10:26:26 -0400") Message-ID: <87mw90ody9.fsf@codesourcery.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2014-10/txt/msg00311.txt.bz2 Simon Marchi writes: > diff --git a/gdb/testsuite/gdb.mi/mi-exit-code.c b/gdb/testsuite/gdb.mi/m= i-exit-code.c > new file mode 100644 > index 0000000..df711a6 > --- /dev/null > +++ b/gdb/testsuite/gdb.mi/mi-exit-code.c > @@ -0,0 +1,27 @@ > +/* Copyright 1999-2014 Free Software Foundation, Inc. The copyright year should be 2013 - 2014, because mi-exit-code.c was posted in 2013. This applies to mi-exit-code.exp too. > + > +int exit_code =3D 0; > + > +int > +main (int argc, char **argv) > +{ > + if (argc > 1) > + exit_code =3D atoi (argv[1]); I am looking at argv[] uses in gdb testsuite, and that is why I am directed here. exit_code is set by gdb, so do we still need these two lines above? > + > + return exit_code; > +} --=20 Yao (=E9=BD=90=E5=B0=A7)