util: Added disassembler using objdump tool.
The disassembler disassembles an elf file with an external objdump tool. The architecture specific objdump must be configured via cmake (ARCH_TOOL_PREFIX), e.g. arm-none-eabi- for arm-none-eabi-objdump.
This commit is contained in:
@ -72,10 +72,12 @@ if(BUILD_X86)
|
||||
set(SRCS ${SRCS}
|
||||
x86/Architecture.cc
|
||||
)
|
||||
set(ARCH_TOOL_PREFIX "" CACHE PATH "Setup prefix for binutils, e.g., arm-none-eabi- or tricore-, ..")
|
||||
elseif(BUILD_ARM)
|
||||
set(SRCS ${SRCS}
|
||||
arm/Architecture.cc
|
||||
)
|
||||
set(ARCH_TOOL_PREFIX "arm-none-eabi-" CACHE PATH "Setup prefix for binutils, e.g., arm-none-eabi- or tricore-, ..")
|
||||
endif(BUILD_X86)
|
||||
|
||||
# Don't include these sources if perf-stuff is disabled
|
||||
|
||||
Reference in New Issue
Block a user