diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2019-01-17 16:31:56 +0000 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2019-03-06 18:11:31 +0000 |
commit | 067630bdb553bb889104e3b064e4551531ddcedc (patch) | |
tree | 3327cbb47953a59b2d8628a20641bab91faac310 /gdb/f-lang.c | |
parent | 3be47f7aa99dc90190e642a4e191c9f049e0a934 (diff) | |
download | gdb-067630bdb553bb889104e3b064e4551531ddcedc.zip gdb-067630bdb553bb889104e3b064e4551531ddcedc.tar.gz gdb-067630bdb553bb889104e3b064e4551531ddcedc.tar.bz2 |
gdb/fortran: Add builtin 8-byte integer type with (kind=8) support
Add a new builtin type, an 8-byte integer, and allow GDB to parse
'integer (kind=8)', returning the new 8-byte integer.
gdb/ChangeLog:
* f-exp.y (convert_to_kind_type): Handle integer (kind=8).
* f-lang.c (build_fortran_types): Setup builtin_integer_s8.
* f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
gdb/testsuite/ChangeLog:
* gdb.fortran/type-kinds.exp: Test new integer type kind.
Diffstat (limited to 'gdb/f-lang.c')
-rw-r--r-- | gdb/f-lang.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/f-lang.c b/gdb/f-lang.c index 34ebfd9..f27eb0d 100644 --- a/gdb/f-lang.c +++ b/gdb/f-lang.c @@ -375,6 +375,10 @@ build_fortran_types (struct gdbarch *gdbarch) = arch_integer_type (gdbarch, gdbarch_short_bit (gdbarch), 0, "integer*2"); + builtin_f_type->builtin_integer_s8 + = arch_integer_type (gdbarch, gdbarch_long_long_bit (gdbarch), 0, + "integer*8"); + builtin_f_type->builtin_logical_s2 = arch_boolean_type (gdbarch, gdbarch_short_bit (gdbarch), 1, "logical*2"); |