]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[gdb/testsuite] Remove more uses of "eval"
authorTom de Vries <tdevries@suse.de>
Tue, 16 Sep 2025 20:03:43 +0000 (22:03 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 16 Sep 2025 20:03:43 +0000 (22:03 +0200)
commit27fa4f023851dd36c0d1dd03705eec42c483caef
tree4cf6ef7cdf802868bb6d243154d6c3961286e64e
parent75e10462f6776dfde22b800415eef5928cb9caf3
[gdb/testsuite] Remove more uses of "eval"

Remove some more uses of the Tcl "eval" proc.

In most cases the {*} "splat" expansion is used instead.

The exceptions are:
- gdb.base/inferior-args.exp where we rewrite:
    set cmd [format "lappend item \{ '%c' '\\%c' \}" 34 34]
    eval $cmd
  into:
    lappend item [format { '%c' '\%c' } 34 34]
- reset_vars in lib/check-test-names.exp where we simply drop an unnecessary
  eval

Tested on x86_64-linux.

Approved-By: Tom Tromey <tom@tromey.com>
gdb/testsuite/gdb.base/inferior-args.exp
gdb/testsuite/gdb.dwarf2/clztest.exp
gdb/testsuite/gdb.dwarf2/typeddwarf.exp
gdb/testsuite/lib/check-test-names.exp
gdb/testsuite/lib/debuginfod-support.exp
gdb/testsuite/lib/gdb.exp