summaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorkpouget <kpouget>2011-10-04 08:04:08 +0000
committerkpouget <kpouget>2011-10-04 08:04:08 +0000
commit6080d11494b683ff7c7aeb7141751110fd966187 (patch)
tree5d4c551691aaa5b9d4ef50306d0f48cb35889ad1 /gdb/doc
parentb29551ecf30b9b0c6a31bb40f1315ff00edeae5a (diff)
downloadgdb-6080d11494b683ff7c7aeb7141751110fd966187.tar.gz
2011-10-04 Kevin Pouget <kevin.pouget@st.com>
PR python/12691: Add the inferior to Python exited event * python/py-exitedevent.c (create_exited_event_object): Add inferior to exited_event. * python/py-event.h (emit_exited_event): Likewise * python/-inferior.c (python_inferior_exit): Likewise 2011-10-04 Kevin Pouget <kevin.pouget@st.com> PR python/12691: Add the inferior to Python exited event * gdb.python/py-events.exp: Test the inferior attribute of exited event with a fork. * gdb.python/py-events.py: Print inferior number on exit. * gdb.python/py-events.c: Fork the inferior. 2011-10-04 Kevin Pouget <kevin.pouget@st.com> PR python/12691: Add the inferior to Python exited event * gdb.texinfo (Events In Python): Describe exited inferior attribute.
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/ChangeLog5
-rw-r--r--gdb/doc/gdb.texinfo12
2 files changed, 13 insertions, 4 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 262c656a83b..4ccd64ca196 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,8 @@
+2011-10-04 Kevin Pouget <kevin.pouget@st.com>
+
+ PR python/12691: Add the inferior to Python exited event
+ * gdb.texinfo (Events In Python): Describe exited inferior attribute.
+
2011-10-03 Joel Brobecker <brobecker@adacore.com>
* gdb.texinfo (GDB/MI Miscellaneous Commands): Minor
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index aa7cdca457f..dd0f7f61c0d 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -22306,12 +22306,16 @@ 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 optional attribute. This attribute
-will exist only in the case that the inferior exited with some
-status.
+@code{events.ExitedEvent} has two attributes:
@table @code
@defvar ExitedEvent.exit_code
-An integer representing the exit code which the inferior has returned.
+An integer representing the exit code, if available, which the inferior
+has returned. (The exit code could be unavailable if, for example,
+@value{GDBN} detaches from the inferior.) If the exit code is unavailable,
+the attribute does not exist.
+@end defvar
+@defvar ExitedEvent inferior
+A reference to the inferior which triggered the @code{exited} event.
@end defvar
@end table