EDB - Symbols

# Generating Symbols

In order to have EDB take advantage of certain features (such as the Heap analyzer plugin), it will need some symbol maps to work with. The easiest way to create these is to run the edb_make_symbolmap.sh script, here's an example:

    $ ./edb_make_symbolmap.sh /lib/libc.so.6 > symbols/libc.so.6.map

The name of the symbol file IS IMPORTANT, a quick and dirty way to get all symbols from existing libraries on your system would be like this:

    $ for i in $(ls /usr/lib/*.so* /lib/*.so*); do ./edb_make_symbolmap.sh $i > symbols/`basename $i`.map; done

This will take a moment, but not that long and you will have symbols based on all libraries on your system. Note that the edb_make_symbolmap script will work on regular binaries as well, not just libraries. So if you are debugging an application, you may want to generate its symbols as well. Eventually, I will build a "Regenerate Symbols" feature into EDB (a plugin perhaps?), but for now, the script will have to do.

NOTE: as of version 0.8.5 the symbol map format has changed slightly, you will need to regenerate your map files.

Also, don't forget to set the symbols directory in the options dialog to the directory which you placed the map files!