aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/ChangeLog
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2019-06-13 15:22:44 +0100
committerPedro Alves <palves@redhat.com>2019-06-13 15:22:44 +0100
commit4c04873103043dc9a1c8d6cdeea1b9b1f545f375 (patch)
treef4adcab2e6f1551d7fa9e95d1c6d9acdc8cdccae /gdb/testsuite/ChangeLog
parent57a63d27dcc8c7620f2168b370b649c7458c687e (diff)
downloadgdb-4c04873103043dc9a1c8d6cdeea1b9b1f545f375.zip
gdb-4c04873103043dc9a1c8d6cdeea1b9b1f545f375.tar.gz
gdb-4c04873103043dc9a1c8d6cdeea1b9b1f545f375.tar.bz2
Fix "set integer-command unlimited junk"
With integer commands that support "unlimited", we currently fail to notice junk after "unlimited": (gdb) show print elements Limit on string chars or array elements to print is 200. (gdb) set print elements unlimited foo (gdb) show print elements Limit on string chars or array elements to print is unlimited. This commit fixes that. After, we get: (gdb) set print elements unlimited foo Junk after "unlimited": foo gdb/ChangeLog: 2019-06-13 Pedro Alves <palves@redhat.com> * cli/cli-setshow.c (cli/cli-setshow.c): New parameter 'expression'. When parsing an expression, error out if there's junk after "unlimited". (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited) (do_set_command): Adjust calls to is_unlimited_literal. gdb/testsuite/ChangeLog: 2019-06-13 Pedro Alves <palves@redhat.com> * gdb.base/settings.exp (test-integer): Test junk after "unlimited".
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 3a3a6e8..37e327d 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,10 @@
2019-06-13 Pedro Alves <palves@redhat.com>
+ * gdb.base/settings.exp (test-integer): Test junk after
+ "unlimited".
+
+2019-06-13 Pedro Alves <palves@redhat.com>
+
* gdb.base/options.exp (test-thread-apply): New.
(top level): Call it.