Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 45727b2ebf90128e63d83d9a7b03b097 > files > 51

edb-0.9.17-1.fc15.i686.rpm

<!DOCTYPE html>

<html>
<head>
<title>edb - Symbols</title>
<link rel=stylesheet type="text/css" href="css/style.css">
</head>
<body>
<h1>Generating Symbols</h1>

<p>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 edb with the --symbols flag, here's an example:</p>
<pre>
$ ./edb --symbols /lib/libc.so.6 > symbols/libc.so.6.map
</pre>
<p>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:</p>
<pre>
$ for i in $(ls /lib/*.so* /usr/lib/*.so*); do ./edb --symbols $i > symbols/$(basename $i).map; done
</pre>
<p>This will take a moment, but not that long, when it is complete you will have symbols based on all libraries on your system. Note that the <code>--symbols</code> function 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.</p>
<strong>NOTE: as of version 0.8.5 the symbol map format has changed slightly, you will need to regenerate your map files.</strong>
<p>Also, don't forget to set the symbols directory in the options dialog to the directory which you placed the map files!</p>

</body>
</html>