target sim fails. Return 0 otherwise.
(gdb_load): Return prematurely if gdb_target_sim fails.
+2007-04-25 Corinna Vinschen <vinschen@redhat.com>
+
+ * config/sim.exp (gdb_target_sim): Just return with -1 when setting
+ target sim fails. Return 0 otherwise.
+ (gdb_load): Return prematurely if gdb_target_sim fails.
+
2007-04-16 Denis Pilat <denis.pilat@st.com>
* gdb.base/setshow.exp: Reset height after having set it to 100.
#
proc gdb_target_sim { } {
global gdb_prompt
- global exit_status
set target_sim_options "[board_info target gdb,target_sim_options]";
timeout {
perror "Couldn't set target for simulator."
cleanup
- exit $exit_status
+ return -1
}
}
set timeout 10
verbose "Timeout is now $timeout seconds" 2
+ return 0
}
#
if [gdb_file_cmd $arg] then { return -1 }
}
- gdb_target_sim
+ if [gdb_target_sim] then { return -1 }
send_gdb "load\n"
set timeout 2400