mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-29 16:38:05 +08:00
Remove 'eval' from gdb_breakpoint
Now that Tcl has the {*} operator, we can remove the use of eval from gdb_breakpoint. Tested on x86-64 Fedora 36.
This commit is contained in:
@ -704,12 +704,7 @@ proc runto { linespec args } {
|
|||||||
|
|
||||||
set test_name "runto: run to $linespec"
|
set test_name "runto: run to $linespec"
|
||||||
|
|
||||||
# We need to use eval here to pass our varargs args to gdb_breakpoint
|
if {![gdb_breakpoint $linespec {*}$args]} {
|
||||||
# which is also a varargs function.
|
|
||||||
# But we also have to be careful because $linespec may have multiple
|
|
||||||
# elements, and we don't want Tcl to move the remaining elements after
|
|
||||||
# the first to $args. That is why $linespec is wrapped in {}.
|
|
||||||
if ![eval gdb_breakpoint {$linespec} $args] {
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user