summaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/lib')
-rw-r--r--gdb/testsuite/lib/mi-support.exp3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/testsuite/lib/mi-support.exp b/gdb/testsuite/lib/mi-support.exp
index 18664c4d56f..7c2bb3e243a 100644
--- a/gdb/testsuite/lib/mi-support.exp
+++ b/gdb/testsuite/lib/mi-support.exp
@@ -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$" {
}