public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* gdb 6.7.50.20071127 - few problems
@ 2007-12-12 11:26 Bogdan Slusarczyk
  2007-12-14  0:53 ` Pedro Alves
  0 siblings, 1 reply; 3+ messages in thread
From: Bogdan Slusarczyk @ 2007-12-12 11:26 UTC (permalink / raw)
  To: gdb

Hi,
I've tried to use gdb6.7.50.20071127 (mingw). I noticed few problems (in 
comparison with gdb6.7.1).
1) after attaching to process 'info shared' returns: "No shared 
libraries loaded at this time" (gdb6.7.1 returns few libraries)
2) debugged process has loaded shared library using LoadLibrary, and I 
cannot set breakpoint in this library. I get: "No symbol table is 
loaded. Use the "file" command" (using gdb6.7.1 I can set breakpoint 
without problem).
Why I have to use 'file' command (and 'symbol-file' too)? It works with 
mentioned commands but I'm wondering it's intended behaviour or bug?

Regards
Bogdan

P.S. 6.7.50.20071211 works in the same way.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: gdb 6.7.50.20071127 - few problems
  2007-12-12 11:26 gdb 6.7.50.20071127 - few problems Bogdan Slusarczyk
@ 2007-12-14  0:53 ` Pedro Alves
  2007-12-15 15:38   ` Bogdan Slusarczyk
  0 siblings, 1 reply; 3+ messages in thread
From: Pedro Alves @ 2007-12-14  0:53 UTC (permalink / raw)
  To: Bogdan Slusarczyk; +Cc: gdb

Bogdan Slusarczyk wrote:
> Hi,
> I've tried to use gdb6.7.50.20071127 (mingw). I noticed few problems (in 
> comparison with gdb6.7.1).

> 1) after attaching to process 'info shared' returns: "No shared 
> libraries loaded at this time" (gdb6.7.1 returns few libraries)

I can reproduce this when attaching without specifying the executable
'gdb --pid $pid', and can't if I do specify it.  I take it that's
what you mean.

> 2) debugged process has loaded shared library using LoadLibrary, and I 
> cannot set breakpoint in this library. I get: "No symbol table is 
> loaded. Use the "file" command" (using gdb6.7.1 I can set breakpoint 
> without problem).

I haven't tried to reproduce this, but from the description, it
either,
   looks like the same problem -- GDB should have at least
minimal symbols from the loaded dlls (extracted from the
dll's export table) ; if it didn't find the dlls, and you didn't
pass a symbol file on the command line, there will be no symbol
table loaded
   or looks like related to PR2368 and/or PR2369.

> Why I have to use 'file' command (and 'symbol-file' too)? It works with 
> mentioned commands but I'm wondering it's intended behaviour or bug?
> 

Bug.

Could you open a bug report for 1) ?

(Also, when reporting win32 bugs, it would be nice to also
test it on a cygwin build -- nice, but not required.)

-- 
Pedro Alves

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: gdb 6.7.50.20071127 - few problems
  2007-12-14  0:53 ` Pedro Alves
@ 2007-12-15 15:38   ` Bogdan Slusarczyk
  0 siblings, 0 replies; 3+ messages in thread
From: Bogdan Slusarczyk @ 2007-12-15 15:38 UTC (permalink / raw)
  To: Pedro Alves; +Cc: gdb

> Could you open a bug report for 1) ?
> 
Done, see bug 2386 (http://sourceware.org/cgi-bin/gnatsweb.pl)

Best regards,
Bogdan

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-12-15 15:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-12 11:26 gdb 6.7.50.20071127 - few problems Bogdan Slusarczyk
2007-12-14  0:53 ` Pedro Alves
2007-12-15 15:38   ` Bogdan Slusarczyk

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).