From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 66E823858413 for ; Mon, 20 Mar 2023 13:58:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 66E823858413 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gnu.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gnu.org Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1peG1j-0008ML-2k; Mon, 20 Mar 2023 09:58:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=txJOlGdqAZM7Nh46a7DMBx0wV7WkEvufKavwxmUc7Po=; b=DpSLbCvbGZtd ncviHqFVFjUM8BvcYwYSVQ83DBeEz3iuCYJuCzqBWor8iczH3FM5iVj1tMD7MSMfIbAnMPFYy69kk YSiHWZ0Ta1TwYEtvjnWM3hdaO0XPJiY9vyVwjyXb36YQ0yDR9xOs9jkle2DGlleHE5k4HYQAdmQbe 1EWojVLh+lnXR7IHhejjvXGAqBV1GuBMvZFYOkAZG9cpo7uTmS+4v9iuBCB3FzWs4A2mS+pptfhW4 GaPQqJUCtuYwZpQGN+h0ZvVU7QOiOa0MH5Z1zayFqzAhaoDH0BPmpMve1QpmzJf/AzLpQNNgFC5Bd wSlp32VA778g037ONo2Dyw==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1peG1h-00069S-Mx; Mon, 20 Mar 2023 09:58:18 -0400 Date: Mon, 20 Mar 2023 15:58:25 +0200 Message-Id: <838rfr8qym.fsf@gnu.org> From: Eli Zaretskii To: Adrian Oltean Cc: luis.machado@arm.com, gdb@sourceware.org In-Reply-To: (message from Adrian Oltean on Mon, 20 Mar 2023 13:33:49 +0000) Subject: Re: [EXT] Re: Slow "symbol-file" when using GDB 12.1 on Windows hosts References: <070fbd13-e03c-a4e8-1372-3f7813b7db92@arm.com> <83sfe3ciwy.fsf@gnu.org> <0df63795-2424-52e0-da93-92ab75a6d50f@arm.com> <83bkkn8sre.fsf@gnu.org> X-Spam-Status: No, score=1.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_BARRACUDACENTRAL,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: > From: Adrian Oltean > CC: "luis.machado@arm.com" , "gdb@sourceware.org" > > Date: Mon, 20 Mar 2023 13:33:49 +0000 > > These were the questions: > 1. Is GDB trying to find debug symbols in all those folders? Or what's with them? > 2. What is the code from GDB that artificially builds all those paths? > 3. GDB 10.2 does not seem to access "C:\Windows\CSC\v2.0.6\namespace\lib", nor > "\\lib\debug\Users\MyUsername\...". Is this related to a recent change? Can someone > point to the relevant change in this case? > 4. Is there a command to stop GDB from attempting to access those files/folders? Sorry, I don't know the answers. Maybe Luis or someone else does. In general, AFAIK GDB searches directories recorded in the program's debug info, and also some source directories. See the node "Source Path" in the GDB manual. Also try "show solib-search-path". The "show libthread-db-search-path" command could also be relevant; see "Threads" in the manual.