mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 09:49:23 +02:00
GP-0: Post-merge fixes for tests involving assembly.
This commit is contained in:
parent
28bad6d430
commit
d9476f62e7
2 changed files with 12 additions and 5 deletions
|
@ -386,7 +386,7 @@ public class PopulateDemoTrace extends GhidraScript {
|
|||
* A call to "exit" results in the immediate termination of the calling thread.
|
||||
*/
|
||||
Assembler asm = Assemblers.getAssembler(trace.getFixedProgramView(snap));
|
||||
InstructionBlock mainBlock = asm.assemble(mainLabel.getAddress(), //
|
||||
Iterator<Instruction> mainBlock = asm.assemble(mainLabel.getAddress(), //
|
||||
"PUSH RBP", //
|
||||
"MOV RBP,RSP", //
|
||||
"CALL clone", //
|
||||
|
@ -404,7 +404,7 @@ public class PopulateDemoTrace extends GhidraScript {
|
|||
"MOV dword ptr [RSP+8],0x21646c", //
|
||||
"CALL exit" //
|
||||
);
|
||||
mainBlock.forEach(mainInstructions::add);
|
||||
mainBlock.forEachRemaining(mainInstructions::add);
|
||||
|
||||
/**
|
||||
* Stub out "clone"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue