Skip to content

Commit

Permalink
Return an error if no frames were created.
Browse files Browse the repository at this point in the history
  • Loading branch information
anevilyak committed Jan 6, 2013
1 parent 89deb8f commit 59fcd81
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/apps/debugger/arch/Architecture.cpp
Expand Up @@ -194,6 +194,9 @@ Architecture::CreateStackTrace(Team* team,
break;
}

if (stackTrace->CountFrames() == 0)
return B_ERROR;

stackTraceDeleter.Detach();
_stackTrace = stackTrace;
return B_OK;
Expand Down

0 comments on commit 59fcd81

Please sign in to comment.