From 23a44de8103159b27793ce556932619ed6cc6b01 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Wed, 4 Sep 2013 19:53:11 +0000 Subject: [PATCH] * progspace.c (save_current_space_and_thread): Remove unnecessary call to save_current_inferior. --- gdb/ChangeLog | 5 +++++ gdb/progspace.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a8bc3cb99f6..d5244c6358b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-09-04 Doug Evans + + * progspace.c (save_current_space_and_thread): Remove unnecessary + call to save_current_inferior. + 2013-09-04 Andrew Burgess * sh64-tdep.c (sh64_do_register): Return after printing message 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; -- 2.30.2