gdb
authorTom Tromey <tromey@redhat.com>
Fri, 3 Jun 2011 15:32:44 +0000 (15:32 +0000)
committerTom Tromey <tromey@redhat.com>
Fri, 3 Jun 2011 15:32:44 +0000 (15:32 +0000)
commit8cf64490f293549a0b8e64342d7c97099df19974
tree2aa409936b65cf0a40f19a32c9d2b053132f9bba
parent8ddd9a20a759fb2dd5d221914747eaf62c62c994
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.
gdb/ChangeLog
gdb/doc/ChangeLog
gdb/doc/gdb.texinfo
gdb/inferior.c
gdb/inferior.h
gdb/infrun.c
gdb/mi/mi-interp.c
gdb/python/py-event.h
gdb/python/py-exitedevent.c
gdb/python/py-inferior.c