* lib/gdb.exp (runto): Fix call to gdb_breakpoint.

This commit is contained in:
Doug Evans 2012-10-15 17:35:54 +00:00
parent 89398707cd
commit 2c47921e64
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2012-10-15 Doug Evans <dje@google.com>
* lib/gdb.exp (runto): Fix call to gdb_breakpoint.
2012-10-15 Yufeng Zhang <yufeng.zhang@arm.com>
* gdb.dwarf2/dw2-icc-opaque.S: Remove '#'.

View File

@ -460,7 +460,10 @@ proc runto { function args } {
# We need to use eval here to pass our varargs args to gdb_breakpoint
# which is also a varargs function.
if ![eval gdb_breakpoint $function $args] {
# But we also have to be careful because $function may have multiple
# elements, and we don't want Tcl to move the remaining elements after
# the first to $args. That is why $function is wrapped in {}.
if ![eval gdb_breakpoint {$function} $args] {
return 0;
}