]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Remove uses of "eval" from gdb testsuite
authorTom Tromey <tom@tromey.com>
Sat, 13 Sep 2025 18:49:06 +0000 (12:49 -0600)
committerTom Tromey <tom@tromey.com>
Sun, 14 Sep 2025 17:45:21 +0000 (11:45 -0600)
commita170cec53008729739d7b4bb0faee7d1d3146fc1
treefdd1b4c3ea24c909c3988b86cd3008852c8303ae
parentb88ea1f73fcd31fd89f5bfe87a3667b9cc9194c5
Remove uses of "eval" from gdb testsuite

This patch removes a lot of uses of the Tcl "eval" proc from the gdb
test suite.  In most cases the {*} "splat" expansion is used instead.

A few uses of eval remain, primarily ones that were more complicated
to untangle.

In a couple of tests I also replaced some ad hoc code with
string_to_regexp.

Tested on x86-64 Fedora 40.

Reviewed-By: Tom de Vries <tdevries@suse.de>
22 files changed:
gdb/testsuite/boards/native-extended-gdbserver.exp
gdb/testsuite/gdb.ada/unchecked_union.exp
gdb/testsuite/gdb.base/attach-twice.exp
gdb/testsuite/gdb.base/consecutive.exp
gdb/testsuite/gdb.base/ctf-ptype.exp
gdb/testsuite/gdb.base/ending-run.exp
gdb/testsuite/gdb.base/gdbinit-history.exp
gdb/testsuite/gdb.base/ptype.exp
gdb/testsuite/gdb.base/style.exp
gdb/testsuite/gdb.linespec/ls-errs.exp
gdb/testsuite/gdb.mi/mi-break.exp
gdb/testsuite/gdb.opt/inline-break.exp
gdb/testsuite/gdb.reverse/consecutive-precsave.exp
gdb/testsuite/gdb.reverse/consecutive-reverse.exp
gdb/testsuite/gdb.tui/tuiterm.exp
gdb/testsuite/lib/dap-support.exp
gdb/testsuite/lib/dwarf.exp
gdb/testsuite/lib/gdb.exp
gdb/testsuite/lib/gdbserver-support.exp
gdb/testsuite/lib/mi-support.exp
gdb/testsuite/lib/trace-support.exp
gdb/testsuite/lib/tuiterm.exp