GetStatementAtAddress(): Terminate, if we couldn't get the statement from the
disassembled code of the function. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31685 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -242,12 +242,13 @@ printf(" -> no function instance\n");
|
|||||||
// statement directly.
|
// statement directly.
|
||||||
if (DisassembledCode* code = functionInstance->GetSourceCode()) {
|
if (DisassembledCode* code = functionInstance->GetSourceCode()) {
|
||||||
Statement* statement = code->StatementAtAddress(address);
|
Statement* statement = code->StatementAtAddress(address);
|
||||||
if (statement != NULL) {
|
if (statement == NULL)
|
||||||
statement->AcquireReference();
|
return B_ENTRY_NOT_FOUND;
|
||||||
_statement = statement;
|
|
||||||
_function = functionInstance;
|
statement->AcquireReference();
|
||||||
return B_OK;
|
_statement = statement;
|
||||||
}
|
_function = functionInstance;
|
||||||
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
// get the statement from the image debug info
|
// get the statement from the image debug info
|
||||||
|
|||||||
Reference in New Issue
Block a user