diff options
author | Ali Tamur <tamur@google.com> | 2019-08-26 17:53:24 -0700 |
---|---|---|
committer | Ali Tamur <tamur@google.com> | 2019-09-09 18:35:43 -0700 |
commit | a084a2a6a181c2206be4ba29b21dc0ae441ab4e9 (patch) | |
tree | 26c98104519f4566444b83757fecb2aae3431ac4 /gas/config | |
parent | b76c1a8361f78302d760b0f79f780193c801a724 (diff) | |
download | gdb-a084a2a6a181c2206be4ba29b21dc0ae441ab4e9.zip gdb-a084a2a6a181c2206be4ba29b21dc0ae441ab4e9.tar.gz gdb-a084a2a6a181c2206be4ba29b21dc0ae441ab4e9.tar.bz2 |
DWARF 5 support: Handle dwo_id
* DW_UT_skeleton and DW_UT_split_compile compilation units have dwo ids
to match the compilation unit in the skeleton and .dwo files. The dwo_id is
in the header.
Tested with CC=/usr/bin/gcc (version 8.3.0) against master branch (also with
-gsplit-dwarf and -gdwarf-4 flags) and there was no increase in the set of
tests that fails.
This is part of an effort to support DWARF 5 in gdb.
gdb/ChangeLog:
* dwarf2read.c (comp_unit_head): Update comment.
(dwarf2_dwo_name): New function declaration.
(dwarf_unit_type_name): New function declaration.
(read_comp_unit_head): Add support for new compilation units,
DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
(currently named as "signature") in their header. Also clarify error
messages.
(lookup_dwo_id): New function. Returns the dwo id of the given
compile unit.
(lookup_dwo_unit): Use the new lookup_dwo_id function.
(init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
functions.
(create_dwo_cu_reader): Use the added lookup_dwo_id function.
(dwarf2_dwo_name): Get the dwo name if present.
(dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
purposes.
Diffstat (limited to 'gas/config')
0 files changed, 0 insertions, 0 deletions