mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
test
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
/* ###
|
/* ###
|
||||||
* IP: GHIDRA
|
* IP: GHIDRA
|
||||||
* REVIEWED: YES
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -16,15 +15,15 @@
|
|||||||
*/
|
*/
|
||||||
package ghidra.app.plugin.core.byteviewer;
|
package ghidra.app.plugin.core.byteviewer;
|
||||||
|
|
||||||
|
import java.math.BigInteger;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
import ghidra.app.plugin.core.format.ByteBlock;
|
import ghidra.app.plugin.core.format.ByteBlock;
|
||||||
import ghidra.app.plugin.core.format.ByteEditInfo;
|
import ghidra.app.plugin.core.format.ByteEditInfo;
|
||||||
import ghidra.framework.options.SaveState;
|
import ghidra.framework.options.SaveState;
|
||||||
import ghidra.program.model.address.Address;
|
import ghidra.program.model.address.Address;
|
||||||
|
|
||||||
import java.math.BigInteger;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Helper class to manage changes within byte blocks; determines what offsets
|
* Helper class to manage changes within byte blocks; determines what offsets
|
||||||
* have changed so the changes can be rendered properly in the Byte Viewer.
|
* have changed so the changes can be rendered properly in the Byte Viewer.
|
||||||
@@ -40,6 +39,8 @@ class ByteBlockChangeManager {
|
|||||||
private static String OLD_VALUE = "OldValue";
|
private static String OLD_VALUE = "OldValue";
|
||||||
private static String NEW_VALUE = "NewValue";
|
private static String NEW_VALUE = "NewValue";
|
||||||
|
|
||||||
|
private int dummy = 4;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Construct new change manager.
|
* Construct new change manager.
|
||||||
*/
|
*/
|
||||||
@@ -146,7 +147,8 @@ class ByteBlockChangeManager {
|
|||||||
private boolean contains(Address blockAddr, BigInteger offset) {
|
private boolean contains(Address blockAddr, BigInteger offset) {
|
||||||
for (int i = 0; i < changeList.size(); i++) {
|
for (int i = 0; i < changeList.size(); i++) {
|
||||||
ByteEditInfo edit = changeList.get(i);
|
ByteEditInfo edit = changeList.get(i);
|
||||||
if (edit.getBlockAddress().compareTo(blockAddr) == 0 && edit.getOffset().equals(offset)) {
|
if (edit.getBlockAddress().compareTo(blockAddr) == 0 &&
|
||||||
|
edit.getOffset().equals(offset)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user