mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-06 03:50:02 +02:00
fix for concurrent access exceptions
This commit is contained in:
parent
cd32ab60be
commit
c4f1ec8e0a
6 changed files with 71 additions and 50 deletions
|
@ -120,14 +120,18 @@ public class DbgManager2Impl extends DbgManagerImpl {
|
|||
|
||||
@Override
|
||||
public DbgProcessImpl getCurrentProcess() {
|
||||
DebugProcessId id = getSystemObjects().getCurrentProcessId();
|
||||
return processes.get(id);
|
||||
synchronized (processes) {
|
||||
DebugProcessId id = getSystemObjects().getCurrentProcessId();
|
||||
return processes.get(id);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public DbgThreadImpl getCurrentThread() {
|
||||
DebugThreadId id = getSystemObjects().getCurrentThreadId();
|
||||
return threads.get(id);
|
||||
synchronized (threads) {
|
||||
DebugThreadId id = getSystemObjects().getCurrentThreadId();
|
||||
return threads.get(id);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue