This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v5][pushed] Exit code of exited inferiors in -list-thread-groups
- From: Yao Qi <yao at codesourcery dot com>
- To: Simon Marchi <simon dot marchi at ericsson dot com>
- Cc: Eli Zaretskii <eliz at gnu dot org>, <tromey at redhat dot com>, <palves at redhat dot com>, <gdb-patches at sourceware dot org>
- Date: Mon, 13 Oct 2014 11:17:50 +0800
- Subject: Re: [PATCH v5][pushed] Exit code of exited inferiors in -list-thread-groups
- Authentication-results: sourceware.org; auth=none
- References: <1400018204-29559-1-git-send-email-simon dot marchi at ericsson dot com> <87mweh31qi dot fsf at fleche dot redhat dot com> <537CE38B dot 7040000 at ericsson dot com> <537CEBCB dot 5020401 at redhat dot com> <538CC2CD dot 9040309 at ericsson dot com> <538CCF1F dot 5000902 at redhat dot com> <87lhtcbl8e dot fsf at fleche dot redhat dot com> <5429D25E dot 4020302 at ericsson dot com> <5429D2E5 dot 8050203 at ericsson dot com> <8338b9n8bp dot fsf at gnu dot org> <542C0F12 dot 8090707 at ericsson dot com>
Simon Marchi <simon.marchi@ericsson.com> writes:
> diff --git a/gdb/testsuite/gdb.mi/mi-exit-code.c b/gdb/testsuite/gdb.mi/mi-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 = 0;
> +
> +int
> +main (int argc, char **argv)
> +{
> + if (argc > 1)
> + exit_code = 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;
> +}
--
Yao (éå)