Skip to content

Commit

Permalink
[BUGFIX] Removed unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
hasherezade committed Dec 1, 2024
1 parent 471d292 commit e246f20
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions TinyTracer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,6 @@ std::string dumpContext(const std::string& disasm, const CONTEXT* ctx)
spVal = Address;
}
ADDRINT prev = 0;
REG changedReg = REG_STACK_PTR; //last changed
for (size_t i = 0; i < regsCount; i++) {
REG reg = regs[i];
const ADDRINT Address = (ADDRINT)PIN_GetContextReg(ctx, reg);
Expand All @@ -248,7 +247,6 @@ std::string dumpContext(const std::string& disasm, const CONTEXT* ctx)
}
prev = values[i];
values[i] = Address;
changedReg = reg;
if (reg == REG_GFLAGS) {
ss << reg_names[i] << " = b" << std::bitset<8>(Address) << " " << flagsToStr(prev, Address) << "; ";
continue;
Expand Down

0 comments on commit e246f20

Please sign in to comment.