* infrun.c (normal_stop): Don't overwrite old_chain.
authorPedro Alves <palves@redhat.com>
Tue, 17 Mar 2009 04:49:47 +0000 (04:49 +0000)
committerPedro Alves <palves@redhat.com>
Tue, 17 Mar 2009 04:49:47 +0000 (04:49 +0000)
gdb/ChangeLog
gdb/infrun.c

index b6474deb38c131cc525daba1cb8e430e8faf3b38..e71b9215e8dade6b373642fae7b426b1553d4566 100644 (file)
@@ -1,3 +1,7 @@
+2009-03-17  Pedro Alves  <pedro@codesourcery.com>
+
+       * infrun.c (normal_stop): Don't overwrite old_chain.
+
 2009-03-16  Joel Brobecker  <brobecker@adacore.com>
 
        * remote-mips.c (mips_load): Replace call to regcache_set_valid_p,
index ee5f9875936e1fe0158697144cb4615ada19f037..d774e32022b6edf12ce9ab6f869a919614d0f585 100644 (file)
@@ -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