summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2014-12-19 19:20:44 +0000
committerJim Ingham <jingham@apple.com>2014-12-19 19:20:44 +0000
commit4af5961caaeec5162f90f7471853fe109689d8d4 (patch)
treeaedfd749e48753d1563194eeb6c6f8b4e544792b /lldb/source/Target
parent1b6485457438ff6b1134ec53350a72288dafe57c (diff)
downloadbcm5719-llvm-4af5961caaeec5162f90f7471853fe109689d8d4.tar.gz
bcm5719-llvm-4af5961caaeec5162f90f7471853fe109689d8d4.zip
Audit uses of ConstString::AsCString() to make sure they weren't assuming
they would always get a non-NULL string back. <rdar://problem/19298575> llvm-svn: 224602
Diffstat (limited to 'lldb/source/Target')
-rw-r--r--lldb/source/Target/Target.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Target/Target.cpp b/lldb/source/Target/Target.cpp
index 76a89a45187..9d605ed0428 100644
--- a/lldb/source/Target/Target.cpp
+++ b/lldb/source/Target/Target.cpp
@@ -1383,9 +1383,9 @@ Target::ReadMemory (const Address& addr,
ModuleSP addr_module_sp (resolved_addr.GetModule());
if (addr_module_sp && addr_module_sp->GetFileSpec())
error.SetErrorStringWithFormat("%s[0x%" PRIx64 "] can't be resolved, %s in not currently loaded",
- addr_module_sp->GetFileSpec().GetFilename().AsCString(),
+ addr_module_sp->GetFileSpec().GetFilename().AsCString("<Unknown>"),
resolved_addr.GetFileAddress(),
- addr_module_sp->GetFileSpec().GetFilename().AsCString());
+ addr_module_sp->GetFileSpec().GetFilename().AsCString("<Unknonw>"));
else
error.SetErrorStringWithFormat("0x%" PRIx64 " can't be resolved", resolved_addr.GetFileAddress());
}
OpenPOWER on IntegriCloud