[Lldb-commits] [lldb] r175494 - Experiment with printing a warning message when lldb is unable to
Jason Molenda
jmolenda at apple.com
Mon Feb 18 22:39:56 PST 2013
Author: jmolenda
Date: Tue Feb 19 00:39:56 2013
New Revision: 175494
URL: http://llvm.org/viewvc/llvm-project?rev=175494&view=rev
Log:
Experiment with printing a warning message when lldb is unable to
find a binary on the debugger-host during a kernel debug session
for a kernel extension (kext). This may prove to be too verbose
in typical usage, particularly if there are many third-party kexts.
We'll try this and see how it works.
<rdar://problem/13080833>
Modified:
lldb/trunk/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
Modified: lldb/trunk/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp?rev=175494&r1=175493&r2=175494&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp (original)
+++ lldb/trunk/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp Tue Feb 19 00:39:56 2013
@@ -794,7 +794,7 @@ DynamicLoaderDarwinKernel::KextImageInfo
Stream *s = &target.GetDebugger().GetOutputStream();
if (s)
{
- s->Printf ("WARNING: Unable to locate symbol rich version of kernel binary.\n");
+ s->Printf ("WARNING: Unable to locate kernel binary on this system.\n");
}
}
}
@@ -822,6 +822,16 @@ DynamicLoaderDarwinKernel::KextImageInfo
}
}
+ if (!m_module_sp && !IsKernel() && m_uuid.IsValid() && !m_name.empty())
+ {
+ 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)));
+ }
+ }
static ConstString g_section_name_LINKEDIT ("__LINKEDIT");
More information about the lldb-commits
mailing list