From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) by sourceware.org (Postfix) with ESMTPS id 8C5483858D39 for ; Thu, 9 May 2024 09:47:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8C5483858D39 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 8C5483858D39 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=209.85.128.52 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715248029; cv=none; b=vBMZIwvo4Vj0Cdka62Z+VGtunoEJL62CTNKu0rWhMQehfoeEO/KUxRdh+Ac+e2QyGdGyrmjLQZ9egT+BMu3Hx5nrmAfp4krDa7GvdvbnBfdWQApoF0lmC3+gVbayz9XSc1QjkPyVKI2SDArBPDI0xr3xvYFRiiGl5jAudQDbsxg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715248029; c=relaxed/simple; bh=u7HXxgqZPAn/dzmck9DR9BKv/W76itNn4pD1lzEnn6w=; h=Message-ID:Date:MIME-Version:Subject:To:From; b=dNfciCDS4NF/c7Sv9CUPOlwUOlr5UNgaIm/fsaED1AJsCd1XcB16hxGW/6kqbZd62aDkJjeuTao6v5PQnN6jwVQOcIWbz8IPoD+3W1J9/R3jmKyCFDnT15u/DDSY3A/JguoMZgdP8A1f+amm+DQc2KfYbH9/7bh8/H5SHofkoxY= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-41fd5dc04f0so1842535e9.0 for ; Thu, 09 May 2024 02:47:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715248026; x=1715852826; 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=jjq7yrrGVPOAzxesicKQbuEzae5+KSFGoAMBRBxnQFU=; b=F0fQX4DjYauwNix2LoAo9AQjrQkw3Z+4GoVOjQsqMEYk1HuhGjUIVz2uXHQW+NAMsI mZ7urjGO8HNBS/JGubUIWqNHJe2/ud8faMu5xQNtXwp/mnBACyRkbk/TFxsgih6RZp1I TXy4PRYI+qB9aAMFYRP+nla70872/ChGynebdb/LnM9mMSBN5lHmUeSOnfwt7b54xrar lHQFYeVLSTFaes0W1eLAlxtK4J0Ijn9IKvu/Qk3D7A5T4JkanLbXHzgaBPthZK9Jvoo/ 9hAEfFejP1H5jeWKL9db6xqwyUNWOS4ZOJBK7/bd3oKFqXfKuukW7gF2ohfaenJTnEAc +w8Q== X-Gm-Message-State: AOJu0YyFLAZAogwz4XAT4H7x6JzjMA7sLe2vxTYOjm9eEGBUP3PsTUJL JxYoKsVwAn0u7xCH8+K0/o47AEZ92l5jScHsLdYAn8JgxMUbQNKO X-Google-Smtp-Source: AGHT+IEChjkP+0tG38/fdxIN3/XyF7DsWQdrdfAyWwE0JNqSZzitHtatoauje7i4MFGe8Rc+hmB7UA== X-Received: by 2002:a05:600c:3594:b0:41f:d1e0:5ba9 with SMTP id 5b1f17b1804b1-41fd1e05c44mr13088965e9.37.1715248025636; Thu, 09 May 2024 02:47:05 -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-3502bbbc955sm1231499f8f.111.2024.05.09.02.47.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 May 2024 02:47:05 -0700 (PDT) Message-ID: <3a7ddd13-c4f7-4dcd-99d4-2c943195540a@palves.net> Date: Thu, 9 May 2024 10:47:03 +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> 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=-3.5 required=5.0 tests=BAYES_00,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi Bernd, On 2024-05-09 09:47, Bernd Edlinger wrote: > Hi Pedro, > > Sorry, for the late reply. > > I am testing with riscv-unknown-elf target using simulator. > Before this patch I had: > > PASS: gdb.base/load-command.exp: probe for target native > PASS: gdb.base/load-command.exp: check initial value of the_variable > PASS: gdb.base/load-command.exp: manually change the_variable > PASS: gdb.base/load-command.exp: check manually changed value of the_variable > PASS: gdb.base/load-command.exp: reload: re-load binary > PASS: gdb.base/load-command.exp: reload: check initial value of the_variable > > and now > > UNSUPPORTED: gdb.base/load-command.exp: the native target does not support the load command > > note: I use RUNTESTFLAGS="--target_board=multi-sim SIM=riscv-unknown-elf-sim" > but the test was working fine, because with this target > we use target sim, load, and can runto main, inspect variables, etc. > I'm trying to understand how the sim board works, to figure out what is the best course of action. I see that /usr/share/dejagnu/config/sim.exp has: set_board_info protocol "sim" but evidently (from your output) nothing sets gdb_protocol. Where is the code that does "target sim" to connect to the sim inside GDB? I can't seem to find that. Pedro Alves