From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on20610.outbound.protection.outlook.com [IPv6:2a01:111:f400:7d00::610]) by sourceware.org (Postfix) with ESMTPS id D97143858D1E for ; Tue, 4 Apr 2023 13:02:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D97143858D1E 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=GYjFSyxWiA/2k9e4dJudMDVlVmItuyxhkxl41hlUj7g=; b=4ci+4LBm+vg9NJspk0f9ZHCiIFBSWFp3FMPjlPOMItXPH01T+2emYlwNdNby0gGvIMaNVzDIpCaA7o8VfehfxEjcGRUXDfnIWDVajqQXINUHMH+T675ylwi4Wgg1z9WtjK3zVbO3INFD1cC7RQEBvPtydh7z9k8/2O89ng+3l2c= Received: from DB6PR0402CA0010.eurprd04.prod.outlook.com (2603:10a6:4:91::20) by PA4PR08MB7388.eurprd08.prod.outlook.com (2603:10a6:102:2a3::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6254.33; Tue, 4 Apr 2023 13:02:21 +0000 Received: from DBAEUR03FT041.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:91:cafe::50) by DB6PR0402CA0010.outlook.office365.com (2603:10a6:4:91::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.43 via Frontend Transport; Tue, 4 Apr 2023 13:02:21 +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 DBAEUR03FT041.mail.protection.outlook.com (100.127.142.233) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6222.22 via Frontend Transport; Tue, 4 Apr 2023 13:02:21 +0000 Received: ("Tessian outbound 945aec65ec65:v136"); Tue, 04 Apr 2023 13:02:21 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 6a2bfdcbeea8e988 X-CR-MTA-TID: 64aa7808 Received: from a7867a8e5b31.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id AC99D75C-0097-4780-A7F2-D7D8A3580FDB.1; Tue, 04 Apr 2023 13:02:14 +0000 Received: from EUR04-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id a7867a8e5b31.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 04 Apr 2023 13:02:14 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IhIJ9vKMR9b+Xmtqt4irJtLUyfVQCWxwek9Ri+1/Kn9SJl5N/nfZ+ht+b7FrCCrmKG+YZzu+MDzMHISBe+zsXAgiZ3rGu8FZV2MVXFSJX7vPUDUsxr3QYbGOwfMWMFPzdhYShbDCdemPEP7uFhMRN0rmaeX5Lq3EVgL+A5iv/w4zZJtgn4TtH25xdmwRd/yb0uEFNp5V3+Pqq0k6Du92C3yqoFhkihK5QaSNru16/ib10cvjjYCFsanHYHGCkVOIzdJ/csvCBf5Q9aquLNLDfFjMBRYzprkxOsPdy7aPWbJzt5wHmLgJUGiD3V8T9yVjcsoP8Cb90dMpQ6wDgTcqUg== 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=GYjFSyxWiA/2k9e4dJudMDVlVmItuyxhkxl41hlUj7g=; b=Dg7QjXonHA2dTOPAR9T2l6lb+/4V8EVue8tHM1v0j1moisy+YcGW7PS7ppya4G3Ce+3xTS+ffep3iOh4p217ZXq3E4z3lGje7DMl6d+uvJItGpbB0VB5pjmuVmAhJX2Q181hCBD8n8HPxiSagchbMHTFHtTdlHQPU63YTSmAkY84n1UWDkvqTNsCENYCR/LViPq4HCG/Mh4oj18YDCI2zdiwnFrFJVULbBUl7iAbxs18YVhgjX8PJgyX+qVZRjcZN8CnH8T5PoznborxBRrmyO0yTuGWLFz+eSB+/LnM/7qdMEXwaISNPR438tv4WbACHI8SIzpbK668CL1rZEOHsw== 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=GYjFSyxWiA/2k9e4dJudMDVlVmItuyxhkxl41hlUj7g=; b=4ci+4LBm+vg9NJspk0f9ZHCiIFBSWFp3FMPjlPOMItXPH01T+2emYlwNdNby0gGvIMaNVzDIpCaA7o8VfehfxEjcGRUXDfnIWDVajqQXINUHMH+T675ylwi4Wgg1z9WtjK3zVbO3INFD1cC7RQEBvPtydh7z9k8/2O89ng+3l2c= 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 GVXPR08MB7751.eurprd08.prod.outlook.com (2603:10a6:150:7::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6254.33; Tue, 4 Apr 2023 13:02:05 +0000 Received: from VI1PR08MB3919.eurprd08.prod.outlook.com ([fe80::7386:6dd6:e6ba:dd94]) by VI1PR08MB3919.eurprd08.prod.outlook.com ([fe80::7386:6dd6:e6ba:dd94%4]) with mapi id 15.20.6254.029; Tue, 4 Apr 2023 13:02:04 +0000 Message-ID: Date: Tue, 4 Apr 2023 14:02:02 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [EXT] Re: Slow "symbol-file" when using GDB 12.1 on Windows hosts Content-Language: en-US To: Adrian Oltean , Eli Zaretskii 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> <895b1df2-5559-d1ca-7369-3b9089cccbc4@arm.com> From: Luis Machado In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P265CA0120.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:2c6::7) To VI1PR08MB3919.eurprd08.prod.outlook.com (2603:10a6:803:c4::31) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: VI1PR08MB3919:EE_|GVXPR08MB7751:EE_|DBAEUR03FT041:EE_|PA4PR08MB7388:EE_ X-MS-Office365-Filtering-Correlation-Id: 15d23192-f054-4e09-e8b0-08db350cd3fb 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: f5+s3+aCQ5D06NjeBapsKmFikxRdxdwxHvqwEsiKwAhy7NwEqdtQbwv/FV7/xjHjXVq/ALnM7Hr6Na/N6/csjoOhFsy/gH5ek2bMHp4SeoaGqxYR8KDhXLpEYVSaCShtdjOufIvIf63uF4QWUKXy0u3m4xMiGQyYjzHje9AF0rFRt3lMXhs5bpugEpuoeRww0GyECzgAZ3FTv7SWGGPXMUAgE5jmCAKNbGeCI5gdWmXg0nd6yZZ/gO5ufkmVwekca9EcYOxULbM3eWkryNrz8z7lDOPxqApfcAGB85RDWWqfOmTX9fnr/paMnzhihPpXYwG7GPMydcxdGNYe3h19uuFvwNBmHkSF6/IqkaOLQpSfu+kiJuG9qqXPMY+QbI7wFlqiCY9OeYg90ZOvONPMJ2i9uGP4EbVKFAqU+Ep0nlFtURZ6hC2vfoohuprXTiEOpo+FZlwUuu8/joUBX1o/B629C9SqV5bP/RXolxyuH2g8M9C8p0EMaGhFHCjvLpDEbl/ezURb24fvkwjQiplVRUGaZzNCUra0uC1KgC27hLW8s+O28bDZ2FYgiKGGAbBPNYNu/y/J3OxSbcn3OSyaknmndLvHFQSQY8MZ8VanmeMO6EX/nVktqhvJFbLZFXI1BJLaU6G4ykN8pCKan72/HQ== 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:(13230028)(4636009)(39860400002)(346002)(136003)(376002)(396003)(366004)(451199021)(2906002)(8936002)(38100700002)(41300700001)(44832011)(5660300002)(36756003)(31696002)(478600001)(110136005)(2616005)(316002)(53546011)(6486002)(26005)(6512007)(6506007)(8676002)(86362001)(83380400001)(4326008)(66556008)(66946007)(31686004)(66476007)(186003)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR08MB7751 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: DBAEUR03FT041.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 3d936ea4-7838-4cfb-4744-08db350cc97a X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 988tFo8PFVmuKAnL0dHY85jAlfN5dD2rcT8L4jt2fVbpyOAWvloN3X5PKNg7VKlWfBcaYV2Fx1pAlpEMx+uAZRLZMckKIyG6dB5SvjcO77w6/iH5jf2gIl2KBkue7DriMOBjtGXwelRCEmHGVdy7FsQBktJ49d20Lur08NsKW1awYKs8ly69KRfWq7Pk3LiDaCs5hM7Vwbx5hMn4x+nsBT3ueO8XIqqwG1IfhMsDprJvjpfjGEq2E6jfOb6XOPmI+DqtKe6jzmp70nf0vIxqAN8T43Lw7hQomVq8LRcnJ9LBIYOZR0mIM7GLfgRtClebq299rX0AB7fMFk8XV2A2hxXBmVnJlaKZK4jhuRpTI1nLenS3v5+lsxILRIj++GeyBsbgXVkmWJXwPd6ddQowuqSEcieL6wpx46kCsDguY2wPxoL27TH4cPd+EUBF+42wRFzKz6Y0LM2+zJ2amtYaeyu4Dhr+u4KqSUM/4Cg5dFs16ZQvkO3fZzw63jyha0lgr4uD5SnZQjySloIWGpg7fJDCfl+riXWwpfJUkoUQQKj0Po0PFIsuk9ADu+XrGWjv47tOT2fvfmeYhToxW1GgF/ZPf25K9jCXlcPk5TtHBp0adxo2QpM3LamDp6lMUMlJ/4uonhoTR6lJgerACLjiUMXSvlZTRwwSxp+IuaCAILZJ3EF2aKoMmqKosMBU10ezVBK7nJfXXJ9p4B8emR5etk6DkD9KxlKG5jY2td0jxLE= 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:(13230028)(4636009)(346002)(136003)(396003)(39860400002)(376002)(451199021)(40470700004)(46966006)(36840700001)(5660300002)(86362001)(44832011)(336012)(83380400001)(47076005)(31696002)(81166007)(6506007)(26005)(82310400005)(186003)(53546011)(6512007)(356005)(82740400003)(36860700001)(36756003)(2616005)(8936002)(41300700001)(8676002)(478600001)(70206006)(40480700001)(6486002)(110136005)(70586007)(316002)(40460700003)(4326008)(31686004)(2906002)(43740500002);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Apr 2023 13:02:21.5282 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 15d23192-f054-4e09-e8b0-08db350cd3fb 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: DBAEUR03FT041.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR08MB7388 X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,FORGED_SPF_HELO,KAM_DMARC_NONE,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_NONE,TXREP,UNPARSEABLE_RELAY 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: On 4/3/23 17:48, Adrian Oltean wrote: >> -----Original Message----- >> From: Luis Machado >> Sent: Wednesday, March 22, 2023 4:31 PM >> To: Eli Zaretskii ; Adrian Oltean >> Cc: gdb@sourceware.org >> Subject: Re: [EXT] Re: Slow "symbol-file" when using GDB 12.1 on Windows >> hosts >> >> >> 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. > > Hi guys, > > I managed to identify what's causing the described behavior. The CSC folder is actually > accessed indirectly because of the fact that a network share is attempted to be > accessed by GDB on Windows - see paths like " \\lib\debug" in my previous emails. > > The fact that GDB is trying to access (most likely invalid in almost all setups) network > shares like " \\lib\debug" on Windows hosts, I'm pretty sure the slowdown isn't > happening only for me (actually, all PCs from our organization). Note that this path > is the one specific to latest GDB 12 build delivered by ARM: > (gdb) show debug-file-directory > The directory where separate debug symbols are searched for is "\\lib\debug". > > For GDB 10 I see: > (gdb) show debug-file-directory > The directory where separate debug symbols are searched for is "c:\mnt\workspace\workspace\gcc-10-pipeline\jenkins-gcc-10-pipeline-338_20211018_1634516203\install-mingw\lib\debug". > > As far as I can tell, ARM changed something in their build environment causing this > unwanted effect. With this findings, I decided to workaround the problem by > setting debug-file-directory to an empty value once GDB starts-up. The default debug-file-directory gets set during configure/build. I don't think the previous path is correct, as it is obviously a path internal to the build machine. GDB has relocatable paths that it adjusts based on where GDB is running on the target system. Those settings will be shown by the command Pedro suggested. For instance, one of the entries: --with-separate-debug-dir=/usr/lib/debug (relocatable) With that said, \\lib\debug seems a a bit odd, and there might be something off there unless your filesystem is NFS-mounted. > > Thanks, > Adrian > > >