tools/import-trace: added ElfImporter
The ElfImporter is not a real trace importer, but we locate it into the import-trace utility, since here the infrastructure is already in place to import things related to an elf binary into the database. The ElfImporter calls objdump and dissassembles an elf binary and imports the results into the database. Change-Id: I6e35673c8dbee3b7e8dfc7549d10e5dca9b55935
This commit is contained in:
committed by
Gerrit Code Review
parent
c87075e598
commit
148b09be2e
@ -13,6 +13,7 @@
|
||||
#include "RegisterImporter.hpp"
|
||||
#include "RandomJumpImporter.hpp"
|
||||
#include "AdvancedMemoryImporter.hpp"
|
||||
#include "ElfImporter.hpp"
|
||||
#endif
|
||||
|
||||
|
||||
@ -140,6 +141,8 @@ int main(int argc, char *argv[]) {
|
||||
importer = new RandomJumpImporter();
|
||||
} else if (imp == "AdvancedMemoryImporter") {
|
||||
importer = new AdvancedMemoryImporter();
|
||||
} else if (imp == "ObjdumpImporter" || imp == "objdump" || imp == "ElfImporter") {
|
||||
importer = new ElfImporter();
|
||||
#endif
|
||||
} else {
|
||||
LOG << "Unkown import method: " << imp << endl;
|
||||
|
||||
Reference in New Issue
Block a user