From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id W1X1BVevDmO7KDAAWB0awg (envelope-from ) for ; Tue, 30 Aug 2022 20:46:15 -0400 Received: by simark.ca (Postfix, from userid 112) id 0D14E1E4A7; Tue, 30 Aug 2022 20:46:15 -0400 (EDT) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=djFc1KYm; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id B7B3D1E21F for ; Tue, 30 Aug 2022 20:46:14 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A9EC33839DE9 for ; Wed, 31 Aug 2022 00:46:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A9EC33839DE9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1661906773; bh=2e8qUBptTdMboJcc4xUNErbkj0cnytVXBx9GDFVuKsA=; h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=djFc1KYmqFVp3Va724DIfYMqLtdmVbNu0GpHXWCKKnGnNUd6wiLYNQG0NPS46yZyD gP3UxvotyUS5O+KUUlRCkWY2DfiymQ1pAeQIhyydZeHqXO/Ft2jZIJ0TsYEyQSVdln FzgbPIKr4JD2rl3XnMC9ShQdYTiqaS0/9+KxT/NQ= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 0F8C0383A23E for ; Wed, 31 Aug 2022 00:45:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0F8C0383A23E Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-360-VCTQyQuNMTGHmt7fIHUJiA-1; Tue, 30 Aug 2022 20:45:52 -0400 X-MC-Unique: VCTQyQuNMTGHmt7fIHUJiA-1 Received: by mail-qv1-f72.google.com with SMTP id h13-20020a0ceecd000000b00498f5b113e6so6368912qvs.21 for ; Tue, 30 Aug 2022 17:45:52 -0700 (PDT) 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; bh=2e8qUBptTdMboJcc4xUNErbkj0cnytVXBx9GDFVuKsA=; b=su//p8vRrCRSsDe2FhaMGX3CkHW3MUT9doyMQZinkDw4IrBT0nJdJMVpO2bmP1ZnEf KeCTOmnrxreflnivZKzTqKkNqgfqNFC5huuOAHQa5S0hTfWB8pjEEO3QoUCRYSJJ3Jbj qK3hAGUIi54swNp8IfvCP3ygoLUA5YFUJp2FiZgjLCOREqhBTQqj1eq8GGN3dVesa5OS zXmgSUXbKA/MlDAgs0PsTQdxnUnarrMLRNvqcPr2G13UuAn03nzutRoGzxt8D2goYwDG k2mF41c9pf7jvlaqbdp/Lup5bnwsL2J0RNBJrgrEcSo5YB393YgC0KJk5yM7JTIuzK3J zLWQ== X-Gm-Message-State: ACgBeo1sBGy6M++8c0Jkueh/LH+TTft4aaDb1AwLh+Pam3k2StK7RXo1 zBMFdyliCNVKUxHn24oJ2aLNCL9IJq3oa6oSK/VFKVOl2FK5x+PifB22DPkt7OzpfBop2Z+cVu3 orzyxGTXHoOD5Ep7fXJDF3u19Yi4J/Gl11dP/ X-Received: by 2002:a05:6214:f27:b0:476:9d88:2597 with SMTP id iw7-20020a0562140f2700b004769d882597mr17308026qvb.45.1661906752136; Tue, 30 Aug 2022 17:45:52 -0700 (PDT) X-Google-Smtp-Source: AA6agR6bgF9djATR1X4Rx02o6A3b6x1MIqc8i20XDkBBwc+PbWM7FGxTTSgdjhd25WLkP2l4xIaNjQ7r58RLrVMWURs= X-Received: by 2002:a05:6214:f27:b0:476:9d88:2597 with SMTP id iw7-20020a0562140f2700b004769d882597mr17308015qvb.45.1661906751909; Tue, 30 Aug 2022 17:45:51 -0700 (PDT) MIME-Version: 1.0 References: <20220401200751.242370-1-amerey@redhat.com> <87sflda9wd.fsf@tromey.com> In-Reply-To: <87sflda9wd.fsf@tromey.com> Date: Tue, 30 Aug 2022 20:45:41 -0400 Message-ID: Subject: Re: [PING][PATCH] gdb/elfread.c: Use bfd filename instead of objfile->original_name To: Tom Tromey X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Aaron Merey via Gdb-patches Reply-To: Aaron Merey Cc: Aaron Merey via Gdb-patches Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" On Tue, Aug 30, 2022 at 2:01 PM Tom Tromey wrote: > Thanks, this is ok. Thanks, pushed as commit 803584b96d9. > >> > In some cases original_name is prefixed with gdb's working directory > >> > even though the objfile is not located in the working directory. > > Offhand this seems bad. It looks like this can occur when gdb_abspath converts an executable name to an absolute path in the objfile ctor. For invocations like `gdb prog` it assumes the user meant `gdb ./prog` even when prog is found somewhere else. Aaron