mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 02:39:44 +02:00
GP-740: minor bug fixes - mismatched paths, bad cast
This commit is contained in:
parent
6614b54248
commit
c1d5a86b39
2 changed files with 37 additions and 47 deletions
|
@ -19,7 +19,6 @@ import java.util.concurrent.CompletableFuture;
|
|||
|
||||
import agent.dbgeng.model.iface2.DbgModelTargetObject;
|
||||
import ghidra.async.AsyncUtils;
|
||||
import ghidra.dbg.agent.AbstractTargetObject;
|
||||
import ghidra.dbg.error.DebuggerIllegalArgumentException;
|
||||
import ghidra.dbg.target.TargetFocusScope;
|
||||
import ghidra.dbg.target.TargetObject;
|
||||
|
@ -65,8 +64,8 @@ public interface DbgModelTargetFocusScope extends DbgModelTargetObject, TargetFo
|
|||
setFocus(sel);
|
||||
return sel.select();
|
||||
}
|
||||
if (cur instanceof AbstractTargetObject) {
|
||||
AbstractTargetObject<?> def = (AbstractTargetObject<?>) cur;
|
||||
if (cur instanceof DbgModelTargetObject) {
|
||||
DbgModelTargetObject def = (DbgModelTargetObject) cur;
|
||||
cur = def.getParent();
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -681,14 +681,7 @@ public class DebuggerObjectsProvider extends ComponentProviderAdapter implements
|
|||
}
|
||||
|
||||
public ObjectContainer getContainerByPath(List<String> path) {
|
||||
String joinedPath = "";
|
||||
for (String segment : path) {
|
||||
joinedPath += segment + PATH_JOIN_CHAR;
|
||||
}
|
||||
if (joinedPath.length() > 1) {
|
||||
joinedPath = joinedPath.substring(0, joinedPath.length() - 1);
|
||||
}
|
||||
return targetMap.get(joinedPath);
|
||||
return targetMap.get(PathUtils.toString(path));
|
||||
}
|
||||
|
||||
static List<ObjectContainer> getContainersFromObjects(Map<String, ?> objectMap,
|
||||
|
@ -1592,8 +1585,7 @@ public class DebuggerObjectsProvider extends ComponentProviderAdapter implements
|
|||
}
|
||||
|
||||
@Override
|
||||
public void accessibilityChanged(TargetAccessConditioned object,
|
||||
boolean accessible) {
|
||||
public void accessibilityChanged(TargetAccessConditioned object, boolean accessible) {
|
||||
//this.access = accessibility.equals(TargetAccessibility.ACCESSIBLE);
|
||||
plugin.getTool().contextChanged(this);
|
||||
}
|
||||
|
@ -1613,8 +1605,7 @@ public class DebuggerObjectsProvider extends ComponentProviderAdapter implements
|
|||
}
|
||||
|
||||
@Override
|
||||
public void executionStateChanged(TargetExecutionStateful object,
|
||||
TargetExecutionState state) {
|
||||
public void executionStateChanged(TargetExecutionStateful object, TargetExecutionState state) {
|
||||
//this.state = state;
|
||||
plugin.getTool().contextChanged(this);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue