This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/12266] Typedefs are not expanded to their base types inbreakpoint definitions
- From: "keiths at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 17 Mar 2011 18:07:45 +0000
- Subject: [Bug c++/12266] Typedefs are not expanded to their base types inbreakpoint definitions
- Auto-submitted: auto-generated
- References: <bug-12266-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=12266
--- Comment #5 from Keith Seitz <keiths at redhat dot com> 2011-03-17 18:07:41 UTC ---
Since I have committed the patchset for 11734 and 12273, I am now revisiting
this bug...
There /appear/ to be multiple problems with symbol lookup that cause this
failure. I have further reduced the test case to:
#include <stdlib.h>
typedef const char* const* my_type;
typedef my_type my_other_type;
void
test (my_other_type foo) { }
int
main (void)
{
test (NULL);
return 0;
}
Breaking on "test(my_other_type)" works, but breaking on either "test(my_type)"
or "test(const char* const*)" does not. This partly occurs because
dwarf2_physname calls c_type_print_args, and that function does not do any
typedef resolution (which it should when it is used to compute physnames).
Unfortunately, fixing that still doesn't work right, either.
But I just wanted to update this bug to let anyone watching it know that I am
taking a look at it.
--
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.