Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* How to set a breakpoint at a C++ class function?
@ 2009-03-17  5:35 Meryl Silverburgh
  2009-03-17  6:34 ` Paul Pluzhnikov
  0 siblings, 1 reply; 2+ messages in thread
From: Meryl Silverburgh @ 2009-03-17  5:35 UTC (permalink / raw)
  To: gdb

HI,

I am tyring to set a break point at a c++ class function.

at a gdb prompt, I did:
(gdb) break RenderBlock::calcBlockPrefWidths
Can't find member of namespace, class, struct, or union named
"RenderBlock::calcBlockPrefWidths"
Hint: try 'RenderBlock::calcBlockPrefWidths<TAB> or
'RenderBlock::calcBlockPrefWidths<ESC-?>


It did not work.

But when I do
(gdb_ break RenderBlock.cpp:4148 (using line number), it works.

(gdb) break RenderBlock.cpp:4148
Breakpoint 1 at 0xaa1fdfd8: file
webkit/WebCore/rendering/RenderBlock.cpp, line 4148.

Can you please tell me why?

Thank you.


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

end of thread, other threads:[~2009-03-17  6:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-17  5:35 How to set a breakpoint at a C++ class function? Meryl Silverburgh
2009-03-17  6:34 ` Paul Pluzhnikov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox