GP-3895: add executable name

This commit is contained in:
d-millar 2023-10-02 14:17:44 +00:00
parent 4b2bc8985b
commit c0f95615df
13 changed files with 96 additions and 24 deletions

View file

@ -1058,4 +1058,9 @@ public class WrappedDbgModel
client.getSymbols().setCurrentScopeFrameIndex(index);
}
@Override
public String getCurrentProcessExecutableName() {
return client.getSystemObjects().getCurrentProcessExecutableName();
}
}

View file

@ -578,7 +578,7 @@ public class DbgModel2TargetRootImpl extends DbgModel2DefaultTargetModelRoot
activate((DbgModelTargetExecutionStateful) obj);
// OK, this sucks, but not all threads are parented to activated objects
DbgModelTargetProcess parentProcess = ((DbgModelTargetObject) obj).getParentProcess();
if (obj instanceof DbgModelTargetExecutionStateful) {
if (parentProcess != null && obj instanceof DbgModelTargetExecutionStateful) {
activate(parentProcess);
}
}