From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2042.outbound.protection.outlook.com [40.107.20.42]) by sourceware.org (Postfix) with ESMTPS id E5D573858C2C for ; Mon, 20 Mar 2023 13:33:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E5D573858C2C Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jjrMmWA8u3UGPQmF6TXcoCH48QFzdagvGIEkyfnDGOZn7nWeNreMD4WJzYEh3bTNWVGBdUshUezhZfRXI/aFeVo3vTmUuK6iKKTmGM0LtXFIyDZHAKbdJLuUPqJBuCdtPCV+KVKImVeF10jVZOFeIOTwnzBrJ9cR8gRZ9HCLlCxl3ZPxUURzl5MzzgU/sBpp7de16OpsV+trWbfFSTE/cp170AIezGvvhUS8ePlm78IzF2UsM1B2WNoe8b7g8t/ymNAwUuTQSgp8xVSoHGYBTUPvvqhBXgvSxZEH0Luc8ZEUA/4ko8yAqcbB32gzEz6kDGqXEPfZwsJIJksWpqCZfQ== 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=kdb0cohz3A9VLPmOOY0c1hb3pbSn+XJ+UE3IZFAIwEw=; b=Qj2qElmz05fas5bLulTmNF230nt8kWUHg7uR71DY5wQYBIZ0+mEgEUkSzuimAfIY+gbl716cPHcCxcTfZ0lt/3Cb+KHDiCH9WmUE/hOxUV1RLYqzUS3HUaJ6c4z33KJk6K4CRyY5YcLTeicnuNRb0X6NJqfAr+ZE/E/1OtVCL0J8LlxiZKPsErwtXBoVgL96ev8g1vOP64BaAuu89T+w71V5/YrGZzcAVZ/thrhjsaRF2q8H3GMoq08M5Oj9dQuDPZE0w34ECWL4eqKf8yjfMdE0VDDErtMBoyQlKKXPurJSR4QGAUqO00ubz8Y0FggstLDcWs+/rh2qxsrJAyMYmA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kdb0cohz3A9VLPmOOY0c1hb3pbSn+XJ+UE3IZFAIwEw=; b=UQBwXQhXkVXLlqBOC1s4i4EkklmLskZr9+DCT3NoOxaaOo+3Dnw7vymyIV8NOXuCgn5/h4LCF79iZlPWgFzmE699knk74Zo853yJJevOy3yuWEJpbHO8MQZcjifHPstHXC4ysYEKZYSw6Ds/34P6VeMMDuxin94HoGLqEHkIaoo= Received: from AM6PR04MB4630.eurprd04.prod.outlook.com (2603:10a6:20b:17::21) by AS8PR04MB7733.eurprd04.prod.outlook.com (2603:10a6:20b:288::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37; Mon, 20 Mar 2023 13:33:53 +0000 Received: from AM6PR04MB4630.eurprd04.prod.outlook.com ([fe80::727e:eb1:4ede:272c]) by AM6PR04MB4630.eurprd04.prod.outlook.com ([fe80::727e:eb1:4ede:272c%5]) with mapi id 15.20.6178.037; Mon, 20 Mar 2023 13:33:49 +0000 From: Adrian Oltean To: Eli Zaretskii CC: "luis.machado@arm.com" , "gdb@sourceware.org" Subject: RE: [EXT] Re: Slow "symbol-file" when using GDB 12.1 on Windows hosts Thread-Topic: [EXT] Re: Slow "symbol-file" when using GDB 12.1 on Windows hosts Thread-Index: AQHZWyebO2VAG1DjRkCUH+JEd8Alca8Dpt9fgAAAeRCAAAM4MA== Date: Mon, 20 Mar 2023 13:33:49 +0000 Message-ID: References: <070fbd13-e03c-a4e8-1372-3f7813b7db92@arm.com> <83sfe3ciwy.fsf@gnu.org> <0df63795-2424-52e0-da93-92ab75a6d50f@arm.com> <83bkkn8sre.fsf@gnu.org> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: AM6PR04MB4630:EE_|AS8PR04MB7733:EE_ x-ms-office365-filtering-correlation-id: b8f9efe6-484b-443c-80d7-08db2947bcfb x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: yKMr1+y5ddRZW4uyBA57dVTgIEKfDTeq/r0RLF21cEdnxBf+20QT24L68PdZ5lBrc1ZR/Gxyq9kZPtkASOMrPn3zxZc64BtLHBilJG+84PTmggd3cDPqevbHMI2wkm27wpsnNjKcg38SZ1N7DuT7IxMYXsuhuhiKodHAz2DDTvze0yFwdyFbQDcnDXxeG4tJSt09ioxEsECoTInoeeXQtxoWdl8H+ePQlWRfdFlZNz1Tmej4YRc5EpAgD2MPXR+cOz37jTCDW4QrNqm6dXU753LFHHvXbgJwivqTLOZ2foqndGyKzd7IQqeLA4oh0a0cQoYf1OxzY6YheaYs5HiflkUln/3ELdmis7EUeOycyp5iNnQntiWQMe7uUORyo7lZDpgA0W0Hna35RfigOmhrFaoGjrTRr9vrJxg1zvEXtR7ZCjUbDScGAzrjyU5ZcQ4ypYvSxvAryqiA2C0t/HCrncXCSyD+MVK0cHmcJCz/Xqf11xa0AGy4AQuMCXozmwwwyc+j8WkBBqtgnvYzX929gwxfHxzbEwgsOAwReZjhFxdcb0QDbZeJrqZqxj4fpHBNxYFgxOTOu+7YeMcLDeNKDcN5KRV+C2alOkTGPmUB412/VkCo5v1nhEQ5yeDQOQX4ZsXBrqgzvom2acLynzuACBO/B4uGYMsX/1ei+aJe3PK9p4dU/QmsfumndB3l70U6/YgYTBc8QlwDnGmLEhogag== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB4630.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(4636009)(346002)(39860400002)(376002)(136003)(396003)(366004)(451199018)(2940100002)(7696005)(71200400001)(9686003)(4326008)(83380400001)(478600001)(316002)(76116006)(64756008)(66476007)(66446008)(66946007)(66556008)(6916009)(8676002)(53546011)(54906003)(26005)(186003)(6506007)(66899018)(8936002)(44832011)(52536014)(41300700001)(5660300002)(122000001)(38100700002)(2906002)(55016003)(38070700005)(86362001)(33656002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?T4bNYefyIJGjqLIds64meVyYLVGBeiIiws44EVYt/wPchZ4oI2FC/eiZ+Gzb?= =?us-ascii?Q?PwEUobwLNPhkzn3ZYX6BH5YKkhJ3JIR9CR/pf8JJalwV+v4txD4YNcywVTDj?= =?us-ascii?Q?WPf0pqlT1bwdv01eyDmPKI317fE8QUoDzLU3y2vA6cJFgFn5IIyIbOfqlA7P?= =?us-ascii?Q?YPQ4JgyBdNEaIJSUjKJu7+RKNV9sBlUvOS1IGkWSvykn+U/YEBeygOSZT+fe?= =?us-ascii?Q?FvbQLdSCQOLAOLr8A1Z8kfW4kFhPIEuwq3qPqB/eguw1qNTGgbZcpY80K8Av?= =?us-ascii?Q?rtZL0XJygCB9SgyR7bduw6ny1l6UaENAZQzhLk8Jc4yLOjWL73gL+KvIAqEt?= =?us-ascii?Q?CS9Pan2dWD3crn7hAutd6VSplY6XsCNnctgkzTZLbjI7q/apGK11k07hXLPB?= =?us-ascii?Q?xwkNzARSRLt2Hcp6y+uWDZWuih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4q/u1K99ZfJQJp/k0asHatpyVlMN2ZOfU9KF9An+UMh+oZktrcW?= =?us-ascii?Q?tNUkb1snu0YHdl+F+ZcmCbx8puoDagoOv/5n2EbDrHl1AgSETfyAjHqx1dWj?= =?us-ascii?Q?FXkYt9iWU2sWtJxs+zBrLivodb5VJM/7VZYOPMAM+V7eW6dtJhewcdF1kDBc?= =?us-ascii?Q?e3A2gl4XxBSOjTwH2oag9Nm/WctJKPsPeHwh13QAEnoqPrX/FuZpBNgkoNcD?= =?us-ascii?Q?QqScb0RzuRTclXgbySfNCDxkvE0iez3IKbXq8MD5?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB4630.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b8f9efe6-484b-443c-80d7-08db2947bcfb X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Mar 2023 13:33:49.2448 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: kL5Tx6EMCEAYPF668RqWhtplLLyf08ZeSwnMPpGH1fvT72/uStwv3I3bpcx8KqhT4rBiMGc9PhptY7j2Vd9QUQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB7733 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: > -----Original Message----- > From: Adrian Oltean > Sent: Monday, March 20, 2023 3:28 PM > To: Eli Zaretskii > Cc: luis.machado@arm.com; gdb@sourceware.org > Subject: RE: [EXT] Re: Slow "symbol-file" when using GDB 12.1 on Windows > hosts >=20 >=20 >=20 > > -----Original Message----- > > From: Eli Zaretskii > > Sent: Monday, March 20, 2023 3:19 PM > > To: Adrian Oltean > > Cc: luis.machado@arm.com; gdb@sourceware.org > > Subject: [EXT] Re: Slow "symbol-file" when using GDB 12.1 on Windows > > hosts > > > > Caution: EXT Email > > > > > From: Adrian Oltean > > > CC: "gdb@sourceware.org" > > > Date: Mon, 20 Mar 2023 12:29:25 +0000 > > > > > > Eli mentioned that the timestamps offered by Process Monitor are not > > > relevant. However, I consider that the events and their timestamps > > > are relevant when compared to the ones generated by GDB 10. There's > > > no attempt to access "C:\Windows\CSC" when using GDB 10. If that > > > file access wouldn't be attempted by GDB 12, I'm pretty sure there > > > wouldn't be > > any slowdown. > > > > Any idea why GDB is accessing all those directories? I cannot know > > what kind of directory structure you have there, and so cannot reason > > about the directories being accessed by GDB or whether it should > > access some directory. What are those directories, and why > > symbol-file causes GDB to access them? >=20 > I was thinking that GDB starts inspecting some known locations (e.g. loca= tion > of the elf). > I don't think GDB is so unpredictable when it comes to what files/directo= ries > needs to access when "symbol-file" is issued... Or is it? >=20 > > > By the way, there's no spike in CPU/memory usage when invoking > > > "symbol-file" but, on my PC, "C:\Windows\CSC" is completely > > > inaccessible with my user account. > > > > That is probably the real culprit: some directory that needs some > > special credentials, or which causes GDB to call some network-related > > resources which are inaccessible or something. So understanding why > > GDB tries to access that directory and/or making its access faster, mig= ht fix > your problem. >=20 > Indeed... Why is GDB trying to access "client-side caching" folder from > Windows? I'm pretty sure this is not specific to my machine. >=20 > > > Maybe you guys can also answer (some of) the questions from my > > > initial > > email? > > > > Which ones? >=20 > You, Luis or anyone else... :-) Sorry... I misunderstood your question... (facepalm) 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/fol= ders? >=20 > Thank you, > Adrian