(capstone) feat: add capstone disassembler to tools/import-trace/
This commit is contained in:
committed by
Robin Thunig
parent
d04afaac54
commit
f7f982fec5
@ -97,7 +97,7 @@ void ElfReader::setup(const char* path) {
|
||||
printf("Error: wrong Section to read\n");
|
||||
} else {
|
||||
process_section(&sec_hdr, buff);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
free(buff);
|
||||
@ -218,6 +218,7 @@ bool ElfReader::read_ELF_file_header(FILE *fp, Elf64_Ehdr *filehdr)
|
||||
return false;
|
||||
}
|
||||
|
||||
m_machine = filehdr32.e_machine;
|
||||
m_elfclass = filehdr32.e_ident[EI_CLASS];
|
||||
if (m_elfclass == ELFCLASS32) {
|
||||
Elf32to64_Ehdr(&filehdr32, filehdr);
|
||||
|
||||
@ -81,6 +81,8 @@ public:
|
||||
typedef container_t::const_iterator symbol_iterator;
|
||||
typedef container_t::const_iterator section_iterator;
|
||||
|
||||
int m_machine;
|
||||
int m_elfclass;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
@ -157,7 +159,6 @@ public:
|
||||
private:
|
||||
Logger m_log;
|
||||
std::string m_filename;
|
||||
int m_elfclass;
|
||||
|
||||
void setup(const char*);
|
||||
bool process_symboltable(FILE *fp, Elf64_Ehdr const *ehdr, int sect_num);
|
||||
|
||||
Reference in New Issue
Block a user