[PATCH 4/8] gdb/fortran: better types for components of complex numbers

Tom Tromey tom@tromey.com
Tue Mar 19 20:18:00 GMT 2019


>>>>> "Andrew" == Andrew Burgess <andrew.burgess@embecosm.com> writes:

Andrew> +    case TYPE_CODE_FLT:
Andrew> +      /* In the case where the float was extracted from a complex number
Andrew> +	 then the component part will not have a name set.  Provide a
Andrew> +	 suitable name here.
Andrew> +
Andrew> +	 QUESTION: Maybe we should be forcing the type name in the DWARF
Andrew> +	 parser rather than fixing up the missing name at the last minute?
Andrew> +	 I couldn't see any precedent for such fixing up though.  */

I think that would be fine to do.  Are the types nameless right now?  Or
does the compiler emit the incorrect name?

Tom



More information about the Gdb-patches mailing list