From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on2084.outbound.protection.outlook.com [40.107.8.84]) by sourceware.org (Postfix) with ESMTPS id 906E93858D3C for ; Wed, 22 Mar 2023 14:30:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 906E93858D3C Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=n0iss+qOUTaN58Qdk5lsAsXu1hnV14DLmS4vr4cPBtY=; b=Veq2DJ5izDpfVxab2eyypQtCjURoYt/W8tnlfgAIHJthF2qVj3pUVzJBr/moJY0d4VAug0btdLA1NuNHmmTjkXKWiNzyNgRIDW+UJnYPkkg60v19JJrAI93US1kV/KoqIVbokrvuYKDbXCs2afKME5qfwgzW+MRZIbgSD38m+sg= Received: from AS8PR04CA0082.eurprd04.prod.outlook.com (2603:10a6:20b:313::27) by DB8PR08MB5481.eurprd08.prod.outlook.com (2603:10a6:10:114::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37; Wed, 22 Mar 2023 14:30:47 +0000 Received: from AM7EUR03FT062.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:313:cafe::bb) by AS8PR04CA0082.outlook.office365.com (2603:10a6:20b:313::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37 via Frontend Transport; Wed, 22 Mar 2023 14:30:47 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM7EUR03FT062.mail.protection.outlook.com (100.127.140.99) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6222.17 via Frontend Transport; Wed, 22 Mar 2023 14:30:47 +0000 Received: ("Tessian outbound 55ffa3012b8f:v135"); Wed, 22 Mar 2023 14:30:47 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: a2ffe95efe2dca45 X-CR-MTA-TID: 64aa7808 Received: from 2659ec658857.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id B16C2057-5C3C-4E65-A4D9-D48BF58D3F92.1; Wed, 22 Mar 2023 14:30:40 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 2659ec658857.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 22 Mar 2023 14:30:40 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=d/ezEnZ/+vrpj4Ws0xfqrl+Tv6jVZqozP97mtxQ4s+FXyB55tKqlMIO529OquIehv4/xOWkiA6LrBa9b5hcIDgjFNN6FbCYvKdqmG8U306R69r8uUgQpZtTz1Jl5DiZ0mtwAzAWho+sO+EICgWqHduLFxNAX3jmruuRWsSI1cF+QcY4SCun30CXPTJWE99mZyI3xLcJvNPkkNSjmno3BeSBhxMeK/IdmkEfLSUKsPCKTeOEPPQXuZtnhZYLz0t0IJCrm5sW3tHjV74aavX3HBJ2b8K+ZBZlBXlm1oHnQoeqgGENRqJrBt85u5BjJawMOa9UYD+COeumv9vbZjOTxSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=n0iss+qOUTaN58Qdk5lsAsXu1hnV14DLmS4vr4cPBtY=; b=IU4h85eiH4rN4O10m2pZEzc83pVmh+rVP5I699HdgHrQzbjCDDGHSs9fIO8Y9jDOX1LkaOZChVhZajCu1fzDkxGW2p1piOGB1qkGLVjboQmp2PGrLDyNiTFdyUId4zQz4MHOkA/P/RJ9aqIvP9x2QZoucv6MsnrAjVHImwARMjWNjWUGr2hTl5frFR/HHKMUCivxkFGMjEgQ5U25DLKJOwuRYlNpmge73YxqzTxEwKnmcP1FwePaggIAXYU/xfWC4GNQ8gRdDFslT4uovtzm4iwwbQ75u4g+fB4qDothsR8/aC97YpcK+OE7ACe/v7DqX0EhJxvPSDo4uZEIoXfhag== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=n0iss+qOUTaN58Qdk5lsAsXu1hnV14DLmS4vr4cPBtY=; b=Veq2DJ5izDpfVxab2eyypQtCjURoYt/W8tnlfgAIHJthF2qVj3pUVzJBr/moJY0d4VAug0btdLA1NuNHmmTjkXKWiNzyNgRIDW+UJnYPkkg60v19JJrAI93US1kV/KoqIVbokrvuYKDbXCs2afKME5qfwgzW+MRZIbgSD38m+sg= Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from VI1PR08MB3919.eurprd08.prod.outlook.com (2603:10a6:803:c4::31) by DB4PR08MB7933.eurprd08.prod.outlook.com (2603:10a6:10:37b::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37; Wed, 22 Mar 2023 14:30:38 +0000 Received: from VI1PR08MB3919.eurprd08.prod.outlook.com ([fe80::bced:32a3:b77e:90a6]) by VI1PR08MB3919.eurprd08.prod.outlook.com ([fe80::bced:32a3:b77e:90a6%5]) with mapi id 15.20.6178.037; Wed, 22 Mar 2023 14:30:38 +0000 Message-ID: <895b1df2-5559-d1ca-7369-3b9089cccbc4@arm.com> Date: Wed, 22 Mar 2023 14:30:31 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [EXT] Re: Slow "symbol-file" when using GDB 12.1 on Windows hosts Content-Language: en-US To: Eli Zaretskii , Adrian Oltean Cc: gdb@sourceware.org References: <070fbd13-e03c-a4e8-1372-3f7813b7db92@arm.com> <83sfe3ciwy.fsf@gnu.org> <0df63795-2424-52e0-da93-92ab75a6d50f@arm.com> <83bkkn8sre.fsf@gnu.org> <838rfr8qym.fsf@gnu.org> From: Luis Machado In-Reply-To: <838rfr8qym.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SA9PR13CA0081.namprd13.prod.outlook.com (2603:10b6:806:23::26) To VI1PR08MB3919.eurprd08.prod.outlook.com (2603:10a6:803:c4::31) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: VI1PR08MB3919:EE_|DB4PR08MB7933:EE_|AM7EUR03FT062:EE_|DB8PR08MB5481:EE_ X-MS-Office365-Filtering-Correlation-Id: 3d34637e-e387-45d4-b59b-08db2ae2072e x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: Qt/gN9lecMmk52V28tA8yKGwteY694VBVoH2w5r74gFPtq8TWeJ7jCd924YbZulY+Uox4tLGWqyxzEaFP6pym2ZBRatMx19pgNGtkUKBzyMFL5PGap0lx23CxrRUVhoJP/UKFY3QBd4eIkpqzesM0haGNPUKvDWTDHkA2sAwU0x1o+L/qumXohFRrY5xKqa5H4CxZLSqLc0HhL5j/ltvQOw2thA9RqhO/PNR1Eqfl8Goe/kMJK9SW1m/9FvjGGRWeVb1gw6MufzpteYIeDi3YqzDQMhYsvIMOSDklsBqA5qaK6L24l+QcANgSMxdIHwIRFFrFW9rgqxVGu7enfyILm9JfEK0Gv2VFhfRspr+vR54Cj9zsgtoVnUqY0oqG+tJiHBKs1FJSFJeBFI5D2yMmdHaU0kqsakhMqWZYc7P70VrYsaw0NtqtjZRgvCLWdApUgoWLO9NALKgZQ0b0T1McAvDsvvA9x915Z/VOwIZhWBXND6Oa/yAaIBu2Z7CGbubf1kBNiEN/XaJsAxjjTD3wtgLFhjbJrgCjPoQbTwwMtFSw+XMcr4Kurmxloht4vhfOg5oMzj1MXimhPibHT7KQYJ/fOsdbt3wQH4EtZRwQR9fbNhEZgbIxYxpBunDnFe1P6CzB5l75AfHlDZOKSuKmhDNJZXsVQembs1McSlXnKhy09+AENpxdtCrSuEcoLUdjUg7zvzb5pIqE1E/7zYsnhnhzHkH1UVWEkX+YE4U7tc= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR08MB3919.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(4636009)(136003)(39850400004)(346002)(396003)(366004)(376002)(451199018)(6666004)(186003)(478600001)(26005)(6486002)(6506007)(83380400001)(8676002)(6512007)(31686004)(53546011)(110136005)(2616005)(316002)(66556008)(66476007)(66946007)(8936002)(5660300002)(41300700001)(4326008)(2906002)(38100700002)(86362001)(31696002)(36756003)(44832011)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR08MB7933 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT062.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 922c6c68-d5a7-4641-9337-08db2ae20158 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HmNxaf2GJHXhY8i1zwxPwb8aIn8xh5RbepgmyIce73rfCFNoERe8YM997FN1i3XKZw0cqRL7ha5XwWLjIBlAcp7HgW0zgpIu7kQGrC2lvsdCobzE9mAAHDPtpHB6k+hGIZEO1xf21z7gzYbiwUV+y5HrRzXmuRBLD02z45iik6rkIuBA9EVgEJ2g6mJkR8ZCU8p1XWyv1L4SatcOGtun2d88rIIylFGAWiOFXHtzPqO0FDzXnrUCcG6gGFijuB7eXHiIR+x1+5hMaT/zvVp0q1jUyFGTlKStAE3vDIodHTCG40LrV0/D+03yeYXwmMKBG7dthD15+xGHBlA+F/hZr24sQW9TtTNDzu88v0g/nzEfYMg6XDYX0eeynqBEoiNMYTC3yihrRlu1FHFZGdyu0j8mSGQay1FGU82nXt0T3QZm6vn44dMtvu10HPszER8bmZLlhs2uMAUtN7VCgASCW75v2UtCSp8jfjBUWNi3ThRcvKKIDX+rcBTAZE4d6tNnHMeojXBgdOWYrqZPcdvAqQStZ0JerWnMJsTGh0kpc3LtVUAISqWvw0sslmgiz37R0SWRIlm5m+neOspDRGkhgF3qfJhO9u2jK14OeSD15MKAcPlcXXkdMbiLQoQ2hGfYHvePBXYF29HgnTkqLYXME8YcORufAs+ptmd20A4KXTsiB01R4iUtzaxH8dkBjIm3Sgcq1CkXvaKUC7y8pA5MLeb2sM9p81f6XOIDc8rSyMs= X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFS:(13230025)(4636009)(396003)(346002)(136003)(39860400002)(376002)(451199018)(46966006)(40470700004)(36840700001)(478600001)(82310400005)(26005)(2616005)(316002)(83380400001)(47076005)(86362001)(44832011)(81166007)(36860700001)(41300700001)(70586007)(82740400003)(40460700003)(356005)(8676002)(36756003)(4326008)(70206006)(40480700001)(8936002)(31696002)(6506007)(336012)(186003)(53546011)(6512007)(6486002)(5660300002)(110136005)(6666004)(2906002)(31686004)(43740500002);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Mar 2023 14:30:47.3909 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3d34637e-e387-45d4-b59b-08db2ae2072e X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM7EUR03FT062.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR08MB5481 X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,FORGED_SPF_HELO,KAM_DMARC_NONE,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE,TXREP,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 3/20/23 13:58, Eli Zaretskii wrote: >> 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. The logic to lookup debug info is OS-invariant I think, but gdb does have to adjust to the Windows-style paths. With that said, most of the attempts gdb does at accessing directories is an attempt to locate separate debug info files or simply to locate shared library symbol files. Since there is quite a bit of variation in terms of where an OS puts those files, gdb has to use heuristics to try to determine those directories, so it will try to access gdb-generated paths sometimes. It shouldn't slow things down though, as it is mostly a file open/close request.