This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] small cleanup cleanup
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Date: Tue, 17 Mar 2009 04:52:00 +0000
- Subject: [commit] small cleanup cleanup
We do:
struct cleanup *old_chain = make_cleanup (null_cleanup, NULL);
just a bit above.
Checked in.
--
Pedro Alves
2009-03-17 Pedro Alves <pedro@codesourcery.com>
* infrun.c (normal_stop): Don't overwrite old_chain.
---
gdb/infrun.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: src/gdb/infrun.c
===================================================================
--- src.orig/gdb/infrun.c 2009-03-17 04:47:13.000000000 +0000
+++ src/gdb/infrun.c 2009-03-17 04:47:28.000000000 +0000
@@ -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