Exit code of exited inferiors in -list-thread-groups
authorSimon Marchi <simon.marchi@ericsson.com>
Mon, 29 Sep 2014 21:33:09 +0000 (17:33 -0400)
committerSimon Marchi <simon.marchi@ericsson.com>
Wed, 1 Oct 2014 14:20:49 +0000 (10:20 -0400)
commit2ddf4301102f7a78a03bccf86051a63111b1fcc1
tree3b82b7ae469e0201f1d6008bac6e9c7570a4729d
parent5fdeec1db01500cda1fa46be582fecc69ed1d1a3
Exit code of exited inferiors in -list-thread-groups

Don't reset the exit code at inferior exit and print it in
-list-thread-groups.

gdb/ChangeLog:

* 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:

* gdb.mi/mi-exit-code.exp: New file.
* gdb.mi/mi-exit-code.c: New file.

gdb/doc/ChangeLog:

* gdb.texinfo (Miscellaneous gdb/mi Commands): Document new
exit-code field in -list-thread-groups output.
gdb/ChangeLog
gdb/NEWS
gdb/doc/ChangeLog
gdb/doc/gdb.texinfo
gdb/inferior.c
gdb/mi/mi-main.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.mi/mi-exit-code.c [new file with mode: 0644]
gdb/testsuite/gdb.mi/mi-exit-code.exp [new file with mode: 0644]