mirror of
https://github.com/intel/llvm.git
synced 2026-01-19 09:31:59 +08:00
Fixed breakpoints to be able to be set on eSymbolTypeReExported symbols and resolve to the correct function. This allows setting a breakpoint on "memset" for iOS simulator binaries and the correct breakpoint will be set on "__platform_memset".
llvm-svn: 193114
This commit is contained in:
@@ -289,7 +289,17 @@ BreakpointResolverName::SearchCallback
|
||||
}
|
||||
else if (sc.symbol)
|
||||
{
|
||||
break_addr = sc.symbol->GetAddress();
|
||||
if (sc.symbol->GetType() == eSymbolTypeReExported)
|
||||
{
|
||||
const Symbol *actual_symbol = sc.symbol->ResolveReExportedSymbol(m_breakpoint->GetTarget());
|
||||
if (actual_symbol)
|
||||
break_addr = actual_symbol->GetAddress();
|
||||
}
|
||||
else
|
||||
{
|
||||
break_addr = sc.symbol->GetAddress();
|
||||
}
|
||||
|
||||
if (m_skip_prologue && break_addr.IsValid())
|
||||
{
|
||||
const uint32_t prologue_byte_size = sc.symbol->GetPrologueByteSize();
|
||||
|
||||
Reference in New Issue
Block a user