[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Why do we include debug symbols in !maintainer_mode?

From: Peter Samuelson <peter_at_p12n.org>
Date: Thu, 14 Apr 2011 14:40:44 -0500

[Hyrum K Wright]
> Although I don't know if this has any impact on the processor
> i-cache, I still don't see much reason for using '-g -O2' in
> non-maintainer mode.

As others have said, no, it should have no effect on the icache, at
least on systems I know (mainly ELF). The debug section isn't even
loaded into memory at runtime, it's just sitting there eating disk
until someone like gdb comes along and reads it explicitly.

With my Linux distribution packager hat on, though, I wouldn't mind if
the default were changed. I'd change it back so I could provide
out-of-band debug symbols in my packages, but overriding CFLAGS at
build time is so trivial that anyone doing any special handling like
this shouldn't really be inconvenienced.

-- 
Peter Samuelson | org-tld!p12n!peter | http://p12n.org/
Received on 2011-04-14 21:41:24 CEST

This is an archived mail posted to the Subversion Dev mailing list.