public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/25701] New: Means to limit considered debug info
@ 2020-03-19 16:07 vries at gcc dot gnu.org
2020-03-19 16:50 ` [Bug gdb/25701] " schwab@linux-m68k.org
2020-03-20 8:53 ` vries at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: vries at gcc dot gnu.org @ 2020-03-19 16:07 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=25701
Bug ID: 25701
Summary: Means to limit considered debug info
Product: gdb
Version: HEAD
Status: NEW
Severity: enhancement
Priority: P2
Component: gdb
Assignee: unassigned at sourceware dot org
Reporter: vries at gcc dot gnu.org
Target Milestone: ---
Say I want to debug an executable from a package on my distro, which uses
shared libraries which come from the same or other packages.
I can control what debug information gdb has available by installing and
de-installing corresponding debug packages.
I can also do "set debug-file-directory" which will disable all debug packages
in one go, without having to de-install any package.
It would be convenient to be able to limit the scope of considered debug-info
somehow, without having to install or de-install debug info, and in a more
precise way than disabling all debug packages.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug gdb/25701] Means to limit considered debug info
2020-03-19 16:07 [Bug gdb/25701] New: Means to limit considered debug info vries at gcc dot gnu.org
@ 2020-03-19 16:50 ` schwab@linux-m68k.org
2020-03-20 8:53 ` vries at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: schwab@linux-m68k.org @ 2020-03-19 16:50 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=25701
--- Comment #1 from Andreas Schwab <schwab@linux-m68k.org> ---
You can set auto-solib-add off, then use sharedlibrary to selectively load
symbols.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug gdb/25701] Means to limit considered debug info
2020-03-19 16:07 [Bug gdb/25701] New: Means to limit considered debug info vries at gcc dot gnu.org
2020-03-19 16:50 ` [Bug gdb/25701] " schwab@linux-m68k.org
@ 2020-03-20 8:53 ` vries at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: vries at gcc dot gnu.org @ 2020-03-20 8:53 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=25701
Tom de Vries <vries at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |WORKSFORME
--- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> ---
(In reply to Andreas Schwab from comment #1)
> You can set auto-solib-add off, then use sharedlibrary to selectively load
> symbols.
Ah, yes, that sounds close enough to what I was looking for, thanks for the
pointer.
I was also thinking about being able to do the same for executables, and it
seems that using exec-file instead of file is the equivalent there.
Playing around with the two options, I noticed that indeed no info is read at
all, not even the minimal symbol info.
I was thinking more about avoiding parsing dwarf (to speed up debugging) than
avoiding minimal symbols (which are processed relatively quickly), so perhaps
we can make a mode that we at least read minimal symbols, such that f.i. I can
still set a breakpoint in main.
But for now, that's not my immediate concern, so I'll mark this one as
resolved-worksforme.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-03-20 8:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-19 16:07 [Bug gdb/25701] New: Means to limit considered debug info vries at gcc dot gnu.org
2020-03-19 16:50 ` [Bug gdb/25701] " schwab@linux-m68k.org
2020-03-20 8:53 ` vries at gcc dot gnu.org
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).