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
commite6b7b3d4b2f95670d5c36dd9d4619666b0a29205 (patch)
tree6de566d6485f0adfde433ba2217f71509a133855 /gdb/progspace.c
parent0fac8c92c5a2d8f795fc09879f4dacf8a51b832b (diff)
downloadgdb-e6b7b3d4b2f95670d5c36dd9d4619666b0a29205.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;