From 9da7bd07390bc3c35caaea2b59fb74109b860889 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Tue, 24 Aug 2010 21:05:24 +0000 Subject: 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 --- lldb/source/Core/ModuleList.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lldb/source/Core/ModuleList.cpp') diff --git a/lldb/source/Core/ModuleList.cpp b/lldb/source/Core/ModuleList.cpp index 37357c373ca..1d7e75537b3 100644 --- a/lldb/source/Core/ModuleList.cpp +++ b/lldb/source/Core/ModuleList.cpp @@ -267,7 +267,7 @@ ModuleList::FindModules } ModuleSP -ModuleList::FindModule (lldb_private::Module *module_ptr) +ModuleList::FindModule (const Module *module_ptr) { ModuleSP module_sp; @@ -450,7 +450,7 @@ GetSharedModuleList () } const lldb::ModuleSP -ModuleList::GetModuleSP (lldb_private::Module *module_ptr) +ModuleList::GetModuleSP (const Module *module_ptr) { lldb::ModuleSP module_sp; if (module_ptr) -- cgit v1.2.3