Merge remote-tracking branch 'origin/GP-0_Dan_testFixes-2024-09-05-1'

This commit is contained in:
Ryan Kurtz 2024-09-05 08:43:28 -04:00
commit fd7694b0c3
2 changed files with 10 additions and 6 deletions

View File

@ -984,16 +984,20 @@ public class DebuggerTraceManagerServicePlugin extends Plugin
navigationHistoryService.clear(trace.getProgramView());
}
synchronized (listenersByTrace) {
trace.release(this);
lastCoordsByTrace.remove(trace);
trace.removeListener(listenersByTrace.remove(trace));
//Msg.debug(this, "Remaining Consumers of " + trace + ": " + trace.getConsumerList());
}
if (current.getTrace() == trace) {
activate(DebuggerCoordinates.NOWHERE, ActivationCause.ACTIVATE_DEFAULT);
try {
if (current.getTrace() == trace) {
activate(DebuggerCoordinates.NOWHERE, ActivationCause.ACTIVATE_DEFAULT);
}
else {
contextChanged();
}
}
else {
contextChanged();
finally {
trace.release(this);
}
}

View File

@ -655,7 +655,7 @@ public abstract class AbstractGhidraHeadedDebuggerTest
if (tb != null) {
if (traceManager != null && traceManager.getOpenTraces().contains(tb.trace)) {
traceManager.closeTrace(tb.trace);
traceManager.closeTraceNoConfirm(tb.trace);
}
tb.close();
}