Gentoo Archives: gentoo-dev

From: Sven Eden <sven.eden@×××.de>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Defaulting for debug information in profiles
Date: Tue, 18 Dec 2012 12:02:40
Message-Id: 2718248.SJMg2bTnvU@sed-notebook
In Reply to: Re: [gentoo-dev] Defaulting for debug information in profiles by "Marcin Mirosław"
1 Am Dienstag, 18. Dezember 2012, 12:43:55 schrieb Marcin Mirosław:
2 > W dniu 18.12.2012 12:13, Sven Eden pisze:
3
4 (snip, because this has nothing to do with the previous discussion.)
5
6 > >> On my 32-bit machines I have...
7 > >>
8 > >> FLAGS="-O2 -march=native -mfpmath=sse -fomit-frame-pointer -pipe
9 > >> -fno-unwind-tables -fno-asynchronous-unwind-tables" CXXFLAGS="${CFLAGS}"
10 > >>
11 > >> See http://comments.gmane.org/gmane.linux.busybox/36695 for why I
12 > >>
13 > >> include "-fno-unwind-tables -fno-asynchronous-unwind-tables". Would I
14 > >> have to rebuild system and world without...
15 > >>
16 > >> -fomit-frame-pointer -fno-unwind-tables -fno-asynchronous-unwind-tables
17 > >>
18 > >> ...to have debug data available?
19 > >
20 > > No, you haven't, if you have compiled everything with "-g" or "-ggdb".
21 > >
22 > > According to the web page you linked, the DWARF-2 tables are then written
23 > > into the .debug files. Without -g/-ggdb, they are stripped and no longer
24 > > available for debugging.
25 > >
26 > > So according to your CFLAGS, you'd have to rebuild everything, yes, but a
27 > > simple "-g" would do.
28 > >
29 > > Oh, and "splitdebug" in "FEATURES" would be a good idea, too! ;)
30 >
31 > Hi Sven!
32 > Meseems you are not right, please look at it:
33 > $ readelf -p .GCC.command.line /usr/lib64/debug/usr/bin/sqlite3.debug
34 >
35 > |grep "unwind\|-g"
36 >
37 > [ 1e2] -grecord-gcc-switches
38 > [ 1f8] -ggdb
39 > [ 202] -frecord-gcc-switches
40 > $ size /usr/bin/sqlite3
41 > text data bss dec hex filename
42 > 44545 4124 328 48997 bf65 /usr/bin/sqlite3
43 >
44 >
45 > And with -fno-unwind...
46 > $ readelf -p .GCC.command.line /usr/lib64/debug/usr/bin/sqlite3.debug
47 >
48 > |grep "unwind\|-g"
49 >
50 > [ 1e2] -grecord-gcc-switches
51 > [ 1f8] -ggdb
52 > [ 202] -frecord-gcc-switches
53 > [ 218] -fno-unwind-tables
54 > [ 22b] -fno-asynchronous-unwind-tables
55 > $ size /usr/bin/sqlite3
56 > text data bss dec hex filename
57 > 42713 4124 328 47165 b83d /usr/bin/sqlite3
58 >
59 > As you can see I have splitdebug turned on.
60 > Marcin
61
62 Hi Marcin,
63
64 I am not right with what? All I did was interpreting a quoted link. And what
65 is this supposed to mean? So /usr/bin/sqlite3 looses size. Yes. This goes
66 along with the quoted link. But did you compare the current size of
67 /usr/lib64/debug/usr/bin/sqlite3.debug before and after?
68
69 Sorry for any inconvenience, but I assure you, I have absolutly no idea what
70 you intent to show.
71
72 Sincerly
73
74 Sven
75
76 --
77 http://pwxlib.sourceforge.net

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] Defaulting for debug information in profiles "Marcin Mirosław" <marcin@×××××.pl>