mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 01:39:21 +02:00
Merge remote-tracking branch 'origin/GP-0-dragonmacher-test-fixes-8-27-25'
This commit is contained in:
commit
3a243ed964
2 changed files with 7 additions and 3 deletions
|
@ -31,6 +31,7 @@ import ghidra.app.cmd.disassemble.DisassembleCommand;
|
|||
import ghidra.app.plugin.core.bookmark.BookmarkEditCmd;
|
||||
import ghidra.app.plugin.core.codebrowser.CodeBrowserPlugin;
|
||||
import ghidra.app.services.GoToService;
|
||||
import ghidra.app.util.viewer.field.AddressFieldFactory;
|
||||
import ghidra.app.util.viewer.field.FunctionSignatureFieldFactory;
|
||||
import ghidra.framework.cmd.CompoundCmd;
|
||||
import ghidra.framework.plugintool.PluginTool;
|
||||
|
@ -159,6 +160,9 @@ public class NextPrevCodeUnitPluginTest extends AbstractGhidraHeadedIntegrationT
|
|||
@Test
|
||||
public void testSearchInstruction() throws Exception {
|
||||
|
||||
// Note: if we don't start on the address field, then the first call to nextInstruction()
|
||||
// will go to the address field.
|
||||
cb.goToField(addr("0x1001000"), AddressFieldFactory.FIELD_NAME, 0, 0);
|
||||
assertAddress("0x1001000");
|
||||
nextInstruction();
|
||||
assertAddress("0x1002239");
|
||||
|
|
|
@ -102,7 +102,7 @@ public class DecompilerPanel extends JPanel implements FieldMouseListener, Field
|
|||
|
||||
private Color originalBackgroundColor;
|
||||
private boolean useNonFunctionColor = false;
|
||||
private boolean navitationEnabled = true;
|
||||
private boolean navigationEnabled = true;
|
||||
|
||||
private DecompilerHoverProvider decompilerHoverProvider;
|
||||
|
||||
|
@ -760,7 +760,7 @@ public class DecompilerPanel extends JPanel implements FieldMouseListener, Field
|
|||
* @param enabled false disabled mouse function navigation
|
||||
*/
|
||||
void setMouseNavigationEnabled(boolean enabled) {
|
||||
navitationEnabled = enabled;
|
||||
navigationEnabled = enabled;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -791,7 +791,7 @@ public class DecompilerPanel extends JPanel implements FieldMouseListener, Field
|
|||
|
||||
private void tryToGoto(FieldLocation location, Field field, MouseEvent event,
|
||||
boolean newWindow) {
|
||||
if (!navitationEnabled) {
|
||||
if (!navigationEnabled) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue