summaryrefslogtreecommitdiffstats
path: root/lldb
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2016-06-08 01:29:21 +0000
committerJim Ingham <jingham@apple.com>2016-06-08 01:29:21 +0000
commit203451742f2f17c533f53158b781bd2d5b1fe0ac (patch)
treecd83bbf9dd1801959530d4470f79002f11280ce1 /lldb
parenta4ac7cdac250cbfb84d72bca5443cd47f21f1774 (diff)
downloadbcm5719-llvm-203451742f2f17c533f53158b781bd2d5b1fe0ac.tar.gz
bcm5719-llvm-203451742f2f17c533f53158b781bd2d5b1fe0ac.zip
Revive the error message from "process load" and SBProcess::LoadImage.
IsPointedCString has problems with ValueObjects of type eTypeHostAddress. We should figure out the right thing to do in that case, but the test is silly here because we're reading a type we've defined, so we know it is a const char *, and if the memory is good, we won't be able to read any characters, when we do ReadPointedString. <rdar://problem/26612812> llvm-svn: 272087
Diffstat (limited to 'lldb')
-rw-r--r--lldb/source/Plugins/Platform/POSIX/PlatformPOSIX.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Platform/POSIX/PlatformPOSIX.cpp b/lldb/source/Plugins/Platform/POSIX/PlatformPOSIX.cpp
index 72fc86ffbe2..1fcc8b69fa2 100644
--- a/lldb/source/Plugins/Platform/POSIX/PlatformPOSIX.cpp
+++ b/lldb/source/Plugins/Platform/POSIX/PlatformPOSIX.cpp
@@ -943,7 +943,7 @@ PlatformPOSIX::DoLoadImage(lldb_private::Process* process,
if (image_ptr == 0)
{
ValueObjectSP error_str_sp = result_valobj_sp->GetChildAtIndex(1, true);
- if (error_str_sp && error_str_sp->IsCStringContainer(true))
+ if (error_str_sp)
{
DataBufferSP buffer_sp(new DataBufferHeap(10240,0));
size_t num_chars = error_str_sp->ReadPointedString (buffer_sp, error, 10240).first;
OpenPOWER on IntegriCloud