|
@@ -17,6 +17,7 @@
|
|
|
#include <pthread.h>
|
|
|
|
|
|
const char *disassembler_style;
|
|
|
+const char *objdump_path;
|
|
|
|
|
|
static struct ins *ins__find(const char *name);
|
|
|
static int disasm_line__parse(char *line, char **namep, char **rawp);
|
|
@@ -820,9 +821,10 @@ fallback:
|
|
|
dso, dso->long_name, sym, sym->name);
|
|
|
|
|
|
snprintf(command, sizeof(command),
|
|
|
- "objdump %s%s --start-address=0x%016" PRIx64
|
|
|
+ "%s %s%s --start-address=0x%016" PRIx64
|
|
|
" --stop-address=0x%016" PRIx64
|
|
|
" -d %s %s -C %s|grep -v %s|expand",
|
|
|
+ objdump_path ? objdump_path : "objdump",
|
|
|
disassembler_style ? "-M " : "",
|
|
|
disassembler_style ? disassembler_style : "",
|
|
|
map__rip_2objdump(map, sym->start),
|