aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@ericsson.com>2014-09-29 17:33:09 -0400
committerSimon Marchi <simon.marchi@ericsson.com>2014-10-01 10:20:49 -0400
commit2ddf4301102f7a78a03bccf86051a63111b1fcc1 (patch)
tree3b82b7ae469e0201f1d6008bac6e9c7570a4729d /gdb/doc
parent5fdeec1db01500cda1fa46be582fecc69ed1d1a3 (diff)
downloadgdb-2ddf4301102f7a78a03bccf86051a63111b1fcc1.zip
gdb-2ddf4301102f7a78a03bccf86051a63111b1fcc1.tar.gz
gdb-2ddf4301102f7a78a03bccf86051a63111b1fcc1.tar.bz2
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.
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/ChangeLog5
-rw-r--r--gdb/doc/gdb.texinfo5
2 files changed, 10 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 9a4bc09..d5e79e7 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,8 @@
+2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
+
+ * gdb.texinfo (Miscellaneous gdb/mi Commands): Document new
+ exit-code field in -list-thread-groups output.
+
2014-09-22 Jan-Benedict Glaw <jbglaw@lug-owl.de>
* gdb.texinfo (Set Breaks): Add missing "@end table".
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 026706a..429c650 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -31152,6 +31152,11 @@ valid type.
The target-specific process identifier. This field is only present
for thread groups of type @samp{process} and only if the process exists.
+@item exit-code
+The exit code of this group's last exited thread, formatted in octal.
+This field is only present for thread groups of type @samp{process} and
+only if the process is not running.
+
@item num_children
The number of children this thread group has. This field may be
absent for an available thread group.