diff options
author | Bhuvanendra Kumar N <Bhuvanendra.KumarN@amd.com> | 2022-02-02 17:52:27 +0000 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2022-02-11 15:26:25 +0000 |
commit | e951225303b7d0565c985e2d562d3787983ff06f (patch) | |
tree | bb924f8f2e8cccb6afb95c0446ff42aa91a2f3e1 /include | |
parent | 9ab50efc463ff723b8e9102f1f68a6983d320517 (diff) | |
download | gdb-e951225303b7d0565c985e2d562d3787983ff06f.zip gdb-e951225303b7d0565c985e2d562d3787983ff06f.tar.gz gdb-e951225303b7d0565c985e2d562d3787983ff06f.tar.bz2 |
gdb/fortran: support ptype and print commands for namelist variables
Gfortran supports namelists (a Fortran feature); it emits
DW_TAG_namelist and DW_TAG_namelist_item dies. But gdb does not
process these dies and does not support 'print' or 'ptype' commands on
namelist variables.
An attempt to print namelist variables results in gdb bailing out with
the error message as shown below.
(gdb) print nml
No symbol "nml" in current context.
This commit is to make the print and ptype commands work for namelist
variables and its items. Sample output of these commands is shared
below, with fixed gdb.
(gdb) ptype nml
type = Type nml
integer(kind=4) :: a
integer(kind=4) :: b
End Type nml
(gdb) print nml
$1 = ( a = 10, b = 20 )
Diffstat (limited to 'include')
-rw-r--r-- | include/dwarf2.def | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/dwarf2.def b/include/dwarf2.def index 4214c80..530c6f8 100644 --- a/include/dwarf2.def +++ b/include/dwarf2.def @@ -289,7 +289,7 @@ DW_AT (DW_AT_frame_base, 0x40) DW_AT (DW_AT_friend, 0x41) DW_AT (DW_AT_identifier_case, 0x42) DW_AT (DW_AT_macro_info, 0x43) -DW_AT (DW_AT_namelist_items, 0x44) +DW_AT (DW_AT_namelist_item, 0x44) DW_AT (DW_AT_priority, 0x45) DW_AT (DW_AT_segment, 0x46) DW_AT (DW_AT_specification, 0x47) |