mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-29 05:50:04 +08:00
Fix monitor messages for constant propagation
This commit is contained in:
@@ -36,7 +36,7 @@ public class PropagateConstantReferences extends GhidraScript {
|
|||||||
public void run() throws Exception {
|
public void run() throws Exception {
|
||||||
long numInstructions = currentProgram.getListing().getNumInstructions();
|
long numInstructions = currentProgram.getListing().getNumInstructions();
|
||||||
monitor.initialize((int) (numInstructions));
|
monitor.initialize((int) (numInstructions));
|
||||||
monitor.setMessage("Constant Propogation Markup");
|
monitor.setMessage("Constant Propagation Markup");
|
||||||
|
|
||||||
// set up the address set to restrict processing
|
// set up the address set to restrict processing
|
||||||
AddressSet restrictedSet =
|
AddressSet restrictedSet =
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ public class PropagateX86ConstantReferences extends GhidraScript {
|
|||||||
public void run() throws Exception {
|
public void run() throws Exception {
|
||||||
long numInstructions = currentProgram.getListing().getNumInstructions();
|
long numInstructions = currentProgram.getListing().getNumInstructions();
|
||||||
monitor.initialize((int) (numInstructions));
|
monitor.initialize((int) (numInstructions));
|
||||||
monitor.setMessage("Constant Propogation Markup");
|
monitor.setMessage("Constant Propagation Markup");
|
||||||
|
|
||||||
// set up the address set to restrict processing
|
// set up the address set to restrict processing
|
||||||
AddressSet restrictedSet = new AddressSet(currentSelection);
|
AddressSet restrictedSet = new AddressSet(currentSelection);
|
||||||
|
|||||||
Reference in New Issue
Block a user