On Tue, Oct 29, 2002 at 12:06:44PM +0000, Jonathon McKitrick wrote:
> 
> Hi all,
> 
> I'm trying to figure out how to get more debugging info out of my core dump.
> Here's all I have so far:
> 
> local:~> gdb -c wmaker.core 
> GNU gdb 4.18 (FreeBSD)
> Copyright 1998 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "i386-unknown-freebsd".
> Core was generated by `wmaker'.
> Program terminated with signal 11, Segmentation fault.
> #0  0x80967d6 in ?? ()
> (gdb) where
> #0  0x80967d6 in ?? ()
> #1  0x80706cb in ?? ()
> #2  0x807f975 in ?? ()
> #3  0x806c3d8 in ?? ()
> #4  0x804d219 in ?? ()
> (gdb) 
> 
> This obviously isn't much help.  What do I need to include in the port build
> to get more debugging info so I can post a helpful core dump?
> 
> NOTE: Please CC me, as I am not currently subscribed.  Thanks.

You want to pass the -g option to the compiler, to get gdb to emit source
file names and linenumbers. Most of the time something like this works:

/usr/ports/x11-wm/windowmaker# make CFLAGS="-g" STRIP="" all install

But this depends on whether the port honors your custom CFLAGS.

Note that usually you don't have to install the debug version, you can
also run the resulting binary from the work/windowmaker-0.xxx/...
subdirs.

Hope this helps,

--Stijn

-- 
Fairy tales do not tell children that dragons exist. Children already
know dragons exist. Fairy tales tell children the dragons can be
killed.
                -- G.K. Chesterton

Attachment: msg06945/pgp00000.pgp
Description: PGP signature

Reply via email to