[patch] fix exp/12117

Doug Evans dje@google.com
Wed Oct 13 18:03:00 GMT 2010


On Wed, Oct 13, 2010 at 10:53 AM, Doug Evans <dje@google.com> wrote:
> Hi.
>
> This patch fixes pr exp/12117.
> http://sourceware.org/bugzilla/show_bug.cgi?id=12117
>
> I will check this in in two days if there are no objections.
>
> 2010-10-13  Doug Evans  <dje@google.com>
>
>        PR exp/12117
>        * c-typeprint.c (c_print_type): Call CHECK_TYPEDEF after calling
>        c_type_print_base.
>        (c_type_print_modifier_flags): New function.
>        (c_type_print_modifier): Call it.
>        (c_type_print_base): Collect instance_flags while we're stripping
>        typedefs.  Change calls to c_type_print_modifier to call
>        c_type_print_modifier_flags instead.
>        (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify assumptions of
>        when this case happens.  Print "<unnamed typedef>".
>        * gdbtypes.h (strip_typedefs): Declare.
>        * gdbtypes.c (strip_typedefs): New function.
>        (check_typedef): Call it.
>
>        testsuite/
>        * gdb.cp/pr12117.cc: New file.
>        * gdb.cp/pr12117.exp: New file.

Blech, I told myself not to forget adding this note this time ... :-(

Tested on amd64-linux, no regressions.



More information about the Gdb-patches mailing list