aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2009-03-17 04:49:47 +0000
committerPedro Alves <palves@redhat.com>2009-03-17 04:49:47 +0000
commitfee0be5dee06e5f8118e8070872ba73947097d62 (patch)
treec81a3897a44adb2a25f6369d5056260785949ee2 /gdb/infrun.c
parentf13d903a9cd0d054940459d56202f1d607b6ce01 (diff)
downloadgdb-fee0be5dee06e5f8118e8070872ba73947097d62.zip
gdb-fee0be5dee06e5f8118e8070872ba73947097d62.tar.gz
gdb-fee0be5dee06e5f8118e8070872ba73947097d62.tar.bz2
* infrun.c (normal_stop): Don't overwrite old_chain.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r--gdb/infrun.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c
index ee5f987..d774e32 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