aboutsummaryrefslogtreecommitdiff
path: root/gdb/inferior.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2010-05-14 21:25:51 +0000
committerMichael Snyder <msnyder@vmware.com>2010-05-14 21:25:51 +0000
commitabbb1732a91accadee3e1c00b75fc0a3f418fae7 (patch)
treeebe572bfbd5022d93857d023df66223f8eafd098 /gdb/inferior.c
parentd8734c886e14a4840c59ad815f7b9dc81cc9276c (diff)
downloadgdb-abbb1732a91accadee3e1c00b75fc0a3f418fae7.zip
gdb-abbb1732a91accadee3e1c00b75fc0a3f418fae7.tar.gz
gdb-abbb1732a91accadee3e1c00b75fc0a3f418fae7.tar.bz2
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.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/inferior.c b/gdb/inferior.c
index a489721..28c5867 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)