diff options
author | Jason Molenda <jmolenda@apple.com> | 2013-05-03 23:56:12 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 2013-05-03 23:56:12 +0000 |
commit | c16b4af0d7aa1bd6b5657474cc46482aa158c3ec (patch) | |
tree | 3ac4632102f1a5dd55e09a9bebc31f8dc5a3d064 /lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp | |
parent | 47752e489e30f029f59ab70cbf18c1d35618e74f (diff) | |
download | bcm5719-llvm-c16b4af0d7aa1bd6b5657474cc46482aa158c3ec.tar.gz bcm5719-llvm-c16b4af0d7aa1bd6b5657474cc46482aa158c3ec.zip |
Remove the UUID::GetAsCString() method which required a buffer to save the
UUID string in; added UUID::GetAsString() which returns the uuid string in
a std::string. Updated callers to use the new method.
llvm-svn: 181078
Diffstat (limited to 'lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp')
-rw-r--r-- | lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp b/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp index 12ded3c7719..5913b329315 100644 --- a/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp +++ b/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp @@ -720,11 +720,9 @@ DynamicLoaderDarwinKernel::KextImageInfo::ReadMemoryModule (Process *process) Stream *s = &process->GetTarget().GetDebugger().GetOutputStream(); if (s) { - char memory_module_uuidbuf[64]; - char exe_module_uuidbuf[64]; s->Printf ("warning: Host-side kernel file has Mach-O UUID of %s but remote kernel has a UUID of %s -- a mismatched kernel file will result in a poor debugger experience.\n", - exe_module->GetUUID().GetAsCString(exe_module_uuidbuf, sizeof (exe_module_uuidbuf)), - m_uuid.GetAsCString(memory_module_uuidbuf, sizeof (memory_module_uuidbuf))); + exe_module->GetUUID().GetAsString().c_str(), + m_uuid.GetAsString().c_str()); s->Flush (); } } @@ -770,8 +768,7 @@ DynamicLoaderDarwinKernel::KextImageInfo::LoadImageUsingMemoryModule (Process *p Stream *s = &target.GetDebugger().GetOutputStream(); if (s) { - char uuidbuf[64]; - s->Printf ("Kernel UUID: %s\n", m_memory_module_sp->GetUUID().GetAsCString(uuidbuf, sizeof (uuidbuf))); + s->Printf ("Kernel UUID: %s\n", m_memory_module_sp->GetUUID().GetAsString().c_str()); s->Printf ("Load Address: 0x%" PRIx64 "\n", m_load_address); } } @@ -872,9 +869,8 @@ DynamicLoaderDarwinKernel::KextImageInfo::LoadImageUsingMemoryModule (Process *p Stream *s = &target.GetDebugger().GetOutputStream(); if (s) { - char uuidbuf[64]; s->Printf ("warning: Can't find binary/dSYM for %s (%s)\n", - m_name.c_str(), m_uuid.GetAsCString(uuidbuf, sizeof (uuidbuf))); + m_name.c_str(), m_uuid.GetAsString().c_str()); } } |