This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Name of Fortran intrinsic types


Hi all,

This is my first patch submission for gdb (I received confirmation of my copyright assignment a week ago). It's short and I hope it's straightforward: for intrinsic Fortran types (here, real and complex types), I think we should use the name the compiler produced, instead of trying to be clever.

The rationale is that this allows us to output Fortran names for the types, e.g. "real(kind=4)", instead gdb-specific, non-Fortran names (e.g. "int4"). The reason for doing that instead of simply replacing the format (currently "int%d") in gdb is that we have no way, in general, to know the kind of the variable in gdb, so it's better to simply trust the compiler!

Built and regtested on x86_64-linux (there are a fair number of FAILures in the testsuite, but none in the Fortran area, so maybe it's the normal state?).

Thanks,
FX


Attachment: gdb-types.ChangeLog
Description: Binary data

Attachment: gdb-types.diff
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]