alschwalm / dwarfexport Goto Github PK
View Code? Open in Web Editor NEWExport dwarf debug information from IDA Pro
License: GNU Lesser General Public License v2.1
Export dwarf debug information from IDA Pro
License: GNU Lesser General Public License v2.1
Add support to IDA 7.0 and this tool will be much better.
Hi
I added the plx and pl64 files to my plugins directory, but the plugin does not appear in the Edit > Plugins menu. I am using IDA Version 7.0.170914 Windows x64 (64-bit address size)
Thanks
NMAKE : fatal error U1077: cl.exe . return code 0x2
Many variables are undefined such as idati. I found that idati is removed in ida70. So is it still don't support ida7 on windows platform?
After night of pressing make
I'm got this:
root@Debian-913-stretch-64-minimal:/opt/dwarfexport/bin# file dwarfexport.plx64
dwarfexport.plx64: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, BuildID[sha1]=a1a0c79cac393990dab5d86e463a63de2285cd51, not stripped
root@Debian-913-stretch-64-minimal:/opt/dwarfexport/bin# ldd dwarfexport.plx64
linux-vdso.so.1 (0x00007fff09138000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fbe6b09f000)
libdwarf.so.1 => /usr/lib/x86_64-linux-gnu/libdwarf.so.1 (0x00007fbe6afe3000)
libelf.so.1 => /usr/lib/x86_64-linux-gnu/libelf.so.1 (0x00007fbe6afc8000)
libida64.so => /usr/lib/x86_64-linux-gnu/libida64.so (0x00007fbe6ad9e000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fbe6abd1000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fbe6abb7000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fbe6a9f0000)
/lib64/ld-linux-x86-64.so.2 (0x00007fbe6b119000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fbe6a9d3000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fbe6a88f000)
root@Debian-913-stretch-64-minimal:/opt/dwarfexport/bin#
my Makefile was next:
IDASDK_PATH=/opt/IDA75/SDK/idasdk75
IDA_PATH=/opt/IDA75
CXX ?= g++
CXXFLAGS=-m32 -fPIC -shared -Wall -Wextra -std=c++11 -Wl,-rpath -Wl,LIBDIR
CXXFLAGS64=-m64 -fno-PIE -fPIC -Wall -Wextra -std=c++11 -fno-permissive -Wno-sign-compare -Wno-class-memaccess -Wno-deprecated-copy -lpthread -shared -Wl,-rpath -Wl,LIBDIR
#LDFLAGS+=-static-libgcc -static-libstdc++ -static
LIBS=-lida lib/libelf32.a lib/libdwarf32.a
LIBS64=-ldwarf -lelf -lida64
#/usr/local/lib/libdwarf.a /usr/local/lib/libelf.a
INCLUDES=-I$(IDASDK_PATH)/include -I$(IDA_PATH)/plugins/hexrays_sdk/include -I/opt/IDA75/SDK/idasdk75/include -I/opt/IDA75 -I/usr/local/include -I/opt/dwarfexport/libdwarf-code/build/libdwarf -L/opt/IDA75/SDK/idasdk75/lib/x64_linux_gcc_64 -I/opt/IDA75/SDK/idasdk75/plugins/ -L/opt/dwarfexport/lib64
DWARFEXPORT_SRC = $(wildcard src/*.cpp)
#noall: bin/dwarfexport.plx bin/dwarfexport.plx64
all: bin/dwarfexport.plx64
bin/dwarfexport.plx: $(DWARFEXPORT_SRC)
$(CXX) $(LDFLAGS) $(DWARFEXPORT_SRC) $(CXXFLAGS) \
-L. \
-L$(IDA_PATH) \
$(INCLUDES) \
-D__LINUX__ $(LIBS) -o bin/dwarfexport.plx
bin/dwarfexport.plx64: $(DWARFEXPORT_SRC)
$(CXX) $(LDFLAGS) $(DWARFEXPORT_SRC) $(CXXFLAGS64) \
-L. \
-L$(IDA_PATH) \
$(INCLUDES) \
-D__LINUX__ -D__X64 -fno-permissive -D__EA64__ $(LIBS64) -o bin/dwarfexport.plx64
#-D__LINUX__ -D__X64 -D__EA64__ $(LIBS) -o bin/dwarfexport.plx64
clean:
rm -f bin/dwarfexport.plx bin/dwarfexport.plx64
My question: how to do this for windows?
p.s. or, maybe, somebody can changes with me?) lin64 for win64 ?
Hello,
Thank you for your project.
Looks like I found some kind of issue:
I'm trying to build dwarf info together with sources.
Ida 6.8 + ARM Decompiler 2.2.0
as the output I have dbg file with some data and 0 size for the source file.
In the dialog box I checked option Use Decompiler
Best regards, Alexey
I have found some cases where the sections get corrupted and the symbols added are unreadable.
The most simple way to replicate the bug is to take a Go binary (linux, 64 bit) and see what happens. I have attached a sample binary (before and after loading it in IDA and immediately applying dwarfexport)
Check with readelf -S test_binary.dbg
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.