aboutsummaryrefslogtreecommitdiff
path: root/gdb
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
parent47061676f3da3108858c4bb154c4de16afde28b1 (diff)
downloadgdb-23a44de8103159b27793ce556932619ed6cc6b01.zip
gdb-23a44de8103159b27793ce556932619ed6cc6b01.tar.gz
gdb-23a44de8103159b27793ce556932619ed6cc6b01.tar.bz2
* progspace.c (save_current_space_and_thread): Remove unnecessary
call to save_current_inferior.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/progspace.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index a8bc3cb..d5244c6 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2013-09-04 Doug Evans <dje@google.com>
+
+ * progspace.c (save_current_space_and_thread): Remove unnecessary
+ call to save_current_inferior.
+
2013-09-04 Andrew Burgess <aburgess@broadcom.com>
* sh64-tdep.c (sh64_do_register): Return after printing message
diff --git a/gdb/progspace.c b/gdb/progspace.c
index 52460ab..2a031ed 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;