2009-08-28 Hui Zhu <teawater@gmail.com>
authorHui Zhu <teawater@gmail.com>
Fri, 28 Aug 2009 02:10:18 +0000 (02:10 +0000)
committerHui Zhu <teawater@gmail.com>
Fri, 28 Aug 2009 02:10:18 +0000 (02:10 +0000)
* record.c (record_list_release_next): Change the first
record_reg to record_end.

gdb/ChangeLog
gdb/record.c

index 2e74c8f0d5bcf25b3403b472c19299efe3c38740..0cacee3cbb1e32fbbe35c71b2b6c012f4dc4e856 100644 (file)
@@ -1,3 +1,8 @@
+2009-08-28  Hui Zhu  <teawater@gmail.com>
+
+       * record.c (record_list_release_next): Change the first
+       record_reg to record_end.
+
 2009-08-27  Doug Evans  <dje@google.com>
 
        * value.c (free_all_values): Tweak comment.
index 8afca6bcf7521c5479bb4e1bbcaa447ed725999c..26983953a9a5b0de72e119dfb0109f2cec2d53a2 100644 (file)
@@ -157,7 +157,7 @@ record_list_release_next (void)
   while (tmp)
     {
       rec = tmp->next;
-      if (tmp->type == record_reg)
+      if (tmp->type == record_end)
        record_insn_num--;
       else if (tmp->type == record_reg)
        xfree (tmp->u.reg.val);