From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.polymtl.ca (smtp.polymtl.ca [132.207.4.11]) by sourceware.org (Postfix) with ESMTPS id 50B423858012 for ; Thu, 1 Apr 2021 13:38:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 50B423858012 Received: from simark.ca (simark.ca [158.69.221.121]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 131DcBGd022553 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 1 Apr 2021 09:38:16 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 131DcBGd022553 Received: from [10.0.0.11] (192-222-157-6.qc.cable.ebox.net [192.222.157.6]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id 8FC691E590; Thu, 1 Apr 2021 09:38:11 -0400 (EDT) Subject: Re: [RFC][gdb/symtab] Add DEBUG_DEBUGINFOD_CLIENT in debuginfod-support.c To: Tom de Vries , gdb-patches@sourceware.org References: <20210331135644.GA13846@delia> From: Simon Marchi Message-ID: <89c4fbb4-e7d4-d772-c18e-ac13713188e7@polymtl.ca> Date: Thu, 1 Apr 2021 09:38:11 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <20210331135644.GA13846@delia> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Poly-FromMTA: (simark.ca [158.69.221.121]) at Thu, 1 Apr 2021 13:38:11 +0000 X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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, 01 Apr 2021 13:38:19 -0000 On 2021-03-31 9:56 a.m., Tom de Vries wrote:> Hi, > > Add an off-by-default debug trace option DEBUG_DEBUGINFOD_CLIENT in > debuginfod-support.c. > > By redefining DEBUG_DEBUGINFOD_CLIENT to 1, we get a trace like this: > ... > TRYING DEBUGINFO FOR: \ > /home/vries/gdb_versions/devel/system-supplied DSO at 0x7ffff7ffa000 > BUILDID: 157d01461677175219ab3ccd37454aeb740d2a7e > TOOK: 0.699193 seconds > RESULT fd: -2 > warning: Source file is more recent than executable. > TRYING SOURCE: /home/abuild/rpmbuild/BUILD/gcc-7.5.0+r278197/\ > obj-x86_64-suse-linux/x86_64-suse-linux/libgcc/../../../libgcc/\ > config/i386/sfp-exceptions.c > BUILDID: 97481d83f99d6da01138fe4c61114da27e34d17e > TOOK: 1.724909 seconds > RESULT fd: -2 > TRYING SOURCE: /home/abuild/rpmbuild/BUILD/gcc-7.5.0+r278197/\ > obj-x86_64-suse-linux/x86_64-suse-linux/libgcc/../../../libgcc/libgcc2.c > BUILDID: 97481d83f99d6da01138fe4c61114da27e34d17e > TOOK: 0.819237 seconds > RESULT fd: -2 > ... > > Any comments? Hi Tom, I think this would be more useful if this was available using a "set debug debuginfod" parameter, like the other debug printouts. Simon