Skip to content

Commit

Permalink
Disabled relocation debugging output
Browse files Browse the repository at this point in the history
  • Loading branch information
John Detter committed Jun 20, 2016
1 parent 2b86eb4 commit 4b3287f
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions dyninstAPI/src/codegen-x86.C
Original file line number Diff line number Diff line change
Expand Up @@ -1175,17 +1175,11 @@ bool insnCodeGen::modifyData(Address targetAddr, instruction &insn, codeGen &gen
const unsigned char* origInsnStart = origInsn;
// unsigned insnType = insn.type();
unsigned insnSz = insn.size();
printf("Original instruction:");
int x;
for(x = 0;x < insnSz;x++)
printf(" %x", origInsn[x]);
printf("\n");
Address from = gen.currAddr();

bool is_data_abs64 = false;
signed long newDisp = targetAddr - from;
GET_PTR(newInsn, gen);
const unsigned char* newInsnStart = newInsn;

Register pointer_reg = (Register)-1;

Expand Down Expand Up @@ -1273,12 +1267,6 @@ bool insnCodeGen::modifyData(Address targetAddr, instruction &insn, codeGen &gen
while (origInsn - origInsnStart < (int)insnSz)
*newInsn++ = *origInsn++;

printf("New instruction:");

for(x = 0;x < insnSz;x++)
printf(" %x", newInsnStart[x]);
printf("\n");

SET_PTR(newInsn, gen);

#if defined(arch_x86_64)
Expand Down

0 comments on commit 4b3287f

Please sign in to comment.