diff options
author | Michael Snyder <msnyder@specifix.com> | 2010-05-14 21:25:50 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@specifix.com> | 2010-05-14 21:25:50 +0000 |
commit | 849e4de3f5a7651baf776d13e7c93cfe7f96cd56 (patch) | |
tree | 1664213f48ec648bea62ca4a7a31920853df8f06 /gdb/inferior.c | |
parent | f14dc0aa828b0af6b18341cc6b3c031244eac8d3 (diff) | |
download | gdb-849e4de3f5a7651baf776d13e7c93cfe7f96cd56.tar.gz |
2010-05-14 Michael Snyder <msnyder@vmware.com>
* infcall.c: White space.
* inf-child.c: White space.
* infcmd.c: White space.
* inferior.c: White space.
* inf-loop.c: White space.
* inflow.c: White space.
* inline-frame.c: White space.
* interps.c: White space.
Diffstat (limited to 'gdb/inferior.c')
-rw-r--r-- | gdb/inferior.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/inferior.c b/gdb/inferior.c index a48972140b2..28c586792b8 100644 --- a/gdb/inferior.c +++ b/gdb/inferior.c @@ -68,6 +68,7 @@ static void restore_inferior (void *arg) { struct inferior *saved_inferior = arg; + set_current_inferior (saved_inferior); } @@ -80,6 +81,7 @@ save_current_inferior (void) { struct cleanup *old_chain = make_cleanup (restore_inferior, current_inferior_); + return old_chain; } @@ -283,6 +285,7 @@ void exit_inferior (int pid) { struct inferior *inf = find_inferior_pid (pid); + exit_inferior_1 (inf, 0); if (print_inferior_events) @@ -293,6 +296,7 @@ void exit_inferior_silent (int pid) { struct inferior *inf = find_inferior_pid (pid); + exit_inferior_1 (inf, 1); } @@ -308,6 +312,7 @@ void detach_inferior (int pid) { struct inferior *inf = find_inferior_pid (pid); + exit_inferior_1 (inf, 1); if (print_inferior_events) |