import-trace: diagnose missing ELF in RandomJumpImporter
Change-Id: Iede6947713f9e857e1d7c96f8d49e155ac4f59e5
This commit is contained in:
@ -62,6 +62,10 @@ bool RandomJumpImporter::handle_ip_event(fail::simtime_t curtime, instruction_co
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!m_elf) {
|
||||||
|
LOG << "Please give an ELF binary as parameter (-e/--elf)." << std::endl;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
#if defined(BUILD_CAPSTONE_DISASSEMBLER)
|
#if defined(BUILD_CAPSTONE_DISASSEMBLER)
|
||||||
disas.reset(new CapstoneDisassembler(m_elf));
|
disas.reset(new CapstoneDisassembler(m_elf));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user