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:
Martin Hoffmann
2013-03-05 21:14:16 +01:00
parent 010137cf54
commit 1fe1dbb3ed
10 changed files with 2340 additions and 49 deletions

View File

@ -1,23 +1,25 @@
set(SRCS
ElfReader.cc
ElfReader.hpp
Demangler.hpp
Demangler.cc
elfinfo/elfinfo.cc
elfinfo/elfinfo.h
gzstream/gzstream.C
gzstream/gzstream.h
Logger.cc
Logger.hpp
MemoryMap.hpp
ProtoStream.cc
ProtoStream.hpp
SynchronizedCounter.cc
SynchronizedCounter.hpp
SynchronizedMap.hpp
SynchronizedQueue.hpp
WallclockTimer.cc
WallclockTimer.hpp
ElfReader.cc
ElfReader.hpp
Demangler.hpp
Demangler.cc
Disassembler.hpp
Disassembler.cc
elfinfo/elfinfo.cc
elfinfo/elfinfo.h
gzstream/gzstream.C
gzstream/gzstream.h
Logger.cc
Logger.hpp
MemoryMap.hpp
ProtoStream.cc
ProtoStream.hpp
SynchronizedCounter.cc
SynchronizedCounter.hpp
SynchronizedMap.hpp
SynchronizedQueue.hpp
WallclockTimer.cc
WallclockTimer.hpp
)
# required by ProtoStream.cc:
@ -26,7 +28,7 @@ include_directories(${PROTOBUF_INCLUDE_DIRS})
include_directories(${CMAKE_CURRENT_BINARY_DIR})
# required by Synchronized*.cc:
find_package(Boost 1.42 COMPONENTS thread REQUIRED)
find_package(Boost 1.42 COMPONENTS thread regex REQUIRED)
include_directories(${Boost_INCLUDE_DIRS})
link_directories(${Boost_LIBRARY_DIRS})
@ -38,4 +40,4 @@ if(${LIB_IBERTY} STREQUAL LIB_IBERTY-NOTFOUND)
endif()
add_library(fail-util ${SRCS})
target_link_libraries(fail-util ${PROTOBUF_LIBRARY} ${Boost_THREAD_LIBRARY} ${LIB_IBERTY})
target_link_libraries(fail-util ${PROTOBUF_LIBRARY} ${Boost_LIBRARIES} ${LIB_IBERTY} )