mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-24 13:21:22 +08:00
Merge remote-tracking branch 'origin/patch'
This commit is contained in:
@@ -1196,7 +1196,7 @@ public class FlatProgramAPI {
|
||||
* @return the last instruction in the current program
|
||||
*/
|
||||
public final Instruction getLastInstruction() {
|
||||
Address address = currentProgram.getMinAddress();
|
||||
Address address = currentProgram.getMaxAddress();
|
||||
InstructionIterator iterator = currentProgram.getListing().getInstructions(address, false);
|
||||
if (iterator.hasNext()) {
|
||||
return iterator.next();
|
||||
|
||||
Reference in New Issue
Block a user