mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-18 05:18:46 +00:00
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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user