TeamDebugger: When stopping after an image load...
...set a stop reason to indicate the responsible image.
This commit is contained in:
parent
ea84db9e2f
commit
5d4ef3e417
@ -1576,21 +1576,25 @@ TeamDebugger::_HandleImageDebugInfoChanged(image_id imageID)
|
|||||||
BReference<ThreadHandler> handlerReference(handler);
|
BReference<ThreadHandler> handlerReference(handler);
|
||||||
|
|
||||||
bool stop = true;
|
bool stop = true;
|
||||||
|
const BString& imageName = image->Name();
|
||||||
|
// only match on the image filename itself
|
||||||
|
const char* rawImageName = imageName.String()
|
||||||
|
+ imageName.FindLast('/') + 1;
|
||||||
if (fTeam->StopImageNameListEnabled()) {
|
if (fTeam->StopImageNameListEnabled()) {
|
||||||
const BStringList& nameList = fTeam->StopImageNames();
|
const BStringList& nameList = fTeam->StopImageNames();
|
||||||
const BString& imageName = image->Name();
|
|
||||||
// only match on the image filename itself
|
|
||||||
const char* rawImageName = imageName.String()
|
|
||||||
+ imageName.FindLast('/') + 1;
|
|
||||||
stop = nameList.HasString(rawImageName);
|
stop = nameList.HasString(rawImageName);
|
||||||
}
|
}
|
||||||
|
|
||||||
locker.Unlock();
|
if (stop && handler != NULL) {
|
||||||
|
BString stopReason;
|
||||||
|
stopReason.SetToFormat("Image '%s' loaded.",
|
||||||
|
rawImageName);
|
||||||
|
locker.Unlock();
|
||||||
|
|
||||||
if (stop && handler != NULL
|
if (handler->HandleThreadDebugged(NULL, stopReason))
|
||||||
&& handler->HandleThreadDebugged(NULL)) {
|
return;
|
||||||
return;
|
} else
|
||||||
}
|
locker.Unlock();
|
||||||
} else
|
} else
|
||||||
locker.Unlock();
|
locker.Unlock();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user