This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC]: Document patch for F90 derived type support
> Date: Wed, 1 Mar 2006 21:33:35 -0500 (EST)
> From: Wu Zhou <woodzltc@cn.ibm.com>
> cc: gdb-patches@sourceware.org
>
> Maybe we can do this:
>
> case TYPE_CODE_INT:
> /* There may be some character types that attempt to come
> through as TYPE_CODE_INT since dbxstclass.h is so
> C-oriented, we must change these to "character" from "char". */
>
> if (strcmp (TYPE_NAME (type), "char") == 0)
> fprintfi_filtered (level, stream, "character");
> else
> fprintfi_filtered (level, stream, "integer (%d)", TYPE_LENGTH (type));
> break;
>
> The basic idea is to let the TYPE_CODE (type) and TYPE_LENGTH (type) to
> determine what should be displayed.
This is okay with me. Thanks.