mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-06-04 06:23:45 +08:00
Merge remote-tracking branch
'origin/GP-3191-dragonmacher-patch-cast-exception' (Closes #5074)
This commit is contained in:
+7
-6
@@ -40,12 +40,7 @@ import ghidra.program.model.mem.MemBuffer;
|
|||||||
* The API for instruction assembly is available from {@link Assemblers}. For data assembly, the API
|
* The API for instruction assembly is available from {@link Assemblers}. For data assembly, the API
|
||||||
* is in {@link DataType#encodeRepresentation(String, MemBuffer, Settings, int)}.
|
* is in {@link DataType#encodeRepresentation(String, MemBuffer, Settings, int)}.
|
||||||
*/
|
*/
|
||||||
@PluginInfo(
|
@PluginInfo(status = PluginStatus.RELEASED, packageName = CorePluginPackage.NAME, category = PluginCategoryNames.PATCHING, shortDescription = "Assembler", description = "This plugin provides functionality for assembly patching. " +
|
||||||
status = PluginStatus.RELEASED,
|
|
||||||
packageName = CorePluginPackage.NAME,
|
|
||||||
category = PluginCategoryNames.PATCHING,
|
|
||||||
shortDescription = "Assembler",
|
|
||||||
description = "This plugin provides functionality for assembly patching. " +
|
|
||||||
"The assembler supports most processor languages also supported by the " +
|
"The assembler supports most processor languages also supported by the " +
|
||||||
"disassembler. Depending on the particular processor, your mileage may vary. " +
|
"disassembler. Depending on the particular processor, your mileage may vary. " +
|
||||||
"We are in the process of testing and improving support for all our processors. " +
|
"We are in the process of testing and improving support for all our processors. " +
|
||||||
@@ -71,6 +66,9 @@ public class AssemblerPlugin extends ProgramPlugin {
|
|||||||
if (!super.isEnabledForContext(context)) {
|
if (!super.isEnabledForContext(context)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (!(context instanceof ListingActionContext)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
ListingActionContext lac = (ListingActionContext) context;
|
ListingActionContext lac = (ListingActionContext) context;
|
||||||
return !lac.getNavigatable().isDynamic();
|
return !lac.getNavigatable().isDynamic();
|
||||||
}
|
}
|
||||||
@@ -80,6 +78,9 @@ public class AssemblerPlugin extends ProgramPlugin {
|
|||||||
if (!super.isAddToPopup(context)) {
|
if (!super.isAddToPopup(context)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (!(context instanceof ListingActionContext)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
ListingActionContext lac = (ListingActionContext) context;
|
ListingActionContext lac = (ListingActionContext) context;
|
||||||
return !lac.getNavigatable().isDynamic();
|
return !lac.getNavigatable().isDynamic();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user