[Lldb-commits] [PATCH] D52678: DWARFExpression: Resolve file addresses in the linked module

Greg Clayton via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Sun Sep 30 11:38:16 PDT 2018


clayborg requested changes to this revision.
clayborg added a comment.
This revision now requires changes to proceed.

Any idea why the module isn't set correctly in certain dwarf expressions? Any variable that is created from debug info that pertains to a module should have its DWARFExpression created with the correct module. A DWARFExpression that has no module, yet it has file addresses with DW_OP_addr, was not created correctly. If you grab a global variable from module "a.out" and create a DWARFExpression that doesn't have its module set correctly, but we are stopped in libfoo.dylib in some frame inside there, and then evaluate the expression it will evaluate incorrectly or not at all if the file address doesn't match something in the current frame. The right fix is to ensure the DWARFExpression is created correctly with a module.


https://reviews.llvm.org/D52678





More information about the lldb-commits mailing list