This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/11734] break c::bar() broken, can't find bar
- From: "keiths at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 16 Dec 2010 17:47:30 +0000
- Subject: [Bug c++/11734] break c::bar() broken, can't find bar
- Auto-submitted: auto-generated
- References: <bug-11734-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=11734
--- 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.