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,11 +984,11 @@ 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());
}
try {
if (current.getTrace() == trace) {
activate(DebuggerCoordinates.NOWHERE, ActivationCause.ACTIVATE_DEFAULT);
}
@ -996,6 +996,10 @@ public class DebuggerTraceManagerServicePlugin extends Plugin
contextChanged();
}
}
finally {
trace.release(this);
}
}
protected void doCloseTraces(Collection<Trace> traces, Collection<Target> targets) {
for (Trace t : traces) {

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();
}