From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) by sourceware.org (Postfix) with ESMTPS id B52673858D1E for ; Tue, 4 Apr 2023 12:53:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B52673858D1E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=palves.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f41.google.com with SMTP id n9-20020a05600c4f8900b003f05f617f3cso858294wmq.2 for ; Tue, 04 Apr 2023 05:53:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680612834; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=n5JXalt2R8wxzvaJdqUv/OrGcpLEW1TfhxZFrDCOT40=; b=SX0qPDpaiKfgWPQUxHHzuzz437v7+sL6pzTp7/s9yt6yeZnNUh0FDE0BPKBVhCCadQ C+d9AFAMC6u3mCoNSufpUuFHXvfqxCRq3hX5lPqWnRyaT6oG6cuaKkk3KG8cSgudVG9U LzqHZ7Qx5v4PXpelgFK9h4dF0PMv2TyqL6vCHI08UX9OEkXDCAg93nTMbboI08EoCHtY uzA2FoTQuOvLM1sbnbVrGV1T/0Pit8Qt5lHtpE5FVMnQ6me49qeLjjbEONqYc/PXCvFb J+X8CWk8Klg4a/5yVtQXZ/E8u8whOI+foNZEiGDnNuBEQY37i04ChzIsu2gJfE0MLnwH +MGA== X-Gm-Message-State: AAQBX9dYsqhAQn6e6eirZgHYcXN1JidRp24riIYXpQZ/Bemx1PjIXrJO K+k+sE/cxNRIpT87yBea8q+saBeHFwkrKQ== X-Google-Smtp-Source: AKy350a1RvPh/s9ag9uPUT2QbsD8UKV8iiwyttuWFHHyQx0EuYbvibUhMVdQz64JDL+rquiGMTehxQ== X-Received: by 2002:a1c:f70d:0:b0:3ee:814b:9c39 with SMTP id v13-20020a1cf70d000000b003ee814b9c39mr2297294wmh.18.1680612833971; Tue, 04 Apr 2023 05:53:53 -0700 (PDT) Received: from ?IPv6:2001:8a0:f93c:5900::1fe? ([2001:8a0:f93c:5900::1fe]) by smtp.gmail.com with ESMTPSA id j1-20020a05600c1c0100b003f0548d00f1sm2167539wms.1.2023.04.04.05.53.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 Apr 2023 05:53:53 -0700 (PDT) Subject: Re: [EXT] Re: Slow "symbol-file" when using GDB 12.1 on Windows hosts To: Adrian Oltean , Luis Machado , 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: Pedro Alves Message-ID: Date: Tue, 4 Apr 2023 13:53:52 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,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: On 2023-04-03 5:48 p.m., Adrian Oltean via Gdb wrote: > 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. "(gdb) show configuration" may help determine whether GDB was configured with such a bad path. Could be GDB is making up that path somehow, by concating "\" with "\lib\debug", for example. If so, that might be fixed in GDB 13, as path joining was refactored/tweaked in that release.