[Lldb-commits] [PATCH] D32167: Add support for type units (.debug_types) to LLDB in a way that is compatible with DWARF 5

Greg Clayton via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu May 10 10:07:38 PDT 2018


clayborg added a comment.

In https://reviews.llvm.org/D32167#1094173, @labath wrote:

> The patch looks much better now, but I think we still need to discuss the data extractor sliding issue, as right now that's very hacky.


It makes things just work with .debug_info as is pretends that the .debug_types is just appended to the end of the .debug_info (offset wise). All info in .debug_types has no DW_FORM_ref_addr or any references that are outside of the current type unit so the info in .debug_types is position independent. I would like to keep this in DWARFDataExtractor only if possible as it is hacky and won't work in a general case. Feel free to suggest any other solution that doesn't require checked if the data is from .debug_types and adding an offset all over the code, but I couldn't think of one.


https://reviews.llvm.org/D32167





More information about the lldb-commits mailing list