mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 10:19:23 +02:00
GP-406: Central Debug Console for problems and actions
This commit is contained in:
parent
2466f85ea8
commit
a1cfeebcc9
39 changed files with 2101 additions and 837 deletions
|
@ -165,7 +165,7 @@ public class TraceDomainObjectListener implements DomainObjectListener {
|
|||
for (DomainObjectChangeRecord rec : ev) {
|
||||
if (rec.getEventType() == DomainObject.DO_OBJECT_RESTORED) {
|
||||
restoredHandler.accept(rec);
|
||||
TimedMsg.info(this, " Done: OBJECT_RESTORED");
|
||||
TimedMsg.debug(this, " Done: OBJECT_RESTORED");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -328,14 +328,16 @@ public class DefaultTraceTimeViewport implements TraceTimeViewport {
|
|||
|
||||
@Override
|
||||
public <T> T getTop(Function<Long, T> func) {
|
||||
synchronized (ordered) {
|
||||
for (Range<Long> rng : ordered) {
|
||||
T t = func.apply(rng.upperEndpoint());
|
||||
if (t != null) {
|
||||
return t;
|
||||
try (LockHold hold = trace.lockRead()) {
|
||||
synchronized (ordered) {
|
||||
for (Range<Long> rng : ordered) {
|
||||
T t = func.apply(rng.upperEndpoint());
|
||||
if (t != null) {
|
||||
return t;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue