mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-28 22:21:26 +08:00
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.
This commit is contained in:
@ -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");
|
||||
|
Reference in New Issue
Block a user