updated vmprofiler dep, still coding profiles... going to deal with

virtual branching soon...
master
John Doe 3 years ago
parent 865bb1563c
commit 891a925be4

2
deps/vmprofiler vendored

@ -1 +1 @@
Subproject commit b560b35284d43a211c67b66d852c950649058b80 Subproject commit 599a685b9e1b8e2f36526a61a2f77ecdc49a7288

@ -173,18 +173,15 @@ bool emu_t::code_exec_callback(uc_engine* uc,
const auto vinstr = const auto vinstr =
vm::instrs::determine(obj->vip, obj->vsp, obj->cc_trace); vm::instrs::determine(obj->vip, obj->vsp, obj->cc_trace);
if (vinstr.mnemonic == vm::instrs::mnemonic_t::unknown) { zydis_rtn_t inst_stream;
zydis_rtn_t inst_stream; std::for_each(obj->cc_trace.m_instrs.begin(), obj->cc_trace.m_instrs.end(),
std::for_each(obj->cc_trace.m_instrs.begin(), [&](vm::instrs::emu_instr_t& instr) {
obj->cc_trace.m_instrs.end(), inst_stream.push_back({instr.m_instr});
[&](vm::instrs::emu_instr_t& instr) { });
inst_stream.push_back({instr.m_instr});
}); vm::utils::print(inst_stream);
vm::utils::print(inst_stream); if (vinstr.mnemonic != vm::instrs::mnemonic_t::unknown) {
std::printf("========\n");
std::getchar();
} else {
if (vinstr.imm.has_imm) if (vinstr.imm.has_imm)
std::printf("> %s %p\n", std::printf("> %s %p\n",
vm::instrs::get_profile(vinstr.mnemonic)->name.c_str(), vm::instrs::get_profile(vinstr.mnemonic)->name.c_str(),

Loading…
Cancel
Save