This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: gdb and Dll
On Wed, Nov 27, 2002 at 07:57:16PM -0500, Andrew Cagney wrote:
>
>>There is one long-standing "gotcha" in debugging dlls however. Currently
>>you can only set breakpoints on line numbers not on symbol names if the
>>dll is not loaded. That is you can't do:
>>
>> dll-symbols foo.dll
>> bp foo
>>
>>You have to, instead do:
>>
>> dll-symbols foo.dll
>> list foo
>> bp <first line of foo>
>
>Weird. Create a bug report.
There already is one, I believe, complete with patch, which I'm testing
now. I'd give you a URL but my browser is sick right now. I just did a
search for a topic with dll in it in gnats and found it. This was after
Joel B. suggested that a number of PRs had been filed for dll handling.
FWIW, I mentioned this behavior to a couple of gdb engineers two or
three years ago and I was almost given to believe that it was expected
behavior.
cgf