Debugger: Extend ImageDebugInfoJobListener.

ImageDebugInfoJobListener:
- Add hook for notification that the loading job is in progress. Call
  as appropriate when the job actually starts.
This commit is contained in:
Rene Gollent 2015-08-14 20:44:48 -04:00
parent 7f77789d5b
commit 674e0424f7
2 changed files with 10 additions and 0 deletions

View File

@ -97,6 +97,7 @@ public:
virtual ~ImageDebugInfoJobListener(); virtual ~ImageDebugInfoJobListener();
virtual void ImageDebugInfoJobNeedsUserInput(Job* job, virtual void ImageDebugInfoJobNeedsUserInput(Job* job,
ImageDebugInfoLoadingState* state); ImageDebugInfoLoadingState* state);
virtual void ImageDebugInfoJobInProgress(Image* image);
}; };

View File

@ -29,6 +29,12 @@ ImageDebugInfoJobListener::ImageDebugInfoJobNeedsUserInput(Job* job,
} }
void
ImageDebugInfoJobListener::ImageDebugInfoJobInProgress(Image* image)
{
}
// #pragma mark - LoadImageDebugInfoJob // #pragma mark - LoadImageDebugInfoJob
@ -65,6 +71,9 @@ LoadImageDebugInfoJob::Do()
ImageInfo imageInfo(fImage->Info()); ImageInfo imageInfo(fImage->Info());
locker.Unlock(); locker.Unlock();
if (fListener != NULL)
fListener->ImageDebugInfoJobInProgress(fImage);
// create the debug info // create the debug info
ImageDebugInfo* debugInfo; ImageDebugInfo* debugInfo;
status_t error = fImage->GetTeam()->DebugInfo()->LoadImageDebugInfo( status_t error = fImage->GetTeam()->DebugInfo()->LoadImageDebugInfo(