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

Re: Mandatory -dbg packages for libraries?



On Sun, Apr 22, 2007 at 10:31:04PM +0200, Hendrik Sattler wrote:
> Did you ever try to debug an application compiled with optimizations?
> No, either you build an optimized version (-O2) or you build a debug version 
> (-g). If you want to debug what was coded, you better compile without 
> optimizations.

Often, single-stepping isn't required -- given a proper backtrace, you can
solve a _lot_ of problems. Heck, even just knowing what line things crashed
on will help for almost all segfaults that aren't related to heap corruption.

/* Steinar */
-- 
Homepage: http://www.sesse.net/



Reply to: