This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to set a breakpoint at a C++ class function?


On Mon, Mar 16, 2009 at 10:35 PM, Meryl Silverburgh
<silverburgh.meryl@gmail.com> wrote:

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

Note the leading single quote (which is required) in what GDB
suggests you try.

What happens when you type (at the (gdb) prompt):

  'RenderBlock::calcBlockPrefWiths

and then hit the TAB key?



-- 
Paul Pluzhnikov


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]