[Lldb-commits] [lldb] [lldb] Support reading DW_OP_piece from file address (PR #94026)
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Mon Jun 3 12:04:17 PDT 2024
================
@@ -768,3 +768,63 @@ TEST(DWARFExpression, ExtensionsDWO) {
testExpressionVendorExtensions(dwo_module_sp, *dwo_dwarf_unit);
}
+
+TEST_F(DWARFExpressionMockProcessTest, DW_OP_piece_file_addr) {
+ struct MockTarget : Target {
----------------
labath wrote:
The code I linked to ([this one](https://github.com/llvm/llvm-project/blob/main/lldb/unittests/TestingSupport/Host/NativeProcessTestUtils.h#L73)) shows one way to do it. Basically, you implement the real function in terms on some other interface -- one which is easier to mock -- and then you mock *that*.
https://github.com/llvm/llvm-project/pull/94026
More information about the lldb-commits
mailing list