summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/StackFrame.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2010-08-26 02:28:22 +0000
committerGreg Clayton <gclayton@apple.com>2010-08-26 02:28:22 +0000
commit0445d8f4989f3ed53ca221a817fe149a918c3446 (patch)
tree5207b1994c9c658f4798e7437c6558c5c7185d85 /lldb/source/Target/StackFrame.cpp
parente5334b484a9fbedc33d4c356d7a55b848af77b97 (diff)
downloadbcm5719-llvm-0445d8f4989f3ed53ca221a817fe149a918c3446.tar.gz
bcm5719-llvm-0445d8f4989f3ed53ca221a817fe149a918c3446.zip
Cleaned up the inline stack frame code one more time to prepare for inlined
code stepping. Also we now store the stack frames for the current and previous stops in the thread in std::auto_ptr objects. When we create a thread stack frame list we pass the previous frame into it so it can re-use the frames and maintain will allow for variable changes to be detected. I will implement the stack frame reuse next. llvm-svn: 112152
Diffstat (limited to 'lldb/source/Target/StackFrame.cpp')
-rw-r--r--lldb/source/Target/StackFrame.cpp15
1 files changed, 3 insertions, 12 deletions
diff --git a/lldb/source/Target/StackFrame.cpp b/lldb/source/Target/StackFrame.cpp
index b6d252ad1c6..74c5ce7976c 100644
--- a/lldb/source/Target/StackFrame.cpp
+++ b/lldb/source/Target/StackFrame.cpp
@@ -41,7 +41,6 @@ StackFrame::StackFrame
lldb::user_id_t concrete_frame_index,
Thread &thread,
lldb::addr_t cfa,
- uint32_t inline_height,
lldb::addr_t pc,
const SymbolContext *sc_ptr
) :
@@ -49,7 +48,7 @@ StackFrame::StackFrame
m_concrete_frame_index (concrete_frame_index),
m_thread (thread),
m_reg_context_sp (),
- m_id (cfa, inline_height),
+ m_id (cfa, 0),
m_pc (NULL, pc),
m_sc (),
m_flags (),
@@ -72,7 +71,6 @@ StackFrame::StackFrame
Thread &thread,
const RegisterContextSP &reg_context_sp,
lldb::addr_t cfa,
- uint32_t inline_height,
lldb::addr_t pc,
const SymbolContext *sc_ptr
) :
@@ -80,7 +78,7 @@ StackFrame::StackFrame
m_concrete_frame_index (concrete_frame_index),
m_thread (thread),
m_reg_context_sp (reg_context_sp),
- m_id (cfa, inline_height),
+ m_id (cfa, 0),
m_pc (NULL, pc),
m_sc (),
m_flags (),
@@ -109,7 +107,6 @@ StackFrame::StackFrame
Thread &thread,
const RegisterContextSP &reg_context_sp,
lldb::addr_t cfa,
- uint32_t inline_height,
const Address& pc_addr,
const SymbolContext *sc_ptr
) :
@@ -117,7 +114,7 @@ StackFrame::StackFrame
m_concrete_frame_index (concrete_frame_index),
m_thread (thread),
m_reg_context_sp (reg_context_sp),
- m_id (cfa, inline_height),
+ m_id (cfa, 0),
m_pc (pc_addr),
m_sc (),
m_flags (),
@@ -473,12 +470,6 @@ StackFrame::GetValueObjectList()
return m_value_object_list;
}
-bool
-StackFrame::IsConcrete () const
-{
- return m_id.GetInlineHeight () == 0;
-}
-
Target *
StackFrame::CalculateTarget ()
{
OpenPOWER on IntegriCloud