From f63e91634065f3ee9d48cf31a3196beeeba4ecfc Mon Sep 17 00:00:00 2001 From: palves Date: Tue, 17 Mar 2009 04:49:46 +0000 Subject: [PATCH] * infrun.c (normal_stop): Don't overwrite old_chain. --- gdb/ChangeLog | 4 ++++ gdb/infrun.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b6474deb38..e71b9215e8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2009-03-17 Pedro Alves + + * infrun.c (normal_stop): Don't overwrite old_chain. + 2009-03-16 Joel Brobecker * remote-mips.c (mips_load): Replace call to regcache_set_valid_p, diff --git a/gdb/infrun.c b/gdb/infrun.c index ee5f987593..d774e32022 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -4239,10 +4239,10 @@ normal_stop (void) if (target_has_execution) { if (!non_stop) - old_chain = make_cleanup (finish_thread_state_cleanup, &minus_one_ptid); + make_cleanup (finish_thread_state_cleanup, &minus_one_ptid); else if (last.kind != TARGET_WAITKIND_SIGNALLED && last.kind != TARGET_WAITKIND_EXITED) - old_chain = make_cleanup (finish_thread_state_cleanup, &inferior_ptid); + make_cleanup (finish_thread_state_cleanup, &inferior_ptid); } /* In non-stop mode, we don't want GDB to switch threads behind the -- 2.11.0