pan-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Pan-users] Debugging Pan with gdb


From: Charles Kerr
Subject: Re: [Pan-users] Debugging Pan with gdb
Date: Tue, 22 Aug 2006 19:22:02 -0500 (CDT)
User-agent: SquirrelMail/1.4.6 [CVS]

Duncan wrote:

> On Mon, 21 Aug 2006 18:01:18 -0400, Douglas Bollinger wrote:

>> Does having my entire system (and espcially the gtk libs) compiled with
>> -fomit-frame-pointer pretty much render my system useless for debugging?
>
> That's what I've read, yes.  OTOH, man gcc says that -fomit-frame-pointer
> is automatically enabled by any level of -O (optimization), so this makes
> the whole subject a bit confusing.
>
> My guess is that re-compiling your gtk package with -g added to your
> CFLAGS variable might give you a better-looking backtrace.  It should
> only take a few minutes to find out, anyway.

Yes, IIRC there's a configure option to glib/atk/pango/gtk that you can
use to turn on debugging symbols.

Duncan is absolutely right about -g, though I'd go further and recommend
adding -ggdb3 to your CFLAGS before compiling glib/atk/pango/gtk/gmime.

Likewise I'd add -ggdb3 to your CXXFLAGS before compiling Pan.
For Pan + gcc 4.x I use: % CXXFLAGS="-ggdb3 -Os -Wall" ./configure,
and replace "-Os" with "-O" for older gcc's or when using valgrind.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]