This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Interpret DW_TAG_unspecified_type as void
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: julian at codesourcery dot com
- Cc: gdb-patches at sourceware dot org, dan at codesourcery dot com, julian at codesourcery dot com
- Date: Sun, 18 Jun 2006 03:14:05 +0200 (CEST)
- Subject: Re: [PATCH] Interpret DW_TAG_unspecified_type as void
- References: <448969B2.9010202@codesourcery.com>
> Date: Fri, 09 Jun 2006 13:29:38 +0100
> From: Julian Brown <julian@codesourcery.com>
>
> Hi,
>
> This is part of a series of patches from a CodeSourcery branch which
> enable the output of ARM's RVCT 2.2 compiler to be debugged with gdb.
>
> This patch handles the C/C++ interpretation of the DWARF 3 construct
> DW_TAG_unspecified_type as void. This is used in representing e.g.
> pointer-to-void types. Other languages will currently be handled in
> exactly the same way; though I'm not entirely sure if that's a sensible
> default, I don't know what would be better. (Re: section 5.2 of the
> DWARF 3 doc.)
>
> Tested natively on x86_64-unknown-linux-gnu and cross to arm-none-eabi
> with no change in results. Tests against the ARM compiler are improved
> somewhat.
>
> OK to apply?
I haven't looked into what the DWARF spec actually says, but
traditionally unspecified types in C default to 'int', not 'void'.