summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/macosx/Symbols.cpp
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2012-08-22 00:18:43 +0000
committerJohnny Chen <johnny.chen@apple.com>2012-08-22 00:18:43 +0000
commit82e5a262408df49a34e02ba86d2424f3cdce1420 (patch)
tree6e25f73e2b9f58875df388fe083cfea16023d564 /lldb/source/Host/macosx/Symbols.cpp
parent24f09cc82d3d6f0e0c8c1a342efa6c840f77e324 (diff)
downloadbcm5719-llvm-82e5a262408df49a34e02ba86d2424f3cdce1420.tar.gz
bcm5719-llvm-82e5a262408df49a34e02ba86d2424f3cdce1420.zip
rdar://problem/11324515
'add-dsym' (aka 'target symbols add') should display error messages when dsym file is not found or the dsym uuid does not match any existing modules. Add TestAddDsymCommand.py test file. llvm-svn: 162332
Diffstat (limited to 'lldb/source/Host/macosx/Symbols.cpp')
-rw-r--r--lldb/source/Host/macosx/Symbols.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/lldb/source/Host/macosx/Symbols.cpp b/lldb/source/Host/macosx/Symbols.cpp
index debd85d20ab..9274decda0e 100644
--- a/lldb/source/Host/macosx/Symbols.cpp
+++ b/lldb/source/Host/macosx/Symbols.cpp
@@ -22,6 +22,7 @@
#include "lldb/Core/DataBuffer.h"
#include "lldb/Core/DataExtractor.h"
#include "lldb/Core/Module.h"
+#include "lldb/Core/StreamString.h"
#include "lldb/Core/Timer.h"
#include "lldb/Core/UUID.h"
#include "lldb/Host/Endian.h"
@@ -126,9 +127,12 @@ SkinnyMachOFileContainsArchAndUUID
path_buf[0] = '\0';
const char *path = file_spec.GetPath(path_buf, PATH_MAX) ? path_buf
: file_spec.GetFilename().AsCString();
+ StreamString ss_m_uuid, ss_o_uuid;
+ uuid->Dump(&ss_m_uuid);
+ file_uuid.Dump(&ss_o_uuid);
Host::SystemLog (Host::eSystemLogWarning,
- "warning: UUID mismatch detected between binary and:\n\t'%s'\n",
- path);
+ "warning: UUID mismatch detected between binary (%s) and:\n\t'%s' (%s)\n",
+ ss_m_uuid.GetData(), path, ss_o_uuid.GetData());
return false;
}
data_offset = cmd_offset + cmd_size;
OpenPOWER on IntegriCloud