Remove check.
- It can actually happen that an app crashes due to being at IP 0. The short circuit was consequently preventing us from unwinding the stack properly in such a case.
This commit is contained in:
@@ -122,8 +122,6 @@ Architecture::CreateStackTrace(Team* team,
|
|||||||
while (cpuState != NULL) {
|
while (cpuState != NULL) {
|
||||||
// get the instruction pointer
|
// get the instruction pointer
|
||||||
target_addr_t instructionPointer = cpuState->InstructionPointer();
|
target_addr_t instructionPointer = cpuState->InstructionPointer();
|
||||||
if (instructionPointer == 0)
|
|
||||||
break;
|
|
||||||
|
|
||||||
// get the image for the instruction pointer
|
// get the image for the instruction pointer
|
||||||
AutoLocker<Team> teamLocker(team);
|
AutoLocker<Team> teamLocker(team);
|
||||||
|
|||||||
Reference in New Issue
Block a user