This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] Use target_sim_options when selecting sim as target
- From: "Jon Beniston" <jon at beniston dot com>
- To: <gdb-patches at sourceware dot org>
- Cc: <jon at beniston dot com>
- Date: Tue, 9 Aug 2016 17:33:04 +0100
- Subject: [PATCH] Use target_sim_options when selecting sim as target
- Authentication-results: sourceware.org; auth=none
Hi,
The following patch uses target_sim_options from the board info when
selecting the sim target. This is set in some of the sim baseboards, and can
be needed to configure the simulator appropriately.
Cheers,
Jon
2016-0-09 Jon Beniston <jon@beniston.com>
* gdb/testsuite/lib/mi-support.exp (mi_gdb_target_load): Use
target_sim_options for sim target.
diff --git a/gdb/testsuite/lib/mi-support.exp
b/gdb/testsuite/lib/mi-support.exp
index 28af70a..3507b5b 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$" {
}