[Lldb-commits] [PATCH] D66638: Unwind: Add a stack scanning mechanism to support win32 unwinding
Greg Clayton via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Sep 6 07:25:20 PDT 2019
clayborg added inline comments.
================
Comment at: source/Plugins/Process/Utility/RegisterContextLLDB.cpp:1875
+ if (addr.SetLoadAddress(candidate, &process.GetTarget()) &&
+ addr.GetSection()->GetPermissions() & lldb::ePermissionsExecutable) {
+ address = candidate_addr;
----------------
WE should probably be using the memory region permissions using:
```
bool Process::GetLoadAddressPermissions(lldb::addr_t load_addr, uint32_t &permissions);
```
Why? You might have a stack going through JIT'ed code that might not have a section. But the memory region info will know about the permissions.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D66638/new/
https://reviews.llvm.org/D66638
More information about the lldb-commits
mailing list