]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2008-10-08 Hui Zhu <teawater@gmail.com>
authorHui Zhu <teawater@gmail.com>
Thu, 9 Oct 2008 03:42:44 +0000 (03:42 +0000)
committerHui Zhu <teawater@gmail.com>
Thu, 9 Oct 2008 03:42:44 +0000 (03:42 +0000)
* record.c (record_open): Reset after push_target.

gdb/ChangeLog
gdb/record.c

index 5082af31874e5e48b411dc42760b4c8b59f45752..728b87681ca8b633ffaa61da10659e7e66828f2f 100644 (file)
@@ -1,3 +1,7 @@
+2008-10-08  Hui Zhu  <teawater@gmail.com>
+
+       * record.c (record_open): Reset after push_target.
+
 2008-10-08  Michael Snyder  <msnyder@vmware.com>
 
        * infrun.c (handle_inferior_event): Typo in comment.
index aecc71d20c941c1f3318685509f9cf7aa0d95257..9c09d3578bd7f1894403374bdad574d3afbd9a24 100644 (file)
@@ -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