This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Name of Fortran intrinsic types
- From: FX Coudert <fxcoudert at gmail dot com>
- To: gdb-patches at sourceware dot org
- Cc: "fortran at gcc dot gnu dot org List" <fortran at gcc dot gnu dot org>
- Date: Sat, 17 Nov 2007 20:55:51 +0000
- Subject: 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