Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [reverse RFA] Reset after push_target
@ 2008-10-08  7:53 teawater
  2008-10-09  3:04 ` Michael Snyder
  0 siblings, 1 reply; 2+ messages in thread
From: teawater @ 2008-10-08  7:53 UTC (permalink / raw)
  To: gdb-patches, Michael Snyder

[-- Attachment #1: Type: text/plain, Size: 248 bytes --]

Hi Michael,

This patch make record_open reset after push_target because
push_target will call record_close that use some reset variables.

2008-10-08  Hui Zhu  <teawater@gmail.com>

	* record.c (record_open): Reset after push_target.

Thanks,
Hui

[-- Attachment #2: reset_after_push_target.txt --]
[-- Type: text/plain, Size: 533 bytes --]

--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-10-08  Hui Zhu  <teawater@gmail.com>
+
+	* record.c (record_open): Reset after push_target.
+
 2008-10-07  Hui Zhu  <teawater@gmail.com>
 
 	* inflow.c (kill_command): Remove query special for
--- a/record.c
+++ b/record.c
@@ -413,12 +413,12 @@ record_open (char *name, int from_tty)
 	}
     }
 
+  push_target (&record_ops);
+
   /* Reset */
   record_insn_num = 0;
   record_list = &record_first;
   record_list->next = NULL;
-
-  push_target (&record_ops);
 }
 
 static void

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-10-09  3:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-08  7:53 [reverse RFA] Reset after push_target teawater
2008-10-09  3:04 ` Michael Snyder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox