From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 3rFsIF//BmJ8bQAAWB0awg (envelope-from ) for ; Fri, 11 Feb 2022 19:29:19 -0500 Received: by simark.ca (Postfix, from userid 112) id 740461F3B6; Fri, 11 Feb 2022 19:29:19 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.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 3DCCD1EE1A for ; Fri, 11 Feb 2022 19:29:12 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0B6E93858029 for ; Sat, 12 Feb 2022 00:29:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0B6E93858029 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1644625751; bh=HogFhA6QB7Qb4+h326ylYJk/TTUaTAHlXKabEMvl47Y=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=y41Hkyd69QRdqlm/Vy5MJM++nSTiRjyDVGC4CC8OUt0Gmvc00KOgp0uaOwUJbqccy OknuM+m6buTki7sop2VtDtkW4TCCmxuAWtYSIFO2oymgwK0GbOba4hjn9+bTQF4cXg 1/B/oqnyvABzD7k5BFmzQ4BBcA4VBQt5GVVNiink= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 920A4385841B for ; Sat, 12 Feb 2022 00:28:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 920A4385841B Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-153-jrxUJe0jMZyG_ufBtRT6Qw-1; Fri, 11 Feb 2022 19:28:51 -0500 X-MC-Unique: jrxUJe0jMZyG_ufBtRT6Qw-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 331ED1808326 for ; Sat, 12 Feb 2022 00:28:50 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.22.34.102]) by smtp.corp.redhat.com (Postfix) with ESMTP id B33484E2B1; Sat, 12 Feb 2022 00:28:49 +0000 (UTC) To: gdb-patches@sourceware.org Subject: [PATCH] gdb-add-index: disable debuginfod Date: Fri, 11 Feb 2022 19:28:47 -0500 Message-Id: <20220212002847.504539-1-amerey@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" 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 Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" gdb-add-index may trigger debuginfod's first-use notice. The notice is misleading in this case. It instructs the user to modify .gdbinit in order to permanently enable/disable debuginfod but gdb-add-index invokes gdb with -nx which ignores .gdbinit. Additionally debuginfod is not needed for gdb-add-index since the symbol file is given as an argument and should already be present locally. Fix this by disabling debuginfod when gdb-add-index invokes gdb. --- gdb/contrib/gdb-add-index.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/gdb/contrib/gdb-add-index.sh b/gdb/contrib/gdb-add-index.sh index 0ff943d506e..591f32bbbbe 100755 --- a/gdb/contrib/gdb-add-index.sh +++ b/gdb/contrib/gdb-add-index.sh @@ -112,6 +112,7 @@ rm -f $tmp_files trap "rm -f $tmp_files" 0 $GDB --batch -nx -iex 'set auto-load no' \ + -iex 'set debuginfod enabled off' \ -ex "file $file" -ex "save gdb-index $dwarf5 $dir" || { # Just in case. status=$? -- 2.34.1