This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH] Handle DW_TAG_subrange_type
- From: Elena Zannoni <ezannoni at redhat dot com>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Thu, 4 Dec 2003 11:51:47 -0500
- Subject: Re: [PATCH] Handle DW_TAG_subrange_type
- References: <je1xs0p3nd.fsf@sykes.suse.de>
Andreas Schwab writes:
> When trying to debug Ada code you often get a DW_TAG_subrange_type, which
> gdb can't handle yet.
>
> Andreas.
>
> 2003-11-22 Andreas Schwab <schwab@suse.de>
>
> * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
> New function.
> (read_subrange_type): New function.
> (process_die): Handle DW_TAG_subrange_type.
> (read_type_die): Likewise.
>
OK. Reading the Dwarf2 spec, there is a lot more that could be
apearing in the debug info for a subrange type, I guess we'll improve
on this as we encounter other unhandled cases.
Can you post an example of the debug info you see for Ada in this
case, just for the record?
elena