mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 09:49:23 +02:00
GP-38 Corrected ContextAction failure to display dialog (Closes #2860)
This commit is contained in:
parent
acf78878ce
commit
252ec48a44
1 changed files with 2 additions and 5 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue