forked from OSchip/llvm-project
<rdar://problem/12100588>
Don't crash when we can't resolve our stub to a symbol. llvm-svn: 163189
This commit is contained in:
parent
87b3d03cc2
commit
3f839a3cee
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue