From: Meryl Silverburgh <silverburgh.meryl@gmail.com>
To: gdb@sourceware.org
Subject: How to set a breakpoint at a C++ class function?
Date: Tue, 17 Mar 2009 05:35:00 -0000 [thread overview]
Message-ID: <701fce30903162235g28f1811l319945dbaf8a1e91@mail.gmail.com> (raw)
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.
next reply other threads:[~2009-03-17 5:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-17 5:35 Meryl Silverburgh [this message]
2009-03-17 6:34 ` Paul Pluzhnikov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=701fce30903162235g28f1811l319945dbaf8a1e91@mail.gmail.com \
--to=silverburgh.meryl@gmail.com \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox