Name of Fortran intrinsic types
FX Coudert
fxcoudert@gmail.com
Sun Nov 18 05:35:00 GMT 2007
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gdb-types.ChangeLog
Type: application/octet-stream
Size: 214 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20071118/ac781e59/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gdb-types.diff
Type: application/octet-stream
Size: 1939 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20071118/ac781e59/attachment-0001.obj>
More information about the Fortran
mailing list