summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/Utility/UnwindMacOSXFrameBackchain.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2010-08-24 21:05:24 +0000
committerGreg Clayton <gclayton@apple.com>2010-08-24 21:05:24 +0000
commit9da7bd07390bc3c35caaea2b59fb74109b860889 (patch)
tree502c1f8d69b153bd5e4023ef58d5c6a7eb85e7f0 /lldb/source/Plugins/Process/Utility/UnwindMacOSXFrameBackchain.cpp
parentccd28d0665d0d6c405c11ecf5dee9e6dd6f75e1a (diff)
downloadbcm5719-llvm-9da7bd07390bc3c35caaea2b59fb74109b860889.tar.gz
bcm5719-llvm-9da7bd07390bc3c35caaea2b59fb74109b860889.zip
Got a lot of the kinks worked out in the inline support after debugging more
complex inlined examples. StackFrame classes don't have a "GetPC" anymore, they have "GetFrameCodeAddress()". This is because inlined frames will have a PC value that is the same as the concrete frame that owns the inlined frame, yet the code locations for the frame can be different. We also need to be able to get the real PC value for a given frame so that variables evaluate correctly. To get the actual PC value for a frame you can use: addr_t pc = frame->GetRegisterContext()->GetPC(); Some issues with the StackFrame stomping on its own symbol context were resolved which were causing the information to change for a frame when the stack ID was calculated. Also the StackFrame will now correctly store the symbol context resolve flags for any extra bits of information that were looked up (if you ask for a block only and you find one, you will alwasy have the compile unit and function). llvm-svn: 111964
Diffstat (limited to 'lldb/source/Plugins/Process/Utility/UnwindMacOSXFrameBackchain.cpp')
-rw-r--r--lldb/source/Plugins/Process/Utility/UnwindMacOSXFrameBackchain.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Process/Utility/UnwindMacOSXFrameBackchain.cpp b/lldb/source/Plugins/Process/Utility/UnwindMacOSXFrameBackchain.cpp
index 29bc89e63fa..4ef6338bb37 100644
--- a/lldb/source/Plugins/Process/Utility/UnwindMacOSXFrameBackchain.cpp
+++ b/lldb/source/Plugins/Process/Utility/UnwindMacOSXFrameBackchain.cpp
@@ -130,7 +130,7 @@ UnwindMacOSXFrameBackchain::GetStackFrameData_i386 (StackFrame *first_frame)
if (addr_range_ptr)
{
- if (first_frame->GetPC() == addr_range_ptr->GetBaseAddress())
+ if (first_frame->GetFrameCodeAddress() == addr_range_ptr->GetBaseAddress())
{
// We are at the first instruction, so we can recover the
// previous PC by dereferencing the SP
@@ -218,7 +218,7 @@ UnwindMacOSXFrameBackchain::GetStackFrameData_x86_64 (StackFrame *first_frame)
if (addr_range_ptr)
{
- if (first_frame->GetPC() == addr_range_ptr->GetBaseAddress())
+ if (first_frame->GetFrameCodeAddress() == addr_range_ptr->GetBaseAddress())
{
// We are at the first instruction, so we can recover the
// previous PC by dereferencing the SP
OpenPOWER on IntegriCloud