Ethereal-users: Re: [Ethereal-users] Running under gdb

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Jerry Talkington <jtalkington@xxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 30 Aug 2004 13:33:38 -0700
On Mon, Aug 30, 2004 at 01:40:13PM -0500, Bob Evans wrote:
> I looked at the Makefile and there is no "-g" option for gcc.  Assuming 
> this is the problem, is there some configuration option or environment 
> variable I need to set before running ./configure to get the "-g" flag set?
> Thanks, Bob.

When running configure, set your CFLAGS environment variable first, i.e.
CFLAGS='-g3' ./configure --with-options

After the first compilation, I
cp ./ethereal ethereal.gdb

and change 'exec $program' to 'exec gdb $program', to enable easier
startup.

-- 
GPG public key:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x9D5B8762