-re "No symbol.*context.*$gdb_prompt $" {}
-re "The program is not being run.*$gdb_prompt $" {
gdb_load "";
+ send_gdb "jump *$start\n";
+ exp_continue;
}
timeout { perror "Jump to start() failed (timeout)"; return }
}
return -1
}
timeout {
-
perror "(timeout) GDB never initialized after $timeout seconds."
+ remote_close host;
return -1
}
}
set timeout [target_info gdb,timeout];
}
}
- set code [catch {uplevel remote_expect host $args} string];
+ set code [catch {uplevel remote_expect host $timeout $args} string];
if [target_info exists gdb,timeout] {
if [info exists oldt] {
set timeout $oldt
return [gdb_test "continue" ".*Breakpoint $decimal, $function .*" "continue to $function"];
}
-proc gdb_init { args } {
+proc default_gdb_init { args } {
gdb_stop_suppressing_tests;
# Uh, this is lame. Really, really, really lame. But there's this *one*
}
}
+proc gdb_init { args } {
+ return [default_gdb_init];
+}
+
proc gdb_finish { } {
gdb_exit;
}