From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 C70173858D39 for ; Thu, 10 Mar 2022 20:16:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C70173858D39 Received: from mail-yb1-f198.google.com (mail-yb1-f198.google.com [209.85.219.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-628-n6W-cOQqMQKaxncTNZD3Fw-1; Thu, 10 Mar 2022 15:16:18 -0500 X-MC-Unique: n6W-cOQqMQKaxncTNZD3Fw-1 Received: by mail-yb1-f198.google.com with SMTP id b12-20020a056902030c00b0061d720e274aso5393981ybs.20 for ; Thu, 10 Mar 2022 12:16:18 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=RjS0TDgmAopBowUTHhHPqTDLggKnQ7proY+K+sGE4JM=; b=woy+sb90ooimoVjrco27GtuhC2JCZEEnbzmxHYlxGh3Z+YmJs7UChAlFX2mB5hkevC D343CZuA7PeP8LTuUwHK9/L9z+P3RNAgb31Y+ov/LMiT8C72PbmyBD/wRRlgClqVGfRr /dSvNVphaGtkgKrFse/yOo2ep6JuRFHKXc1i78wVPrG+KGA+8yyLIY5lNKG4JHYiFH+O mGQJsf61EY5TvZFzo1nJKK/yTw5zPd493QqRHPtgeN4XeUVi8xJEGJkg9AKcC+wo6yoo BKsdAGpJjn/LytB4fw3c9OwHYBE2Hdfk6KtCABnkITCwDtMBqBGI6Q4hXRV+gf+rhi05 I07w== X-Gm-Message-State: AOAM530nlvTneV9ndRPzK0xxq+qBkio9hVcSg+xrAOEtmu5XTXWdBGDE dwo+3eC8mr4gtxICWuksoDHSMJOyNMSsRIMPUp39lhwQJcK9jut//JSQSSa+AwDPIRu/TCpHY9p c800UhtDuEnskKgvCIlKB0jcx8WYjQLV1EmPs X-Received: by 2002:a81:fc5:0:b0:2db:cdc3:6091 with SMTP id 188-20020a810fc5000000b002dbcdc36091mr5523531ywp.198.1646943377864; Thu, 10 Mar 2022 12:16:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJzrT8pSHkNR4GYXvSuolaRw45uGfgirHJG1L9SwCUZs6mWD9CU0w83/YCiVBr8bjeRQR4MEMD0+Lv/e2Phb4FI= X-Received: by 2002:a81:fc5:0:b0:2db:cdc3:6091 with SMTP id 188-20020a810fc5000000b002dbcdc36091mr5523519ywp.198.1646943377690; Thu, 10 Mar 2022 12:16:17 -0800 (PST) MIME-Version: 1.0 References: <87o82lu2xy.fsf@tromey.com> <20220308224136.173615-1-amerey@redhat.com> <02e57ea2-29bb-1a93-da39-7b58621f0944@palves.net> In-Reply-To: <02e57ea2-29bb-1a93-da39-7b58621f0944@palves.net> From: Aaron Merey Date: Thu, 10 Mar 2022 15:16:06 -0500 Message-ID: Subject: Re: [PATCH] gdb: Try searching for auto-load script using .gnu_debuglink To: Pedro Alves Cc: Tom Tromey , gdb-patches@sourceware.org X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-5.7 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org 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: , X-List-Received-Date: Thu, 10 Mar 2022 20:16:21 -0000 Hi Pedro, On Thu, Mar 10, 2022 at 1:26 PM Pedro Alves wrote: > > On 2022-03-08 22:41, Aaron Merey via Gdb-patches wrote: > > + auto_load_debug_printf > > + ("auto-load: Stripped .exe suffix, retrying with \"%s\".", > > + realname.get ()); > > + > > With "auto-load:" in the fmt, doesn't gdb print "auto-load" twice? This was fixed in the second version of the patch I posted: On Tue, Mar 8, 2022 at 5:41 PM Aaron Merey wrote: > + auto_load_debug_printf > + ("Debug filename mismatch, retrying with \"%s\".", > + p_realname.c_str ()); The first version repeated "auto-load" because I based the message on a pre-existing call to auto_load_debug_printf in auto_load_objfile_script which contains a repeated "auto-load". That should be fixed and I will post a patch for this. Aaron