diff options
author | Hui Zhu <teawater@gmail.com> | 2009-08-28 02:10:18 +0000 |
---|---|---|
committer | Hui Zhu <teawater@gmail.com> | 2009-08-28 02:10:18 +0000 |
commit | 12b1a97932e2ae3112bbb389c81e4c80fff86c90 (patch) | |
tree | d0b3e6cc1c945682ee9e379d688ffe31de6466ec | |
parent | 34e39bb73e7a12f51dd2fe0ba346334a54ded218 (diff) | |
download | gdb-12b1a97932e2ae3112bbb389c81e4c80fff86c90.zip gdb-12b1a97932e2ae3112bbb389c81e4c80fff86c90.tar.gz gdb-12b1a97932e2ae3112bbb389c81e4c80fff86c90.tar.bz2 |
2009-08-28 Hui Zhu <teawater@gmail.com>
* record.c (record_list_release_next): Change the first
record_reg to record_end.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/record.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2e74c8f..0cacee3 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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. diff --git a/gdb/record.c b/gdb/record.c index 8afca6b..2698395 100644 --- a/gdb/record.c +++ b/gdb/record.c @@ -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); |