Better asserts/checks around bad function addresses.

This commit is contained in:
Ben Vanik
2013-05-26 03:26:49 -07:00
parent bf9e92c027
commit 22f186d713
4 changed files with 11 additions and 1 deletions

View File

@@ -244,7 +244,7 @@ FunctionSymbol* Processor::GetFunction(uint32_t address) {
void* Processor::GetFunctionPointer(uint32_t address) {
// Attempt to get the function.
FunctionSymbol* fn_symbol = GetFunction(address);
if (!fn_symbol) {
if (!fn_symbol || fn_symbol->type == FunctionSymbol::Unknown) {
return NULL;
}