diff options
author | Greg Clayton <gclayton@apple.com> | 2012-09-05 01:38:55 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2012-09-05 01:38:55 +0000 |
commit | 3f839a3cee349df1c5fcdbba3a3dde6d07547588 (patch) | |
tree | 677370355d0dcf5d2583cba7504e429590f7863e /lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp | |
parent | 87b3d03cc2dccb74527230139896ec5079e280f0 (diff) | |
download | bcm5719-llvm-3f839a3cee349df1c5fcdbba3a3dde6d07547588.tar.gz bcm5719-llvm-3f839a3cee349df1c5fcdbba3a3dde6d07547588.zip |
<rdar://problem/12100588>
Don't crash when we can't resolve our stub to a symbol.
llvm-svn: 163189
Diffstat (limited to 'lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp')
-rw-r--r-- | lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp b/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp index 3e2d7655145..2027535a44d 100644 --- a/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp +++ b/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp @@ -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 @@ struct lldb_copy_dyld_cache_local_symbols_entry 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 @@ struct lldb_copy_dyld_cache_local_symbols_entry ++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); + } } } } |