Skip to content
Snippets Groups Projects
Commit 1d3cbca1 authored by Matthew McGill's avatar Matthew McGill
Browse files

Clarifying comments added to insert before functions, and small fix to insertDataBitsBefore

Former-commit-id: 7aec0b11b9f4e9627415f1bd6d0a3589f854bea8
parent 0b278d25
No related branches found
No related tags found
No related merge requests found
......@@ -69,6 +69,10 @@ Instruction_t* insertAssemblyBefore(FileIR_t* virp, Instruction_t* first, string
first->SetOriginalAddressID(BaseObj_t::NOT_IN_DATABASE);
first->GetRelocations().clear();
first->SetIBTargets(NULL);
//Note that the instruction just inserted should have the same exception handling
//info as the instructions immediately around it.
//Thus the exception handling information (EhCallSite and EhProgram) are kept the
//same from the copy of first (unlike with relocations and IBT's).
virp->ChangeRegistryKey(first,next);
setInstructionAssembly(virp,first,assembly,next,target);
......@@ -99,7 +103,13 @@ Instruction_t* insertDataBitsBefore(FileIR_t* virp, Instruction_t* first, string
//"Null" out the original address (it should be as if the instruction was not in the database).
first->SetOriginalAddressID(BaseObj_t::NOT_IN_DATABASE);
first->GetRelocations().clear();
first->SetIBTargets(NULL);
//Note that the instruction just inserted should have the same exception handling
//info as the instructions immediately around it.
//Thus the exception handling information (EhCallSite and EhProgram) are kept the
//same from the copy of first (unlike with relocations and IBT's).
virp->ChangeRegistryKey(first,next);
setInstructionDataBits(virp,first,dataBits,next,target);
return next;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment