From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) by sourceware.org (Postfix) with ESMTPS id ABC303858D39 for ; Thu, 9 May 2024 12:05:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org ABC303858D39 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=palves.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org ABC303858D39 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=209.85.221.44 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715256333; cv=none; b=BGtNES+sOwHwsZFNZuW1Bawq+hiM+Aoi9HBSixDh7DZAosUP60E1mGyIfn0RnHJuXj4F3HwT1MC2XSi7nKsvQJ6zqhK2kqaNxK4cb/HjdpCNFt5skxQgrxmlE+gjXO4o/KdGrNZMrvI/HzlrfyfCmnPrFAmsVGmThQtsZj0JBwY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715256333; c=relaxed/simple; bh=1Onfvchfti6gzsPTv/bp2I5ursEBNev/a1/uqe8rABw=; h=Message-ID:Date:MIME-Version:Subject:To:From; b=RRkwENG9rDoh7QcouYEH/ZvJu3Vx14R6g2WqOX9g6BauFq8r+7qSFunPzouJolutYHXMFZ2fXD1l5pcOSXx4nMtIFeTeozabJ5jKyGlaZU/D54/0UuFq60aMBR2dtr75KB4rr5aQrY0wgs2uVgfvVGaDFqZw50pNob/CdEOWIIU= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wr1-f44.google.com with SMTP id ffacd0b85a97d-34ef66c0178so505253f8f.1 for ; Thu, 09 May 2024 05:05:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715256330; x=1715861130; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=JVw9QQpFgrokGnhWmG7uItoQNj+InLi+waZ8pWT3S4A=; b=DnOPMf/50V+15AOXiNziufR6wx909VNXEtmyGze15Tmlv83WWrIorH4AIWdWXAXLq8 XGgLKlBpxFPaDpqsxJ4hgSmkMklzfrmuOP75Lqq8jP586+8vnTdqU05b3YvKLbI0xt8p qFCvYbwDPQpGmO7k9ZKNyJ1OPE1UPYUvDNDpNlBcdxgPbOJR9wb0yc/YbKHNWiesVXxQ XvM6s2q88wB4xaToOBFgNvKFPTGwSi6xyz1lHeIsvN+2HM0DvBbc1oZx+2RYVGx79VD+ 8zUqkJxKZhDfXAcOAFVCfgAAQuaHtOq02Ndfn+ocEwCPkbyPxbgKEtq6mlLN6lrPlvxs SvEA== X-Gm-Message-State: AOJu0Yy5HfWJ8m4pDlujmzABoT+s2T39Y83BoBjpvktbP6Dax2o9mBcJ ADgwp1S4SYA5WOz2I+lV1LzeNazTWn8HnQ/StLqFtLOscy4FSqIr X-Google-Smtp-Source: AGHT+IHl9lbYbGLeFfBjtwrx3x913RssOaVzVWg93hGSTrFFUqpYTw3QSCEaOT1uaAt8ID7wG0lu8g== X-Received: by 2002:adf:c043:0:b0:341:d3b0:ae7d with SMTP id ffacd0b85a97d-34fcaa048aemr4338957f8f.45.1715256330386; Thu, 09 May 2024 05:05:30 -0700 (PDT) Received: from ?IPV6:2001:8a0:f908:4900:7b85:4b94:a70:8c25? ([2001:8a0:f908:4900:7b85:4b94:a70:8c25]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3502b79bc6csm1541223f8f.21.2024.05.09.05.05.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 May 2024 05:05:29 -0700 (PDT) Message-ID: Date: Thu, 9 May 2024 13:05:24 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 09/12] gdb_target_is_native -> gdb_protocol_is_native To: Bernd Edlinger , Tom Tromey Cc: gdb-patches@sourceware.org References: <20240419151342.1592474-1-pedro@palves.net> <20240419151342.1592474-10-pedro@palves.net> <87edb1w5iq.fsf@tromey.com> <3a7ddd13-c4f7-4dcd-99d4-2c943195540a@palves.net> From: Pedro Alves Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-10.4 required=5.0 tests=BAYES_00,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,GIT_PATCH_0,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,KAM_SHORT,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 2024-05-09 12:54, Bernd Edlinger wrote: > On 5/9/24 11:47, Pedro Alves wrote: > I think that file would be used when I run the gcc testsuite, > there I set the path to my riscv-toolchain, > and invoke this in the gcc-build directory: > make check -i RUNTESTFLAGS="--target_board=multi-sim SIM=riscv-unknown-elf-run" > or SIM=qemu-riscv32 for comparison. > > But if I run the gdb testsuite I can do the same, but the SIM=parameter I could even > use SIM=true, is only a dummy, it must be executable, but it is not used in the end. > And I believe for gdb the following file is picked up instead: > > binutils-gdb/gdb/testsuite/config/sim.exp > Ah, OK, that makes a lot more sense. I got confused with the "multi-sim" thing. Since it's our file, it makes it makes easier. I guess we should try sticking: set_board_info gdb_protocol "sim" in that file. Like the patchlet below. Could you give it a try, please? >From 843a53be479e22926a3dbecc76c5de6160796af4 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Thu, 9 May 2024 13:01:53 +0100 Subject: [PATCH] gdb_protocol sim Change-Id: I48a7afed004a3517b90220674fe5bc856fe7d09a --- gdb/testsuite/config/sim.exp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gdb/testsuite/config/sim.exp b/gdb/testsuite/config/sim.exp index 81736d25814..da2780e1d47 100644 --- a/gdb/testsuite/config/sim.exp +++ b/gdb/testsuite/config/sim.exp @@ -14,6 +14,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +# If we left this empty, the core of the testsuite would think we were +# connecting to the native target. +set_board_info gdb_protocol "sim" + # # gdb_target_sim # Set gdb to target the simulator base-commit: 5021daf303393722f58f4422d7ad53d526aa2d50 -- 2.43.2