From: Pedro Alves <pedro@palves.net>
To: Adrian Oltean <adrian.oltean@nxp.com>,
Luis Machado <luis.machado@arm.com>, Eli Zaretskii <eliz@gnu.org>
Cc: "gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: [EXT] Re: Slow "symbol-file" when using GDB 12.1 on Windows hosts
Date: Tue, 4 Apr 2023 13:53:52 +0100 [thread overview]
Message-ID: <f6aa433b-48a6-6d22-0431-6083df94437f@palves.net> (raw)
In-Reply-To: <AM6PR04MB46301289C9A55172E1FE2EFFF1929@AM6PR04MB4630.eurprd04.prod.outlook.com>
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.
next prev parent reply other threads:[~2023-04-04 12:53 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-15 15:50 Adrian Oltean
2023-03-17 17:29 ` Luis Machado
2023-03-17 18:49 ` Eli Zaretskii
2023-03-17 19:02 ` Luis Machado
2023-03-20 12:29 ` Adrian Oltean
2023-03-20 13:19 ` Eli Zaretskii
2023-03-20 13:27 ` [EXT] " Adrian Oltean
2023-03-20 13:33 ` Adrian Oltean
2023-03-20 13:58 ` Eli Zaretskii
2023-03-22 14:30 ` Luis Machado
2023-04-03 16:48 ` Adrian Oltean
2023-04-04 12:53 ` Pedro Alves [this message]
2023-04-04 13:02 ` Luis Machado
2023-04-04 14:07 ` Adrian Oltean
2023-04-04 14:15 ` Luis Machado
2023-04-04 14:17 ` Pedro Alves
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f6aa433b-48a6-6d22-0431-6083df94437f@palves.net \
--to=pedro@palves.net \
--cc=adrian.oltean@nxp.com \
--cc=eliz@gnu.org \
--cc=gdb@sourceware.org \
--cc=luis.machado@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).