Hello

i have been working on a small application named 'Examine'. Its
features are basically 3 tools:

1) 'memcheck' (same name than valgrind's tool): a memory leak detector
with some memory checks for Windows,

2) 'depends': a PE file dependency viewer (CLI and GUI) ala dependency walker,

3) 'view': a PE file viewer to view the data values of the PE file.

Both 'depends' and 'view' tools can be run on Windows and Linux (and
any UNIX I think as Idon't use anything Linux-specific) but the
'memcheck' tool can only run on Windows.

The source code is hosted on github: https://github.com/vtorri/examine

It is a Work In Progress (tm) so it's not complete and certainly have
some bugs that I am not aware of.

If you want to give it a try, follow the instructions below.


INSTALLATION

1) Windows:

I've tested only with MSYS + win-builds

If gcc is installed in /opt/windows_64:

CFLAGS="-g -O0" ./configure --with-libbfd-prefix=/opt/windows_64

(./autogen.sh instead of ./configure, the first time)

then make && make install

2) Linux:

./configure
make && make install


USAGE

1) 'memcheck' tool

Of course it can not be run on Linux (use valgrind on linux...). The
usage is like valgrind:

examine the_app.exe the_app_arguments

the_app.exe should be compiled with -g -O0 to have a useful backtrace.
I use libbfd to get the backtrace (-On with n >0 adds
-fomit-frame-pointer)

The output mimics the valgrind output.

Currently supported functions: malloc, calloc, realloc, free,
HeapAlloc and HeapFree. More will be added soon

I have provided a test example, named examine_test :

examine /usr/local/examine_test

With that test, the output is the following (mimic also the valgrind
ouptput) : http://codepad.org/uRR1HnYm

2) 'depends' tool

It tries to mimic Dependency Walker

you have 3 possible outputs:

a) text output, with the dependecy tree:

examine -q --tool=depends pe_file

It should work on Windows and linux

b) text output, with the dependency list (like ldd):

examine -q --tool=depends --list pe_file

It should work on Windows and linux

c) GUI output, with a GUI which mimics Dependency Walker

examine -q --tool=depends --gui pe_file

The GUI is not perfect and should actually not be tried right now (it
can be very very slow)

2) 'view' tool

It views the content of  a PE file

examine -q --tool=view pe_file

It should work on Windows and Linux. There is also a GUI but not
really finished yet



Feel free to give remarks, ideas, etc...

thank you

Vincent Torri

------------------------------------------------------------------------------
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to