This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Use target_sim_options when selecting sim as target


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$" {
            }



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]