mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-22 19:09:31 +08:00
2009-10-12 Michael Snyder <msnyder@vmware.com>
* record.c (record_list_release_first): Do not decrement record_insn_num. (set_insn_num_max): Remove printf. Decrement record_insn_num in the loop.
This commit is contained in:
@ -1,3 +1,10 @@
|
|||||||
|
2009-10-12 Michael Snyder <msnyder@vmware.com>
|
||||||
|
|
||||||
|
* record.c (record_list_release_first): Do not decrement
|
||||||
|
record_insn_num.
|
||||||
|
(set_insn_num_max): Remove printf.
|
||||||
|
Decrement record_insn_num in the loop.
|
||||||
|
|
||||||
2009-10-14 Cary Coutant <ccoutant@google.com>
|
2009-10-14 Cary Coutant <ccoutant@google.com>
|
||||||
|
|
||||||
* dwarf2read.c (read_import_statement): Call follow_die_ref_or_sig.
|
* dwarf2read.c (read_import_statement): Call follow_die_ref_or_sig.
|
||||||
|
15
gdb/record.c
15
gdb/record.c
@ -177,6 +177,11 @@ record_list_release_next (void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Delete the first instruction from the beginning of the log, to make
|
||||||
|
room for adding a new instruction at the end of the log.
|
||||||
|
|
||||||
|
Note -- this function does not modify record_insn_num. */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
record_list_release_first (void)
|
record_list_release_first (void)
|
||||||
{
|
{
|
||||||
@ -209,8 +214,6 @@ record_list_release_first (void)
|
|||||||
if (type == record_end)
|
if (type == record_end)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
record_insn_num--;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Add a struct record_entry to record_arch_list. */
|
/* Add a struct record_entry to record_arch_list. */
|
||||||
@ -1260,12 +1263,12 @@ set_record_insn_max_num (char *args, int from_tty, struct cmd_list_element *c)
|
|||||||
{
|
{
|
||||||
if (record_insn_num > record_insn_max_num && record_insn_max_num)
|
if (record_insn_num > record_insn_max_num && record_insn_max_num)
|
||||||
{
|
{
|
||||||
printf_unfiltered (_("Record instructions number is bigger than "
|
/* Count down record_insn_num while releasing records from list. */
|
||||||
"record instructions max number. Auto delete "
|
|
||||||
"the first ones?\n"));
|
|
||||||
|
|
||||||
while (record_insn_num > record_insn_max_num)
|
while (record_insn_num > record_insn_max_num)
|
||||||
|
{
|
||||||
record_list_release_first ();
|
record_list_release_first ();
|
||||||
|
record_insn_num--;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user