summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Debugger.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2014-03-11 18:17:23 +0000
committerJim Ingham <jingham@apple.com>2014-03-11 18:17:23 +0000
commitf164d9404df19e747399be915b93cba2447d2778 (patch)
tree5ffec637767844564fe85660a4cad41332df4e14 /lldb/source/Core/Debugger.cpp
parent56112b999b7456e379991ec501612a81ed1a8cc7 (diff)
downloadbcm5719-llvm-f164d9404df19e747399be915b93cba2447d2778.tar.gz
bcm5719-llvm-f164d9404df19e747399be915b93cba2447d2778.zip
After doing all the work to compute the target ValueObject we want to evaluate, make sure
we actually got something before proceeding. <rdar://problem/16282875> llvm-svn: 203591
Diffstat (limited to 'lldb/source/Core/Debugger.cpp')
-rw-r--r--lldb/source/Core/Debugger.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp
index 923d85904b7..51a4aaa08ad 100644
--- a/lldb/source/Core/Debugger.cpp
+++ b/lldb/source/Core/Debugger.cpp
@@ -1682,6 +1682,13 @@ FormatPromptRecurse
do_deref_pointer = false;
}
+ if (!target)
+ {
+ if (log)
+ log->Printf("[Debugger::FormatPrompt] could not calculate target for prompt expression");
+ break;
+ }
+
// we do not want to use the summary for a bitfield of type T:n
// if we were originally dealing with just a T - that would get
// us into an endless recursion
OpenPOWER on IntegriCloud