Use target_sim_options for sim target.

2016-09-10  Jon Beniston  <jon@beniston.com>

	* lib/mi-support.exp (mi_gdb_target_load): Use target_sim_options
	for sim target.
This commit is contained in:
Jon Beniston 2016-09-10 21:18:56 +01:00
parent 855dde8e78
commit cc3c284619
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2016-09-10 Jon Beniston <jon@beniston.com>
* lib/mi-support.exp (mi_gdb_target_load): Use target_sim_options
for sim target.
2016-09-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
* gdb.base/gnu-ifunc-lib.c (resolver_hwcap): New external

View File

@ -602,8 +602,9 @@ proc mi_gdb_target_load { } {
}
}
} elseif { [target_info protocol] == "sim" } {
set target_sim_options "[board_info target gdb,target_sim_options]"
# For the simulator, just connect to it directly.
send_gdb "47-target-select sim\n"
send_gdb "47-target-select sim $target_sim_options\n"
gdb_expect $loadtimeout {
-re "47\\^connected.*$mi_gdb_prompt$" {
}