summaryrefslogtreecommitdiff
path: root/gdb/progspace.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2013-09-04 19:53:11 +0000
committerDoug Evans <dje@google.com>2013-09-04 19:53:11 +0000
commit23a44de8103159b27793ce556932619ed6cc6b01 (patch)
treed70adac93a9f69b8364aac047c9aa7184bcbd408 /gdb/progspace.c
parent47061676f3da3108858c4bb154c4de16afde28b1 (diff)
downloadbinutils-gdb-23a44de8103159b27793ce556932619ed6cc6b01.tar.gz
* progspace.c (save_current_space_and_thread): Remove unnecessary
call to save_current_inferior.
Diffstat (limited to 'gdb/progspace.c')
-rw-r--r--gdb/progspace.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/progspace.c b/gdb/progspace.c
index 52460ab84f8..2a031ed4f9e 100644
--- a/gdb/progspace.c
+++ b/gdb/progspace.c
@@ -471,7 +471,8 @@ save_current_space_and_thread (void)
/* If restoring to null thread, we need to restore the pspace as
well, hence, we need to save the current program space first. */
old_chain = save_current_program_space ();
- save_current_inferior ();
+ /* There's no need to save the current inferior here.
+ That is handled by make_cleanup_restore_current_thread. */
make_cleanup_restore_current_thread ();
return old_chain;