2009-10-15 Michael Snyder <msnyder@vmware.com>
authorMichael Snyder <msnyder@vmware.com>
Thu, 15 Oct 2009 17:27:54 +0000 (17:27 +0000)
committerMichael Snyder <msnyder@vmware.com>
Thu, 15 Oct 2009 17:27:54 +0000 (17:27 +0000)
* 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.

gdb/ChangeLog
gdb/record.c

index fd1957fb5e5aa874d40e4e72f91d270b09c98e8b..130268f3d485322af2dee13112363a6dc77661c9 100644 (file)
@@ -1,3 +1,9 @@
+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.
index 58e02fc7846e28632ccb22f9828163898a213828..797b31fe576b71b3a77753c02a94b0da530193a7 100644 (file)
@@ -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."), _("\