mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-12-13 06:33:02 +00:00
GP-3198: Fixing a bug in FlatProgramAPI.getLastInstruction()
(Closes #5090)
This commit is contained in:
parent
cbdb6955ed
commit
cc6abb596d
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user