2005-11-04 Andrew Stubbs <andrew.stubbs@st.com>
authorAndrew Stubbs <andrew.stubbs@st.com>
Fri, 4 Nov 2005 11:49:12 +0000 (11:49 +0000)
committerAndrew Stubbs <andrew.stubbs@st.com>
Fri, 4 Nov 2005 11:49:12 +0000 (11:49 +0000)
commit4b0ad76243714b959a63aa42649fa3cf6c886ef2
tree510a04027769d4e032c7766378ed9475a363f296
parentf6235d4cfac03962a505970ef92f231860c58517
2005-11-04  Andrew Stubbs  <andrew.stubbs@st.com>

* infrun.c (print_stop_reason): Set return_child_result_value on exit.
* main.c (return_child_result): New variable.
(return_child_result_value): Likewise.
(captured_main): Add option --return-child-result.
Replace call to target_detach and exit (in batch mode) with quit_force.
(print_gdb_help): Add option --return-child-result.
* top.c (quit_force): Return child result if appropriate.

docs/
* gdb.texinfo (Choosing modes): Add --return-child-result.
gdb/ChangeLog
gdb/doc/ChangeLog
gdb/doc/gdb.texinfo
gdb/infrun.c
gdb/main.c
gdb/top.c