diff options
author | Tom Tromey <tromey@redhat.com> | 2011-06-03 15:32:44 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2011-06-03 15:32:44 +0000 |
commit | 8cf64490f293549a0b8e64342d7c97099df19974 (patch) | |
tree | 2aa409936b65cf0a40f19a32c9d2b053132f9bba /gdb/doc/gdb.texinfo | |
parent | 8ddd9a20a759fb2dd5d221914747eaf62c62c994 (diff) | |
download | gdb-8cf64490f293549a0b8e64342d7c97099df19974.zip gdb-8cf64490f293549a0b8e64342d7c97099df19974.tar.gz gdb-8cf64490f293549a0b8e64342d7c97099df19974.tar.bz2 |
gdb
* python/py-inferior.c (python_inferior_exit): Use inferior's exit
code fields.
* python/py-exitedevent.c (create_exited_event_object): Change
type of 'exit_code'. Optionally add exit_code attribute.
(emit_exited_event): Change type of 'exit_code'.
* python/py-event.h (emit_exited_event): Update.
* mi/mi-interp.c (mi_inferior_exit): Print exit code.
* infrun.c (handle_inferior_event): Set exit code fields on
inferior.
* inferior.h (struct inferior) <has_exit_code, exit_code>: New
fields.
* inferior.c (exit_inferior_1): Initialize new fields.
gdb/doc
* gdb.texinfo (GDB/MI Async Records): Document 'exit-code' field.
(Events In Python): Note that exit_code is optional.
Diffstat (limited to 'gdb/doc/gdb.texinfo')
-rw-r--r-- | gdb/doc/gdb.texinfo | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 584a520..3a705c2 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -22127,7 +22127,9 @@ inherited attribute refer to @code{gdb.ThreadEvent} above. @item events.exited Emits @code{events.ExitedEvent} which indicates that the inferior has exited. -@code{events.ExitedEvent} has one attribute: +@code{events.ExitedEvent} has one optional attribute. This attribute +will exist only in the case that the inferior exited with some +status. @table @code @defivar ExitedEvent exit_code An integer representing the exit code which the inferior has returned. @@ -25199,11 +25201,12 @@ was attached to a program. The @var{id} field contains the @value{GDBN} identifier of the thread group. The @var{pid} field contains process identifier, specific to the operating system. -@itemx =thread-group-exited,id="@var{id}" +@item =thread-group-exited,id="@var{id}"[,exit-code="@var{code}"] A thread group is no longer associated with a running program, either because the program has exited, or because it was detached from. The @var{id} field contains the @value{GDBN} identifier of the -thread group. +thread group. @var{code} is the exit code of the inferior; it exists +only when the inferior exited with some code. @item =thread-created,id="@var{id}",group-id="@var{gid}" @itemx =thread-exited,id="@var{id}",group-id="@var{gid}" |