diff options
author | Kevin Pouget <kpouget@sourceware.org> | 2011-10-04 08:04:13 +0000 |
---|---|---|
committer | Kevin Pouget <kpouget@sourceware.org> | 2011-10-04 08:04:13 +0000 |
commit | cb6be26b8b0a1bf6bb4da1eb5841119d73220fd5 (patch) | |
tree | 11b0b25089d45ebd5636ac0e8e34ccf094b25dd2 /gdb/python/py-inferior.c | |
parent | 54d2bafcf26d239467a921fb1c37f4a5e12cfdba (diff) | |
download | binutils-cb6be26b8b0a1bf6bb4da1eb5841119d73220fd5.zip binutils-cb6be26b8b0a1bf6bb4da1eb5841119d73220fd5.tar.gz binutils-cb6be26b8b0a1bf6bb4da1eb5841119d73220fd5.tar.bz2 |
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/python/py-inferior.c')
-rw-r--r-- | gdb/python/py-inferior.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/python/py-inferior.c b/gdb/python/py-inferior.c index 8ed3ea5..275caea 100644 --- a/gdb/python/py-inferior.c +++ b/gdb/python/py-inferior.c @@ -119,7 +119,7 @@ python_inferior_exit (struct inferior *inf) if (inf->has_exit_code) exit_code = &inf->exit_code; - if (emit_exited_event (exit_code) < 0) + if (emit_exited_event (exit_code, inf) < 0) gdbpy_print_stack (); do_cleanups (cleanup); |