Skip to content

Commit

Permalink
Make clang-format happy
Browse files Browse the repository at this point in the history
  • Loading branch information
aewag committed Jun 29, 2022
1 parent c4ee61a commit d51402f
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions pintool/addrtrace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,8 @@ ADDRINT execute_commands(const std::string command, short pos,
std::string tmp = "0x" + (std::string)buffer;
DEBUG(1) std::cout << " tmp is " << tmp << std::endl;
DEBUG(1)
std::cout << " func is " << std::hex << strtol(tmp.c_str(), NULL, 0)
<< std::endl;
std::cout << " func is " << std::hex << strtol(tmp.c_str(), NULL, 0)
<< std::endl;

return ((ADDRINT)strtol(tmp.c_str(), NULL, 0));
}
Expand Down Expand Up @@ -1180,9 +1180,8 @@ std::string getcallstack(THREADID threadid) {
if (name == (j.name)) {
unique_cs << i.ipaddr - j.baseaddr;
DEBUG(1)
std::cout << name << " " << j.baseaddr << " "
<< unique_cs.str() << " " << i.ipaddr
<< std::endl;
std::cout << name << " " << j.baseaddr << " " << unique_cs.str()
<< " " << i.ipaddr << std::endl;
}
}
}
Expand Down Expand Up @@ -1649,7 +1648,7 @@ VOID RecordMemRead(THREADID threadid, VOID *ip, VOID *addr, bool fast_recording,
if (!Record)
return;
DEBUG(1)
std::cout << "ip in memread is " << (uint64_t)ip << " " << std::endl;
std::cout << "ip in memread is " << (uint64_t)ip << " " << std::endl;
PIN_MutexLock(&lock);
entry_t entry;
entry.type = READ;
Expand Down Expand Up @@ -1853,8 +1852,8 @@ VOID RecordFunctionExit_unlocked(THREADID threadid, ADDRINT ins, ADDRINT target,
entry_t entry;
entry.type = FUNC_EXIT;
DEBUG(1)
std::cout << " TOP from func EXIT is "
<< PIN_GetContextReg(ctxt, REG_STACK_PTR) << std::endl;
std::cout << " TOP from func EXIT is "
<< PIN_GetContextReg(ctxt, REG_STACK_PTR) << std::endl;
entry.ip = (void *)ins; // getLogicalAddress((void *)((uintptr_t)ins));
entry.data = getLogicalAddress((void *)((uintptr_t)target));
DEBUG(2)
Expand Down

0 comments on commit d51402f

Please sign in to comment.