mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
GP-2303: fixes
This commit is contained in:
@@ -227,7 +227,7 @@ public class DbgModel2TargetObjectImpl extends DefaultTargetObject<TargetObject,
|
||||
}
|
||||
if (value != null && !value.equals("")) {
|
||||
attrs.put(VALUE_ATTRIBUTE_NAME, value);
|
||||
if (!kind.equals(ModelObjectKind.OBJECT_PROPERTY_ACCESSOR)) {
|
||||
if (!Objects.equals(kind, ModelObjectKind.OBJECT_PROPERTY_ACCESSOR)) {
|
||||
synchronized (attributes) {
|
||||
String oldval = (String) attributes.get(DISPLAY_ATTRIBUTE_NAME);
|
||||
String newval = getName() + " : " + value;
|
||||
@@ -419,9 +419,6 @@ public class DbgModel2TargetObjectImpl extends DefaultTargetObject<TargetObject,
|
||||
|
||||
@Override
|
||||
public DbgModelTargetSession getParentSession() {
|
||||
if (this instanceof DbgModelTargetSession) {
|
||||
return (DbgModelTargetSession) this;
|
||||
}
|
||||
DbgModelTargetObject test = (DbgModelTargetObject) parent;
|
||||
while (test != null && !(test.getProxy() instanceof DbgModelTargetSession)) {
|
||||
test = (DbgModelTargetObject) test.getParent();
|
||||
|
||||
Reference in New Issue
Block a user