Wireshark-dev: Re: [Wireshark-dev] Eclipse project for Wireshark
From: Stephen Fisher <steve@xxxxxxxxxxxxxxxxxx>
Date: Mon, 24 Jan 2011 14:57:41 -0700
On Mon, Jan 24, 2011 at 06:29:23PM +0100, Dietfrid Mali wrote:


> Thanks. I tried that, and the files are indeed compiled with -g -O0, 
> but DDD (gdb) doesn't seem to find an program entry point (and 
> complains about bash missing on my openSUSE 11.3 box ???).

When you debug Wireshark from the root build directory, use libtool as 
follows:

  libtool --mode=execute gdb ./wireshark

Otherwise, you'll be debugging the libtool wrapper script called 
wireshark (which calls .libs/wireshark after setting up the proper 
library paths and such).

If you wait to debug it until it's installed, the debugging symbols will 
be stripped by make install.  I can usually debug Wireshark without 
needing to turn off optimizations (-O0).