This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v4] Exit code of exited inferiors in -list-thread-groups
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Simon Marchi <simon dot marchi at ericsson dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 26 Jun 2013 05:44:51 +0300
- Subject: Re: [PATCH v4] Exit code of exited inferiors in -list-thread-groups
- References: <51C9FC5B dot 9020306 at ericsson dot com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Tue, 25 Jun 2013 16:23:55 -0400
> From: Simon Marchi <simon.marchi@ericsson.com>
>
> 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 <simon.marchi@ericsson.com>
>
> * 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 <simon.marchi@ericsson.com>
>
> * gdb.mi/mi-exit-code.exp: New file.
> * gdb.mi/mi-exit-code.c: New file.
>
> gdb/doc/ChangeLog:
> 2013-06-25 Simon Marchi <simon.marchi@ericsson.com>
>
> * gdb.texinfo (Miscellaneous gdb/mi Commands): Document new
> exit-code field in -list-thread-groups output.
The documentation parts are OK. Thanks.