Cleanup, no functional change.
This commit is contained in:
parent
3c6ba4733b
commit
3464764f7d
@ -182,15 +182,7 @@ DebugReportGenerator::ThreadStackTraceChanged(const ::Team::ThreadEvent& event)
|
||||
void
|
||||
DebugReportGenerator::MemoryBlockRetrieved(TeamMemoryBlock* block)
|
||||
{
|
||||
if (fCurrentBlock != NULL) {
|
||||
fCurrentBlock->ReleaseReference();
|
||||
fCurrentBlock = NULL;
|
||||
}
|
||||
|
||||
fBlockRetrievalStatus = B_OK;
|
||||
|
||||
fCurrentBlock = block;
|
||||
release_sem(fTeamDataSem);
|
||||
_HandleMemoryBlockRetrieved(block, B_OK);
|
||||
}
|
||||
|
||||
|
||||
@ -198,15 +190,7 @@ void
|
||||
DebugReportGenerator::MemoryBlockRetrievalFailed(TeamMemoryBlock* block,
|
||||
status_t result)
|
||||
{
|
||||
if (fCurrentBlock != NULL) {
|
||||
fCurrentBlock->ReleaseReference();
|
||||
fCurrentBlock = NULL;
|
||||
}
|
||||
|
||||
fBlockRetrievalStatus = result;
|
||||
|
||||
fCurrentBlock = block;
|
||||
release_sem(fTeamDataSem);
|
||||
_HandleMemoryBlockRetrieved(block, result);
|
||||
}
|
||||
|
||||
|
||||
@ -554,3 +538,19 @@ DebugReportGenerator::_ResolveValueIfNeeded(ValueNode* node, StackFrame* frame,
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
DebugReportGenerator::_HandleMemoryBlockRetrieved(TeamMemoryBlock* block,
|
||||
status_t result)
|
||||
{
|
||||
if (fCurrentBlock != NULL) {
|
||||
fCurrentBlock->ReleaseReference();
|
||||
fCurrentBlock = NULL;
|
||||
}
|
||||
|
||||
fBlockRetrievalStatus = result;
|
||||
|
||||
fCurrentBlock = block;
|
||||
release_sem(fTeamDataSem);
|
||||
}
|
||||
|
@ -74,6 +74,9 @@ private:
|
||||
status_t _ResolveValueIfNeeded(ValueNode* node,
|
||||
StackFrame* frame, int32 maxDepth);
|
||||
|
||||
void _HandleMemoryBlockRetrieved(
|
||||
TeamMemoryBlock* block, status_t result);
|
||||
|
||||
private:
|
||||
::Team* fTeam;
|
||||
Architecture* fArchitecture;
|
||||
|
Loading…
Reference in New Issue
Block a user