mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-19 16:40:38 -09:00
GP-38 Corrected ContextAction failure to display dialog (Closes #2860)
This commit is contained in:
@@ -302,15 +302,12 @@ public class DisassemblerPlugin extends Plugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setDefaultContext(ListingActionContext context) {
|
public void setDefaultContext(ListingActionContext context) {
|
||||||
|
|
||||||
Program contextProgram = context.getProgram();
|
Program contextProgram = context.getProgram();
|
||||||
Register baseContextReg = contextProgram.getLanguage().getContextBaseRegister();
|
Register baseContextReg = contextProgram.getLanguage().getContextBaseRegister();
|
||||||
if (baseContextReg != null && baseContextReg.hasChildren()) {
|
if (baseContextReg != null && baseContextReg.hasChildren()) {
|
||||||
return;
|
tool.showDialog(new ProcessorStateDialog(contextProgram.getProgramContext()),
|
||||||
|
context.getComponentProvider());
|
||||||
}
|
}
|
||||||
|
|
||||||
tool.showDialog(new ProcessorStateDialog(contextProgram.getProgramContext()),
|
|
||||||
context.getComponentProvider());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean hasContextRegisters(Program currentProgram) {
|
public boolean hasContextRegisters(Program currentProgram) {
|
||||||
|
|||||||
Reference in New Issue
Block a user