This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug breakpoints/9952] Feature Request: Cannot set pending breakpoints in DSOs (dynamic libraries) that are yet to be loaded.
- From: "dyek at real dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 5 Apr 2009 06:59:08 -0000
- Subject: [Bug breakpoints/9952] Feature Request: Cannot set pending breakpoints in DSOs (dynamic libraries) that are yet to be loaded.
- References: <20090313220305.9952.dyek@real.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From dyek at real dot com 2009-04-05 06:59 -------
> GDB already supports pending breakpoints which are resolved when DSOs are
loaded.
You are right that it works, at least for my simpler test case.
Now I wonder why it didn't work at all for me when I tried to set the
NP_Initialize() breakpoint when firefox loads plugins. I have more to
investigate before I tell what is going on.
(Sorry, I can't do it anytime soon, but eventually spend time to figure out more
and update this with any useful information.)
> The only missing feature in your request is to be able to specify the
DSO name explicitly. Is my understanding correct here?
It would be nice to be able to specify a specific DSO name, but that is just a
matter of convenience.
I thought I couldn't set pending breakpoints for DSO files that are yet to be
loaded for some reason.
> In many cases, the DSO name will not be something neat like np.so, but really
np.so.0.2.1.
Shared libraries have SONAMEs in ELF header and file names with version numbers.
Plugins, though, usually have no version number in their file names.
> You realise your feature wouldn't work in that case, right?
No, I don't understand this comment.
Why something like this can't work?
b np.so.0.2.1:NP_Initialize
Thanks.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=9952
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.