import-trace: reparse parameters after importer instantiation
Without this change, import-trace won't recognize, e.g., the -e and -t parameters if they come after a parameter that was added by the Importer: import-trace -i objdump --objdump arm-none-eabi-objdump -e B.elf -t C.tc [...] [import-trace 14:37:32] couldn't open trace.pb Change-Id: I9532b01e432055479c79d801b1ca2736a8fd21cc
This commit is contained in:
@ -156,12 +156,11 @@ int main(int argc, char *argv[]) {
|
||||
std::cerr << "Cannot call importers command line initialization!" << std::endl;
|
||||
exit(-1);
|
||||
}
|
||||
// Since the importer might have added command line options, we need to
|
||||
// reparse all arguments.
|
||||
cmd.parse();
|
||||
|
||||
if (cmd[HELP]) {
|
||||
// Since the importer might have added command line options,
|
||||
// we need to reparse all arguments in order to prevent a
|
||||
// segfault within optionparser
|
||||
cmd.parse();
|
||||
cmd.printUsage();
|
||||
exit(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user