diff options
author | Alexander Yermolovich <43973793+ayermolo@users.noreply.github.com> | 2023-12-12 07:01:20 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-12 07:01:20 -0800 |
commit | e8e9a335839350d444d1b90fa6727b3947708ab6 (patch) | |
tree | 14947297448c00b2cb63e03856c8d7974a813468 /llvm/lib/Object/ELF.cpp | |
parent | d9671bba3e3a4f60302cbc110beede1c864e645b (diff) | |
download | llvm-e8e9a335839350d444d1b90fa6727b3947708ab6.zip llvm-e8e9a335839350d444d1b90fa6727b3947708ab6.tar.gz llvm-e8e9a335839350d444d1b90fa6727b3947708ab6.tar.bz2 |
[LLVM][DWARF] Add compilation directory and dwo name to TU in dwo section (#74909)
This adds support to help LLDB when binary is built with split dwarf,
has
.debug_names accelerator table and DWP file.
Final linked binary might have Type Units (TUs) with the same type
signature in multiple
compilation units. Although the signature is the same, TUs are not
guranted to
be bit identical. This is not a problem when they are in .o/.dwo files
as LLDB
can find them by looking at the right one based on
DW_AT_comp_dir/DW_AT_name in
skeleton CU. Once DWP is created, TUs are de-duplicated, and we need to
know
from which CU remaining one came from.
This approach allows LLDB to figure it out, with minimal changes to the
rest of
the tooling. As would have been the case if .debug_tu_index section in
DWP was
modified.
Diffstat (limited to 'llvm/lib/Object/ELF.cpp')
0 files changed, 0 insertions, 0 deletions