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 0508A3858D32 for ; Mon, 20 Mar 2023 13:19:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0508A3858D32 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 1peFQ6-0003lN-4c; Mon, 20 Mar 2023 09:19:26 -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=rIV3ANJKBEXzLYUpQdTrKQZFFbOkW/LWo77OGbtKpJo=; b=T+Np2MActQHR UrxjtZvMHhvSIcPE6HeSRFwPQDYtEBCqkNwl2dxCwt3fGbk6tl6Fgey98u09+tebTKrrIhM+1Llqy yqQHk0YP/8mpABbN+k64+LnaQJ8IoWB4SrVejZX7pwIA+DzMMnt/QJyrxgSSox08TjHX15TuSuUb3 cXB4n7UU4JBKhsncGwqI7Wv4RzKfsNUTF7fEUl8AoleNNZk2digzOvSgPnHW7WTghZ3RuPzXLeqMy 8VASPEhKZzctAFIzxEK3UTjwXMiYK6HYRhnrRgwml6rQS+vWWVqRfp6NMkUBZghCgqkShAnZxM/K4 V5P9vfdU4rmD+tqSQNmLOQ==; 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 1peFQ5-00036T-Kn; Mon, 20 Mar 2023 09:19:25 -0400 Date: Mon, 20 Mar 2023 15:19:33 +0200 Message-Id: <83bkkn8sre.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 12:29:25 +0000) Subject: 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> X-Spam-Status: No, score=1.7 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: "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? > 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, might fix your problem. > Maybe you guys can also answer (some of) the questions from my initial email? Which ones?