aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/ChangeLog
diff options
context:
space:
mode:
authorPatrick Palka <patrick@parcs.ath.cx>2015-05-12 06:50:26 -0400
committerPatrick Palka <patrick@parcs.ath.cx>2015-06-17 14:12:19 -0400
commitbc460514b9db46a491c2c39cd118b02608742968 (patch)
treef69ab69c50811c321f6e2d66a04ceca2ffb766e1 /gdb/testsuite/ChangeLog
parentb58c513b7932cfb9852d66e07282b9c2379197ed (diff)
downloadgdb-bc460514b9db46a491c2c39cd118b02608742968.zip
gdb-bc460514b9db46a491c2c39cd118b02608742968.tar.gz
gdb-bc460514b9db46a491c2c39cd118b02608742968.tar.bz2
Tweak the handling of $GDBHISTSIZE edge cases [PR gdb/16999]
When GDB reads a nonsensical value for the GDBHISTSIZE environment variable, i.e. one that is non-numeric or negative, GDB then sets its history size to 0. This behavior is annoying and also inconsistent with the behavior of bash. This patch makes the behavior of invalid GDBHISTSIZE consistent with how bash handles HISTSIZE. When we encounter a null or out-of-range GDBHISTSIZE (outside of [0, INT_MAX]) we now set the history size to unlimited instead of 0. When we encounter a non-numeric GDBHISTSIZE we do nothing. gdb/ChangeLog: PR gdb/16999 * NEWS: Mention new GDBHISTSIZE behavior. * top.c (init_history): For null or out-of-range GDBHISTSIZE, set history size to unlimited. Ignore non-numeric GDBHISTSIZE. gdb/doc/ChangeLog: PR gdb/16999 * gdb.texinfo (Command History): Mention new GDBHISTSIZE behavior. gdb/testsuite/ChangeLog: PR gdb/16999 * gdb.base/gdbhistsize-history.exp: New test.
Diffstat (limited to 'gdb/testsuite/ChangeLog')
-rw-r--r--gdb/testsuite/ChangeLog5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index abb0677..0f3749e 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,10 @@
2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
+ PR gdb/16999
+ * gdb.base/gdbhistsize-history.exp: New test.
+
+2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
+
* gdb.base/gdbinit-history.exp: Replace occurrences of HISTSIZE
with GDBHISTSIZE.
* gdb.base/readline.exp: Likewise.