From patchwork Tue Aug 9 16:33:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Beniston X-Patchwork-Id: 14451 Received: (qmail 22825 invoked by alias); 9 Aug 2016 16:33:33 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 22809 invoked by uid 89); 9 Aug 2016 16:33:32 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.4 required=5.0 tests=AWL, BAYES_50, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 spammy=HContent-Language:en-gb, Hx-spam-relays-external:Postfix, H*RU:Postfix, HX-HELO:sk:smtprel X-HELO: smtprelay.hostedemail.com Received: from smtprelay0001.hostedemail.com (HELO smtprelay.hostedemail.com) (216.40.44.1) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 09 Aug 2016 16:33:19 +0000 Received: from filter.hostedemail.com (unknown [216.40.38.60]) by smtprelay08.hostedemail.com (Postfix) with ESMTP id 4CA7F29DDE4; Tue, 9 Aug 2016 16:33:15 +0000 (UTC) X-Session-Marker: 6A62656E6973746F6E40756B322E6E6574 X-Spam-Summary: 2, 0, 0, , d41d8cd98f00b204, , :::, RULES_HIT:10:41:355:379:541:542:800:960:973:988:989:1155:1260:1277:1311:1313:1314:1345:1437:1515:1516:1518:1534:1541:1587:1593:1594:1711:1730:1747:1777:1792:2110:2393:2559:2562:3138:3139:3140:3141:3142:3352:3653:3865:3866:3867:3868:3870:3871:3872:4184:4321:4605:5007:10004:10400:10848:11026:11658:11914:12043:12517:12519:12555:13069:13071:13161:13229:13311:13357:13439:14180:14181:14394:14721:21060:21080:30054:30075, 0, RBL:none, CacheIP:none, Bayesian:0.5, 0.5, 0.5, Netcheck:none, DomainCache:0, MSF:not bulk, SPF:fn, MSBL:0, DNSBL:none, Custom_rules:0:0:0, LFtime:3, LUA_SUMMARY:none X-HE-Tag: line44_38113fc5ea426 X-Filterd-Recvd-Size: 1748 Received: from LoftPC (cpc97974-croy24-2-0-cust112.19-2.cable.virginm.net [77.99.44.113]) (Authenticated sender: jbeniston@uk2.net) by omf08.hostedemail.com (Postfix) with ESMTPA; Tue, 9 Aug 2016 16:33:05 +0000 (UTC) From: "Jon Beniston" To: Cc: Subject: [PATCH] Use target_sim_options when selecting sim as target Date: Tue, 9 Aug 2016 17:33:04 +0100 Message-ID: <041e01d1f25b$b57ed930$207c8b90$@beniston.com> MIME-Version: 1.0 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 * 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$" { }