diff options
author | Michael Snyder <msnyder@vmware.com> | 2009-10-15 17:27:54 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2009-10-15 17:27:54 +0000 |
commit | 191e181311dc21b3af8169ea7711a3d8c8bb6be4 (patch) | |
tree | 2f6f965294ba5c43beaab8aed197b6ec56c7f7cb | |
parent | 61f75dd8bf47e258a2012f74c41fa09f375a30ad (diff) | |
download | gdb-191e181311dc21b3af8169ea7711a3d8c8bb6be4.zip gdb-191e181311dc21b3af8169ea7711a3d8c8bb6be4.tar.gz gdb-191e181311dc21b3af8169ea7711a3d8c8bb6be4.tar.bz2 |
2009-10-15 Michael Snyder <msnyder@vmware.com>
* record.c (record_insn_max_num): Make unsigned.
(_initialize_record): Use uinteger instead of zinteger for
set command, so that it will report "unlimited" for zero.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/record.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index fd1957f..130268f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,11 @@ 2009-10-15 Michael Snyder <msnyder@vmware.com> + * record.c (record_insn_max_num): Make unsigned. + (_initialize_record): Use uinteger instead of zinteger for + set command, so that it will report "unlimited" for zero. + +2009-10-15 Michael Snyder <msnyder@vmware.com> + * record.c (record_reg_alloc): New function. (record_reg_release): New function. (record_mem_alloc): New function. diff --git a/gdb/record.c b/gdb/record.c index 58e02fc..797b31f 100644 --- a/gdb/record.c +++ b/gdb/record.c @@ -98,7 +98,7 @@ static struct record_entry *record_arch_list_tail = NULL; /* 1 ask user. 0 auto delete the last struct record_entry. */ static int record_stop_at_limit = 1; -static int record_insn_max_num = DEFAULT_RECORD_INSN_MAX_NUM; +static unsigned int record_insn_max_num = DEFAULT_RECORD_INSN_MAX_NUM; static int record_insn_num = 0; /* The target_ops of process record. */ @@ -1438,7 +1438,7 @@ When OFF, if the record/replay buffer becomes full,\n\ delete the oldest recorded instruction to make room for each new one."), NULL, NULL, &set_record_cmdlist, &show_record_cmdlist); - add_setshow_zinteger_cmd ("insn-number-max", no_class, + add_setshow_uinteger_cmd ("insn-number-max", no_class, &record_insn_max_num, _("Set record/replay buffer limit."), _("Show record/replay buffer limit."), _("\ |