mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-23 05:45:51 +08:00
Merge remote-tracking branch 'origin/GT-2896_ryanmkurtz_PR-649_bonbom1_update8051'
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
/* ###
|
||||
* IP: GHIDRA
|
||||
* REVIEWED: YES
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -35,7 +34,7 @@ public class Update8051 extends GhidraScript {
|
||||
}
|
||||
SymbolTable st = currentProgram.getSymbolTable();
|
||||
SymbolIterator iter = st.getDefinedSymbols();
|
||||
int count =0;
|
||||
int count = 0;
|
||||
while (iter.hasNext()) {
|
||||
Symbol symbol = iter.next();
|
||||
String spaceName = symbol.getAddress().getAddressSpace().getName();
|
||||
@@ -49,7 +48,7 @@ public class Update8051 extends GhidraScript {
|
||||
println("No address spaces found for " +SFR + ", "+ BITS + ", " + SFR_BITS + ".");
|
||||
}
|
||||
else {
|
||||
String str = (count > 1 ? " symbol to update." : " symbols to update.");
|
||||
String str = (count > 1 ? " symbols to update." : " symbol to update.");
|
||||
println("Found " + count + str);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user