mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-31 19:28:34 +08:00
GP-1824: renamed per review
This commit is contained in:
+2
-2
@@ -35,7 +35,7 @@ import ghidra.program.model.address.Address;
|
||||
type = DbgModelTargetSymbolContainerImpl.class),
|
||||
@TargetAttributeType(name = TargetObject.VALUE_ATTRIBUTE_NAME, type = Address.class),
|
||||
@TargetAttributeType(name = TargetSymbol.SIZE_ATTRIBUTE_NAME, type = long.class),
|
||||
@TargetAttributeType(name = TargetBreakpointSpec.KEY_ATTRIBUTE_NAME, type = String.class),
|
||||
@TargetAttributeType(name = TargetBreakpointSpec.AS_BPT_ATTRIBUTE_NAME, type = String.class),
|
||||
@TargetAttributeType(name = "Name", type = String.class),
|
||||
@TargetAttributeType(name = "Size", type = long.class),
|
||||
@TargetAttributeType(name = "TypeId", type = int.class),
|
||||
@@ -71,7 +71,7 @@ public class DbgModelTargetSymbolImpl extends DbgModelTargetObjectImpl
|
||||
NAMESPACE_ATTRIBUTE_NAME, symbols, //
|
||||
VALUE_ATTRIBUTE_NAME, value, //
|
||||
SIZE_ATTRIBUTE_NAME, size, //
|
||||
TargetBreakpointSpec.KEY_ATTRIBUTE_NAME, //
|
||||
TargetBreakpointSpec.AS_BPT_ATTRIBUTE_NAME, //
|
||||
moduleName + "!" + symbol.getName(), //
|
||||
"Name", symbol.getName(), //
|
||||
"Size", size, //
|
||||
|
||||
+2
-2
@@ -30,7 +30,7 @@ import ghidra.program.model.address.Address;
|
||||
elements = {
|
||||
@TargetElementType(type = Void.class) },
|
||||
attributes = {
|
||||
@TargetAttributeType(name = TargetBreakpointSpec.KEY_ATTRIBUTE_NAME, type = String.class),
|
||||
@TargetAttributeType(name = TargetBreakpointSpec.AS_BPT_ATTRIBUTE_NAME, type = String.class),
|
||||
@TargetAttributeType(type = Void.class) })
|
||||
public class GdbModelTargetSymbol extends
|
||||
DefaultTargetObject<TargetObject, GdbModelTargetSymbolContainer> implements TargetSymbol {
|
||||
@@ -59,7 +59,7 @@ public class GdbModelTargetSymbol extends
|
||||
VALUE_ATTRIBUTE_NAME, value,
|
||||
SIZE_ATTRIBUTE_NAME, size,
|
||||
DISPLAY_ATTRIBUTE_NAME, symbol.getName(),
|
||||
TargetBreakpointSpec.KEY_ATTRIBUTE_NAME, symbol.getName()),
|
||||
TargetBreakpointSpec.AS_BPT_ATTRIBUTE_NAME, symbol.getName()),
|
||||
"Initialized");
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -36,7 +36,7 @@ import ghidra.program.model.address.Address;
|
||||
type = LldbModelTargetSymbolContainerImpl.class),
|
||||
@TargetAttributeType(name = TargetObject.VALUE_ATTRIBUTE_NAME, type = Address.class),
|
||||
@TargetAttributeType(name = TargetSymbol.SIZE_ATTRIBUTE_NAME, type = long.class),
|
||||
@TargetAttributeType(name = TargetBreakpointSpec.KEY_ATTRIBUTE_NAME, type = String.class),
|
||||
@TargetAttributeType(name = TargetBreakpointSpec.AS_BPT_ATTRIBUTE_NAME, type = String.class),
|
||||
@TargetAttributeType(name = "Name", type = String.class),
|
||||
@TargetAttributeType(name = "Size", type = long.class),
|
||||
@TargetAttributeType(name = "TypeId", type = int.class),
|
||||
@@ -75,7 +75,7 @@ public class LldbModelTargetSymbolImpl extends LldbModelTargetObjectImpl
|
||||
NAMESPACE_ATTRIBUTE_NAME, symbols, //
|
||||
VALUE_ATTRIBUTE_NAME, value, //
|
||||
SIZE_ATTRIBUTE_NAME, size, //
|
||||
TargetBreakpointSpec.KEY_ATTRIBUTE_NAME, getDescription(0) //
|
||||
TargetBreakpointSpec.AS_BPT_ATTRIBUTE_NAME, getDescription(0) //
|
||||
/*
|
||||
"Name", symbol.getName(), //
|
||||
"Size", size, //
|
||||
|
||||
+1
-1
@@ -1526,7 +1526,7 @@ public class DebuggerObjectsProvider extends ComponentProviderAdapter
|
||||
private void setText(ActionContext context) {
|
||||
breakpointDialog.setText("");
|
||||
TargetObject obj = getObjectFromContext(context);
|
||||
Object key = obj.getCachedAttribute(TargetBreakpointSpec.KEY_ATTRIBUTE_NAME);
|
||||
Object key = obj.getCachedAttribute(TargetBreakpointSpec.AS_BPT_ATTRIBUTE_NAME);
|
||||
if (key != null) {
|
||||
breakpointDialog.setText(key.toString());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user