[Lldb-commits] [lldb] r205555 - Avoid crash if symbol returns a null name
Ed Maste
emaste at freebsd.org
Thu Apr 3 12:27:40 PDT 2014
Author: emaste
Date: Thu Apr 3 14:27:39 2014
New Revision: 205555
URL: http://llvm.org/viewvc/llvm-project?rev=205555&view=rev
Log:
Avoid crash if symbol returns a null name
Modified:
lldb/trunk/source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/ItaniumABILanguageRuntime.cpp
Modified: lldb/trunk/source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/ItaniumABILanguageRuntime.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/ItaniumABILanguageRuntime.cpp?rev=205555&r1=205554&r2=205555&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/ItaniumABILanguageRuntime.cpp (original)
+++ lldb/trunk/source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/ItaniumABILanguageRuntime.cpp Thu Apr 3 14:27:39 2014
@@ -107,7 +107,7 @@ ItaniumABILanguageRuntime::GetDynamicTyp
if (symbol != NULL)
{
const char *name = symbol->GetMangled().GetDemangledName().AsCString();
- if (strstr(name, vtable_demangled_prefix) == name)
+ if (name && strstr(name, vtable_demangled_prefix) == name)
{
Log *log (lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_OBJECT));
if (log)
More information about the lldb-commits
mailing list