summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Debugger.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2012-10-16 00:09:33 +0000
committerJim Ingham <jingham@apple.com>2012-10-16 00:09:33 +0000
commit5d88a068eed8625b9668db9f6b254ae5d2a0e187 (patch)
tree107a171d4e7d5594649bcd7db199c77446dbbe87 /lldb/source/Core/Debugger.cpp
parent244beb42cee42a2ba367772d2d2a8bb04c98991f (diff)
downloadbcm5719-llvm-5d88a068eed8625b9668db9f6b254ae5d2a0e187.tar.gz
bcm5719-llvm-5d88a068eed8625b9668db9f6b254ae5d2a0e187.zip
Patch from Matt Kopec <matt.kopec@intel.com> to fix the problem that if two breakpoints were set on consecutive addresses, the continue from the
first breakpoint would skip the second. llvm-svn: 166000
Diffstat (limited to 'lldb/source/Core/Debugger.cpp')
-rw-r--r--lldb/source/Core/Debugger.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp
index 86b0cf53e3c..5941496336f 100644
--- a/lldb/source/Core/Debugger.cpp
+++ b/lldb/source/Core/Debugger.cpp
@@ -1952,7 +1952,7 @@ Debugger::FormatPrompt
else if (::strncmp (var_name_begin, "stop-reason}", strlen("stop-reason}")) == 0)
{
StopInfoSP stop_info_sp = thread->GetStopInfo ();
- if (stop_info_sp)
+ if (stop_info_sp && stop_info_sp->IsValid())
{
cstr = stop_info_sp->GetDescription();
if (cstr && cstr[0])
@@ -1965,7 +1965,7 @@ Debugger::FormatPrompt
else if (::strncmp (var_name_begin, "return-value}", strlen("return-value}")) == 0)
{
StopInfoSP stop_info_sp = thread->GetStopInfo ();
- if (stop_info_sp)
+ if (stop_info_sp && stop_info_sp->IsValid())
{
ValueObjectSP return_valobj_sp = StopInfo::GetReturnValueObject (stop_info_sp);
if (return_valobj_sp)
OpenPOWER on IntegriCloud