[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pan-users] Re: crash, debug build, etc.
From: |
Duncan |
Subject: |
[Pan-users] Re: crash, debug build, etc. |
Date: |
Tue, 4 Jul 2006 00:27:40 +0000 (UTC) |
User-agent: |
pan 0.101 ("A pulse of dying power in a clenching plastic fist.") |
David Shochat <address@hidden> posted
address@hidden, excerpted below, on Mon, 03 Jul 2006
19:24:23 -0400:
> Since I need to report a crash, I need to get a gdb stack trace. That
> means I need to compile with debug (with symbols). How do I do that?
>From the gcc manpage:
-g Produce debugging information in the operating system's native format
(stabs, COFF, XCOFF, or DWARF 2). GDB can work with this debugging
information.
So add -g to your CFLAGS. (Set CFLAGS="-g" plus whatever other CFLAGS you
use before compiling.) Note that various optimizations can make debugging
difficult, of course. See the manpage for additional -g<otherstuff> flags.
Finally (and in general), note that symbols may be stripped by the
build/make script. I'm not sure if pan's does or not, but at the
./configure step, you can try ./configure --help and see what it spits
out. It's likely you can add a debug option there that will take care of
the gcc -g as well as any stripping.
--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman
- [Pan-users] crash, debug build, etc., David Shochat, 2006/07/03
- [Pan-users] Re: crash, debug build, etc.,
Duncan <=
- Re: [Pan-users] Re: crash, debug build, etc., David Shochat, 2006/07/04
- [Pan-users] Re: Re: crash, debug build, etc., Duncan, 2006/07/04
- Re: [Pan-users] Re: Re: crash, debug build, etc., David Shochat, 2006/07/04
- [Pan-users] Re: Re: Re: crash, debug build, etc., Duncan, 2006/07/05
- Re: [Pan-users] Re: Re: crash, debug build, etc., David Shochat, 2006/07/04