Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] Need help in debugging custom plugin on linux

From: Stephen Fisher <stephentfisher@xxxxxxxxx>
Date: Wed, 24 Sep 2008 14:53:11 -0600
On Mon, Sep 15, 2008 at 11:36:03PM -0700, siri m wrote:

> however, totalview is unable to find debugging symbols in wireshark 
> that I installed from yum repository.

> Should we re-compile wireshark using some debug flag, can you please 
> let me know what the procedure is? The backtrace that I am getting 
> after it core dumps is not showing any code specific to the custom 
> plugin..(However, the custom plugin binary has the debug symbols...):

The installation process strips debugging symbols from the binaries.  If 
you compile Wireshark and run it from the directory you compiled it in, 
the debugging symbols will be present.  If you're going to use gdb, run 
it with libtool like this...

  libtool --mode=execute gdb ./wireshark

(replace libtool with glibtool if on MacOS X)

... for reasons described at 
http://www.gnu.org/software/libtool/manual/html_node/Debugging-executables.html#Debugging-executables


Steve