This is the mail archive of the gdb-prs@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]

[Bug c++/12266] Typedefs are not expanded to their base types inbreakpoint definitions


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.


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