| commit | 27fa4f023851dd36c0d1dd03705eec42c483caef | [log] [tgz] |
|---|---|---|
| author | Tom de Vries <tdevries@suse.de> | Tue Sep 16 22:03:43 2025 +0200 |
| committer | Tom de Vries <tdevries@suse.de> | Tue Sep 16 22:03:43 2025 +0200 |
| tree | 4cf6ef7cdf802868bb6d243154d6c3961286e64e | |
| parent | 75e10462f6776dfde22b800415eef5928cb9caf3 [diff] |
[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>