diff options
author | Tom de Vries <tdevries@suse.de> | 2021-06-08 17:39:05 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2021-06-08 17:39:05 +0200 |
commit | fdae5c22cedfb5948f2ccfbafc57ab53587129d5 (patch) | |
tree | 491342222ff749c4705f96a571e4658d6465d8f4 /gdb/testsuite/ChangeLog | |
parent | 956ea65cd707707c0f725930214cbc781367a831 (diff) | |
download | gdb-fdae5c22cedfb5948f2ccfbafc57ab53587129d5.zip gdb-fdae5c22cedfb5948f2ccfbafc57ab53587129d5.tar.gz gdb-fdae5c22cedfb5948f2ccfbafc57ab53587129d5.tar.bz2 |
[gdb/testsuite] Disallow single argument in multi_line
It's a common mistake of mine to do:
...
set l [list "foo" "bar"]
set re [multi_line $l]
...
and to get "foo bar" while I was expecting "foo\r\nbar", which I get after
doing instead:
...
set re [multi_line {*}$l]
...
Detect this type of mistake by erroring out in multi_line when only one
argument is passed.
Tested on x86_64-linux.
gdb/testsuite/ChangeLog:
2021-06-08 Tom de Vries <tdevries@suse.de>
* lib/gdb.exp (multi_line): Require more than one argument.
* gdb.base/gdbinit-history.exp: Update multi_line call.
* gdb.base/jit-reader.exp: Remove multi_line call.
* gdb.fortran/dynamic-ptype-whatis.exp: Same.
Diffstat (limited to 'gdb/testsuite/ChangeLog')
-rw-r--r-- | gdb/testsuite/ChangeLog | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index e2f1486..51abd0e 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,12 @@ 2021-06-08 Tom de Vries <tdevries@suse.de> + * lib/gdb.exp (multi_line): Require more than one argument. + * gdb.base/gdbinit-history.exp: Update multi_line call. + * gdb.base/jit-reader.exp: Remove multi_line call. + * gdb.fortran/dynamic-ptype-whatis.exp: Same. + +2021-06-08 Tom de Vries <tdevries@suse.de> + * gdb.base/info-types.exp.tcl (match_line, gdb_test_lines): Move ... * lib/gdb.exp: ... here. * gdb.base/info-macros.exp: Use gdb_test_lines. |