[Lldb-commits] [lldb] r163189 - /lldb/trunk/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
Greg Clayton
gclayton at apple.com
Tue Sep 4 18:38:55 PDT 2012
Author: gclayton
Date: Tue Sep 4 20:38:55 2012
New Revision: 163189
URL: http://llvm.org/viewvc/llvm-project?rev=163189&view=rev
Log:
<rdar://problem/12100588>
Don't crash when we can't resolve our stub to a symbol.
Modified:
lldb/trunk/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
Modified: lldb/trunk/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp?rev=163189&r1=163188&r2=163189&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp (original)
+++ lldb/trunk/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp Tue Sep 4 20:38:55 2012
@@ -12,9 +12,11 @@
#include "ObjectFileMachO.h"
+#include "lldb/lldb-private-log.h"
#include "lldb/Core/ArchSpec.h"
#include "lldb/Core/DataBuffer.h"
#include "lldb/Core/FileSpecList.h"
+#include "lldb/Core/Log.h"
#include "lldb/Core/Module.h"
#include "lldb/Core/PluginManager.h"
#include "lldb/Core/RangeMap.h"
@@ -3139,7 +3141,6 @@
stub_symbol = symtab->FindSymbolByID (stub_sym_id);
}
- assert (stub_symbol);
if (stub_symbol)
{
Address so_addr(symbol_stub_addr, section_list);
@@ -3173,6 +3174,11 @@
++sym_idx;
}
}
+ else
+ {
+ if (log)
+ log->Warning ("symbol stub referencing symbol table symbol %u that isn't in our minimal symbol table, fix this!!!", stub_sym_id);
+ }
}
}
}
More information about the lldb-commits
mailing list