X-Git-Url: https://git.siccegge.de//index.cgi?p=frida%2Ffrida.git;a=blobdiff_plain;f=src%2Fdisassembler%2Fllvm%2FLLVMDisassembler.cxx;h=e1570758da27831e02d1ca63fe85fa326297bda1;hp=e60e0c28bf635e0f0ac21f6fd34232f2ec4d3251;hb=30ce0f02e529603965d15a3afa71c4612dd40c4a;hpb=59181afa72eb08a7716d5bebd83b0be6a972e5f1 diff --git a/src/disassembler/llvm/LLVMDisassembler.cxx b/src/disassembler/llvm/LLVMDisassembler.cxx index e60e0c2..e157075 100644 --- a/src/disassembler/llvm/LLVMDisassembler.cxx +++ b/src/disassembler/llvm/LLVMDisassembler.cxx @@ -144,7 +144,7 @@ void LLVMDisassembler::disassemble() { LLVMFunction * current_function = remaining_functions.top(); remaining_functions.pop(); - LOG4CXX_INFO(logger, "Handling function " << current_function->getName()); + LOG4CXX_DEBUG(logger, "Handling function " << current_function->getName()); // if ("_start" != current_function->getName()) // continue; @@ -155,7 +155,7 @@ void LLVMDisassembler::disassemble() { LLVMBasicBlock * current_block = remaining_blocks.top(); remaining_blocks.pop(); - LOG4CXX_INFO(logger, "Handling Block starting at " << std::hex << current_block->getStartAddress()); + LOG4CXX_DEBUG(logger, "Handling Block starting at " << std::hex << current_block->getStartAddress()); uint64_t inst_size; uint64_t base_address; @@ -168,7 +168,6 @@ void LLVMDisassembler::disassemble() { if(llvm::MCDisassembler::Success == DisAsm->getInstruction(inst, inst_size, ref, current_address, nulls(), nulls())) { - LOG4CXX_DEBUG(logger, "Inst Size " << inst_size); uint8_t bytes[inst_size+2]; ref.readBytes(current_address, inst_size, bytes); @@ -209,13 +208,13 @@ void LLVMDisassembler::disassemble() { if (inst_size == 0 || MIA->isTerminator(inst) || MIA->isBranch(inst)) { current_block->setEndAddress(current_address + base_address); blocks.insert(std::make_pair(current_block->getStartAddress(), current_block)); - LOG4CXX_INFO(logger, "Finished Block at " << current_block->getEndAddress()); + LOG4CXX_DEBUG(logger, "Finished Block at " << current_block->getEndAddress()); break; } current_address += inst_size; } } - LOG4CXX_INFO(logger, "Finished function " << current_function->getName()); + LOG4CXX_DEBUG(logger, "Finished function " << current_function->getName()); } }