[Lldb-commits] [PATCH] D61502: 03/06: New CUDIERef

Jan Kratochvil via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri May 3 06:32:31 PDT 2019


jankratochvil created this revision.
jankratochvil added reviewers: clayborg, labath, JDevlieghere.
jankratochvil added a project: LLDB.
Herald added a subscriber: aprantl.

New `CUDIERef` contains `DWARFUnit *` + `dw_offset_t`; compared to `DIERef` which contains the CU as `dw_offset_t` which is difficult to use/lookup.

It is required as so far `dw_offset_t` was global for the whole `SymbolFileDWARF` but with `.debug_types` the same `dw_offset_t` may mean two different things depending on its section (=CU).

This means that some functions have to now handle 16 bytes instead of 8 bytes but I do not see that anywhere performance critical.

The whole patchset available for testing as: `git clone -b debugtypes git://git.jankratochvil.net/lldb`


Repository:
  rLLDB LLDB

https://reviews.llvm.org/D61502

Files:
  lldb/source/Plugins/SymbolFile/DWARF/DIERef.cpp
  lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
  lldb/source/Plugins/SymbolFile/DWARF/DWARFAttribute.cpp
  lldb/source/Plugins/SymbolFile/DWARF/DWARFAttribute.h
  lldb/source/Plugins/SymbolFile/DWARF/DWARFBaseDIE.cpp
  lldb/source/Plugins/SymbolFile/DWARF/DWARFBaseDIE.h
  lldb/source/Plugins/SymbolFile/DWARF/DWARFDIE.cpp
  lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp
  lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.h
  lldb/source/Plugins/SymbolFile/DWARF/DWARFFormValue.cpp
  lldb/source/Plugins/SymbolFile/DWARF/DWARFFormValue.h
  lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp
  lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61502.197988.patch
Type: text/x-patch
Size: 26287 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190503/813fad2b/attachment-0001.bin>


More information about the lldb-commits mailing list