Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: teawater <teawater@gmail.com>
To: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>,
	 	"Michael Snyder" <msnyder@vmware.com>
Subject: [reverse RFA] Reset after push_target
Date: Wed, 08 Oct 2008 07:53:00 -0000	[thread overview]
Message-ID: <daef60380810080052x3290351jd77ef67828d82536@mail.gmail.com> (raw)

[-- 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

             reply	other threads:[~2008-10-08  7:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-08  7:53 teawater [this message]
2008-10-09  3:04 ` Michael Snyder

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=daef60380810080052x3290351jd77ef67828d82536@mail.gmail.com \
    --to=teawater@gmail.com \
    --cc=gdb-patches@sourceware.org \
    --cc=msnyder@vmware.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox