From: Luis Machado <luis.machado@arm.com>
To: Eli Zaretskii <eliz@gnu.org>, Adrian Oltean <adrian.oltean@nxp.com>
Cc: gdb@sourceware.org
Subject: Re: [EXT] Re: Slow "symbol-file" when using GDB 12.1 on Windows hosts
Date: Wed, 22 Mar 2023 14:30:31 +0000 [thread overview]
Message-ID: <895b1df2-5559-d1ca-7369-3b9089cccbc4@arm.com> (raw)
In-Reply-To: <838rfr8qym.fsf@gnu.org>
On 3/20/23 13:58, Eli Zaretskii wrote:
>> From: Adrian Oltean <adrian.oltean@nxp.com>
>> CC: "luis.machado@arm.com" <luis.machado@arm.com>, "gdb@sourceware.org"
>> <gdb@sourceware.org>
>> Date: Mon, 20 Mar 2023 13:33:49 +0000
>>
>> 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/folders?
>
> Sorry, I don't know the answers. Maybe Luis or someone else does.
>
> In general, AFAIK GDB searches directories recorded in the program's
> debug info, and also some source directories. See the node "Source
> Path" in the GDB manual. Also try "show solib-search-path". The
> "show libthread-db-search-path" command could also be relevant; see
> "Threads" in the manual.
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.
next prev parent reply other threads:[~2023-03-22 14:30 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 [this message]
2023-04-03 16:48 ` Adrian Oltean
2023-04-04 12:53 ` Pedro Alves
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=895b1df2-5559-d1ca-7369-3b9089cccbc4@arm.com \
--to=luis.machado@arm.com \
--cc=adrian.oltean@nxp.com \
--cc=eliz@gnu.org \
--cc=gdb@sourceware.org \
/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).