[Lldb-commits] [PATCH] D15172: Fix in-memory section loading for JIT-ed code.
Oleksiy Vyalov via lldb-commits
lldb-commits at lists.llvm.org
Wed Dec 2 18:13:37 PST 2015
ovyalov created this revision.
ovyalov added reviewers: clayborg, tberghammer.
ovyalov added a subscriber: lldb-commits.
Debug sections for JIT-ed code are stored in-memory and loaded as part of module's image once __jit_debug_register_code is called -
if we cannot load a section by its base load address try to load it from in-memory data buffer if possible.
http://reviews.llvm.org/D15172
Files:
source/Symbol/ObjectFile.cpp
Index: source/Symbol/ObjectFile.cpp
===================================================================
--- source/Symbol/ObjectFile.cpp
+++ source/Symbol/ObjectFile.cpp
@@ -537,6 +537,7 @@
}
}
}
+ return GetData(section->GetFileOffset(), section->GetFileSize(), section_data);
}
else
{
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15172.41704.patch
Type: text/x-patch
Size: 348 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20151203/9ebff076/attachment.bin>
More information about the lldb-commits
mailing list