aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2013-03-26 18:03:03 +0000
committerPedro Alves <palves@redhat.com>2013-03-26 18:03:03 +0000
commit42c634cb8c33bccb4d3e82fe6ddec963f7138579 (patch)
tree7401f5199fb7ac8ef83aeb4df66039fd28e4f867 /gdb/ChangeLog
parent1517bd274290e06af498ef7e496519e4bbc4d5e6 (diff)
downloadgdb-42c634cb8c33bccb4d3e82fe6ddec963f7138579.zip
gdb-42c634cb8c33bccb4d3e82fe6ddec963f7138579.tar.gz
gdb-42c634cb8c33bccb4d3e82fe6ddec963f7138579.tar.bz2
"set record instruction-history-size"/"set record function-call-history-size" range validation.
While the commands are uinteger, the target interfaces are limited to INT_MAX. Don't let the user request more than we can handle. gdb/ 2013-03-26 Pedro Alves <palves@redhat.com> * record.c (record_insn_history_size_setshow_var) (record_call_history_size_setshow_var): New globals. (command_size_to_target_size): New function. (cmd_record_insn_history, cmd_record_call_history): Use command_size_to_target_size instead of cast. (validate_history_size, set_record_insn_history_size) (set_record_call_history_size): New functions. (_initialize_record): Install set_record_insn_history_size and set_record_call_history_size as "set" hooks of "set record instruction-history-size" and "set record function-call-history-size".
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog14
1 files changed, 14 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index bc533be..7551eaf 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,19 @@
2013-03-26 Pedro Alves <palves@redhat.com>
+ * record.c (record_insn_history_size_setshow_var)
+ (record_call_history_size_setshow_var): New globals.
+ (command_size_to_target_size): New function.
+ (cmd_record_insn_history, cmd_record_call_history): Use
+ command_size_to_target_size instead of cast.
+ (validate_history_size, set_record_insn_history_size)
+ (set_record_call_history_size): New functions.
+ (_initialize_record): Install set_record_insn_history_size and
+ set_record_call_history_size as "set" hooks of "set record
+ instruction-history-size" and "set record
+ function-call-history-size".
+
+2013-03-26 Pedro Alves <palves@redhat.com>
+
* top.c (gdb_rl_operate_and_get_next): Replace max_input_history
use with history_max_entries use. Remove FIXME note.