[Bug c++/11734] break c::bar() broken, can't find bar

keiths at redhat dot com sourceware-bugzilla@sourceware.org
Fri Dec 17 02:10:00 GMT 2010


--- Comment #4 from Keith Seitz <keiths at redhat dot com> 2010-12-16 17:47:28 UTC ---
(In reply to comment #3)
> I have applied the patch to the debian version 7.2-1.
> For setting a breakpoint on a method it doesn't help.

Thank you for the feedback. Unfortunately, the problem you've reported here is
not really the same bug:

> #ifndef __CLASS3_H__
> #define __CLASS3_H__
> class class3
> {
>  private:
>   int intval;
>  public:
>   class3(int intVal);
>   void f1(const int iMsgId);
> };
> #endif

If you declare f1 to take "int" instead of "const int", it all works.

I believe this is a compiler bug, but there might be a way to workaround it in
gdb. I've filed c++/12328 to track this.

If you find any other test cases that exhibit the problem, please submit it
here so that I can take a look.

Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the Gdb-prs mailing list