Bug 14479 - no way to request gdb to load separate debuginfo
Summary: no way to request gdb to load separate debuginfo
Status: NEW
Alias: None
Product: gdb
Classification: Unclassified
Component: symtab (show other bugs)
Version: unknown
: P2 enhancement
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-16 15:58 UTC by Tom Tromey
Modified: 2013-06-07 16:54 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Tromey 2012-08-16 15:58:02 UTC
I was debugging a program.
gdb suggested I install some separate debuginfo packages
(I think this is a Fedora extension -- but it doesn't matter
since the problem here is generic).
I wanted one of these, so in a separate window I ran debuginfo-install.

At this point I wanted to tell gdb to try again to load the
separate debuginfo.  However, there's no convenient way to do this.
"sharedlibrary" doesn't work.
"add-symbol-file" might work but it is a pain.

I think the simplest would be to make "sharedlibrary" do it.
Comment 1 Pedro Alves 2012-08-22 15:08:33 UTC
For completeness, "sharedlibrary" might not, but I guess "nosharedlibrary+sharedlibrary" would work.
Comment 2 Tom Tromey 2012-08-22 16:05:19 UTC
(In reply to comment #1)
> For completeness, "sharedlibrary" might not, but I guess
> "nosharedlibrary+sharedlibrary" would work.

Yeah, I thought of that (much) later.
It seems obscure though.
Comment 3 Tom Tromey 2013-06-07 16:54:53 UTC
I happened to try this today.
The combo "nosharedlibrary" + "sharedlibrary .*" did work.
However, it made gdb forget my selected frame.
Perhaps a more targeted command could try harder to preserve
the selected frame.