From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by sourceware.org (Postfix) with ESMTPS id 211CA3857B8D for ; Fri, 23 Sep 2022 15:27:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 211CA3857B8D Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-x232.google.com with SMTP id s10so463671ljp.5 for ; Fri, 23 Sep 2022 08:27:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=MtUvJxR5G+zuzSik/ULgwjQ80Vu1YFGfDD30kW3pocA=; b=Il5GvMz9O+CDAVZzEwf8r2REdDmX19hVjfUvbfij6NpawNzCT0jnIRNQU2Uk/yzDU5 TWZSSXJ1/sq3qH/RMspCMGOpYT047zqFdxNk3gq4BNqnjsEapNKVP7Hn6W5tcPal97oK ZbmzN6J8s2EYbyDd5jWHTRZnHMu4zPXvtfEu0lRBlNZQU9cKkgqvh/QHtKGtXwABrrEH uRnH2k9icHTOB5Nogk+r15gq/rXIftgHuzmZOc+GUWNWsYn9LLxH9G8PK5pAxuWmqP8q T7BnqPdq9wZRAU/si/Y7ux4xvX5XKVBeUHaPs/UD1POf8tihXM8IfDCmHPnFB6n3uTzk ULzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=MtUvJxR5G+zuzSik/ULgwjQ80Vu1YFGfDD30kW3pocA=; b=fkwQeqjUBzCiaf86UVglY0YI6fGjHUCHybIwnFpkKhL/nXe2alXEBdYOiWTDMo3xnD 8u+O7l9kdl2WSmMo0vmvtFoG9eJs9PaTe3n4nVChzY2NgRH5G0dsPNQWc+goLn9tGtQx PR36uDM5lyfL/Hb7gevtoPkPbBPLk9Ly/otjbNeNLRVryVbxuZcPX0ix7WKyNLZLqTHr xOhvfm9E+P4JMhAU+7DtvEQOqasPx8pG8dNdh/yY45Em+mkR7WsFftLV2rxOAV74L1gP U2+FEQMpH5oa28mH9n9t7cqzVcZEHFa0fH0Pk5vR+7IoH3Yik5N0/TkdS/2EetssqCbZ 50qA== X-Gm-Message-State: ACrzQf3vw/i3HnSeBNZzsHLOPov23TUl/jYAlhslX/QuFH3rDFZnrPnj PQ/znfm06lWLqwlvSRPTslqwXBqekXuyND3rEYPxmbj9X7yUVw== X-Google-Smtp-Source: AMsMyM4srE0NUMZD/tCpP+KAaZgqqwNv3wKHgq2cx1sBIm1Owwhy7mwrqqSIxKUpawXBjr6s/nf3EFTDYXalkUNJBBI= X-Received: by 2002:a2e:a7cf:0:b0:26c:541a:e04c with SMTP id x15-20020a2ea7cf000000b0026c541ae04cmr2976730ljp.425.1663946819328; Fri, 23 Sep 2022 08:26:59 -0700 (PDT) MIME-Version: 1.0 References: <86aeaf80-204b-78dc-89b4-f1745bb75754@simark.ca> In-Reply-To: <86aeaf80-204b-78dc-89b4-f1745bb75754@simark.ca> From: Konstantin Vladimirov Date: Fri, 23 Sep 2022 18:26:48 +0300 Message-ID: Subject: Re: Running testsuite on QEMU (sorry if possible duplicate) To: Simon Marchi Cc: gdb@sourceware.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=0.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,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: Hi, > Are you using a remote target test setup, where the testsuite starts a gdbserver in the VM and GDB runs on the (e.g. x86-64) host? Exactly this case. > This would be a mistake, it would need to be fixed Thanks, then we will fix such cases locally and send some patches to the upstream. --- With best regards, Konstantin On Fri, Sep 23, 2022 at 5:51 PM Simon Marchi wrote: > > > > On 2022-09-22 06:31, Konstantin Vladimirov via Gdb wrote: > > Hi, > > > > My colleague Ivan already sent this question to this mailing list, but > > it looks like his email hasn't landed. > > > > We are trying to run dejagnu/gdb testsuite on QEMU (RISCV) on Linux. > > Some tests that pass on the local machine fail as they expect having > > shared libs or other binary files at hardcoded paths on a machine > > (QEMU in our case) where the binary is running. > > > > Question is: is it ok to patch gdb testsuite to get rid of hardcoded > > paths. Or maybe this is something intentional? > > > > Example: gdb.base/print-file-var.exp, see SHLIB_NAME variable. > > Can you clarify what is your setup? > > Are you using a remote host test setup? This would mean that you > cross-compile and "make check" on your host (e.g. your x86-64 machine), > but the testsuite uploads the gdb binary in the VM and runs it there. > And GDB itself would debug the local system natively (in the VM). > > Or, are you using a remote target test setup, where the testsuite starts > a gdbserver in the VM and GDB runs on the (e.g. x86-64) host? > > Either way, it sounds like that test you mention would be broken either > way, as SHLIB_NAME would be a path on the host. This would be a > mistake, it would need to be fixed. Not many people are using remote > host/target test setups, so these mistakes tend to creep in a lot. > > Simon