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