diff options
author | Greg Clayton <gclayton@apple.com> | 2012-03-07 21:03:09 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2012-03-07 21:03:09 +0000 |
commit | e761213428bb1ad8a8835ac4bf52233ae2121f3c (patch) | |
tree | 746b13d7e3e796f69acc994362c23f732a380542 /lldb/source/Target/ThreadPlanStepRange.cpp | |
parent | 377f1f2d399171983cc26c13e81bad1699025dde (diff) | |
download | bcm5719-llvm-e761213428bb1ad8a8835ac4bf52233ae2121f3c.tar.gz bcm5719-llvm-e761213428bb1ad8a8835ac4bf52233ae2121f3c.zip |
<rdar://problem/10997402>
This fix really needed to happen as a previous fix I had submitted for
calculating symbol sizes made many symbols appear to have zero size since
the function that was calculating the symbol size was calling another function
that would cause the calculation to happen again. This resulted in some symbols
having zero size when they shouldn't. This could then cause infinite stack
traces and many other side affects.
llvm-svn: 152244
Diffstat (limited to 'lldb/source/Target/ThreadPlanStepRange.cpp')
-rw-r--r-- | lldb/source/Target/ThreadPlanStepRange.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lldb/source/Target/ThreadPlanStepRange.cpp b/lldb/source/Target/ThreadPlanStepRange.cpp index e67cf28d17a..b504e1f18db 100644 --- a/lldb/source/Target/ThreadPlanStepRange.cpp +++ b/lldb/source/Target/ThreadPlanStepRange.cpp @@ -184,9 +184,10 @@ ThreadPlanStepRange::InSymbol() { return m_addr_context.function->GetAddressRange().ContainsLoadAddress (cur_pc, m_thread.CalculateTarget().get()); } - else if (m_addr_context.symbol != NULL) + else if (m_addr_context.symbol) { - return m_addr_context.symbol->GetAddressRangeRef().ContainsLoadAddress (cur_pc, m_thread.CalculateTarget().get()); + AddressRange range(m_addr_context.symbol->GetAddress(), m_addr_context.symbol->GetByteSize()); + return range.ContainsLoadAddress (cur_pc, m_thread.CalculateTarget().get()); } return false; } |