Make branches handle the lack of a symbol table or the lack of a symbol gracefully.
--HG-- extra : convert_revision : 7bb16405999b86f9fa082a6d44da43d346edc182
This commit is contained in:
parent
015873fa86
commit
41051f35ac
1 changed files with 5 additions and 1 deletions
|
@ -170,7 +170,7 @@ output decoder {{
|
||||||
printMnemonic(response, mnemonic);
|
printMnemonic(response, mnemonic);
|
||||||
ccprintf(response, "0x%x", target);
|
ccprintf(response, "0x%x", target);
|
||||||
|
|
||||||
if(symtab->findNearestSymbol(target, symbol, symbolAddr))
|
if(symtab && symtab->findNearestSymbol(target, symbol, symbolAddr))
|
||||||
{
|
{
|
||||||
ccprintf(response, " <%s", symbol);
|
ccprintf(response, " <%s", symbol);
|
||||||
if(symbolAddr != target)
|
if(symbolAddr != target)
|
||||||
|
@ -178,6 +178,10 @@ output decoder {{
|
||||||
else
|
else
|
||||||
ccprintf(response, ">");
|
ccprintf(response, ">");
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ccprintf(response, "<%d>", target);
|
||||||
|
}
|
||||||
|
|
||||||
return response.str();
|
return response.str();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue