* Re: [gentoo-user] How can I emerge a program with debugging options?
2007-01-15 9:13 [gentoo-user] How can I emerge a program with debugging options? qfpvajdy
@ 2007-01-15 8:53 ` Pawel Kraszewski
2007-01-15 9:18 ` Dirk Heinrichs
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Pawel Kraszewski @ 2007-01-15 8:53 UTC (permalink / raw
To: gentoo-user
Dnia poniedziałek, 15 stycznia 2007 10:13, qfpvajdy napisał:
> Hello,
>
> I would like to emerge a program with debugging options CFLAGS="-g" and
> without strip at the end of the build. I know that I could do this:
> $ export CFLAGS="-g"; emerge mypackage
Take a look at:
http://www.gentoo.org/proj/en/qa/backtraces.xml
P.S. Pls. correct your signature separator. It should be
dash-dash-SPACE-enter. You have just dash-dash-enter.
--
Pawel Kraszewski
www.kraszewscy.net
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* [gentoo-user] How can I emerge a program with debugging options?
@ 2007-01-15 9:13 qfpvajdy
2007-01-15 8:53 ` Pawel Kraszewski
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: qfpvajdy @ 2007-01-15 9:13 UTC (permalink / raw
To: gentoo-user
Hello,
I would like to emerge a program with debugging options CFLAGS="-g" and without strip at the end of the build.
I know that I could do this:
$ export CFLAGS="-g"; emerge mypackage
But then it strip at the end the binary file (/usr/bin/strip) and I loss my debugging symbols in the binary file of the package.
Does somebody knows how I could do this by an easy way?
I had already the idea to rename the program /usr/bin/strip in /usr/bin/strip.old, but this is a little ugly! :-)
--
E-Mail sent with anti-spam site TrashMail.net!
Free disposable email addresses: http://www.trashmail.net/
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] How can I emerge a program with debugging options?
2007-01-15 9:13 [gentoo-user] How can I emerge a program with debugging options? qfpvajdy
2007-01-15 8:53 ` Pawel Kraszewski
@ 2007-01-15 9:18 ` Dirk Heinrichs
2007-01-15 9:23 ` Michal 'vorner' Vaner
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Dirk Heinrichs @ 2007-01-15 9:18 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 845 bytes --]
Am Montag, 15. Januar 2007 10:13 schrieb ext qfpvajdy:
> I would like to emerge a program with debugging options CFLAGS="-g" and
> without strip at the end of the build. I know that I could do this:
> $ export CFLAGS="-g"; emerge mypackage
>
> But then it strip at the end the binary file (/usr/bin/strip) and I loss
> my debugging symbols in the binary file of the package.
>
> Does somebody knows how I could do this by an easy way?
Put FEATURES="nostrip" into /etc/make.conf.
Bye...
Dirk
--
Dirk Heinrichs | Tel: +49 (0)162 234 3408
Configuration Manager | Fax: +49 (0)211 47068 111
Capgemini Deutschland | Mail: dirk.heinrichs@capgemini.com
Hambornerstraße 55 | Web: http://www.capgemini.com
D-40472 Düsseldorf | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] How can I emerge a program with debugging options?
2007-01-15 9:13 [gentoo-user] How can I emerge a program with debugging options? qfpvajdy
2007-01-15 8:53 ` Pawel Kraszewski
2007-01-15 9:18 ` Dirk Heinrichs
@ 2007-01-15 9:23 ` Michal 'vorner' Vaner
2007-01-15 21:46 ` Benno Schulenberg
2007-01-15 23:50 ` Iain Buchanan
4 siblings, 0 replies; 6+ messages in thread
From: Michal 'vorner' Vaner @ 2007-01-15 9:23 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 511 bytes --]
Hello
On Mon, Jan 15, 2007 at 10:13:46AM +0100, qfpvajdy wrote:
> Does somebody knows how I could do this by an easy way?
> I had already the idea to rename the program /usr/bin/strip in /usr/bin/strip.old, but this is a little ugly! :-)
Have a look at man make.conf, there are many nice options, one of them,
if I remember correctly, was "nostrip".
--
This email was generated by a biological random generator.
If you want more random text, just respond to this email.
Michal "vorner" Vaner
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] How can I emerge a program with debugging options?
2007-01-15 9:13 [gentoo-user] How can I emerge a program with debugging options? qfpvajdy
` (2 preceding siblings ...)
2007-01-15 9:23 ` Michal 'vorner' Vaner
@ 2007-01-15 21:46 ` Benno Schulenberg
2007-01-15 23:50 ` Iain Buchanan
4 siblings, 0 replies; 6+ messages in thread
From: Benno Schulenberg @ 2007-01-15 21:46 UTC (permalink / raw
To: gentoo-user
qfpvajdy wrote:
> I would like to emerge a program with debugging options
> CFLAGS="-g" and without strip at the end of the build.
You could define an alias.
# type dbgemerge
dbgemerge is aliased to `USE='debug' FEATURES='nostrip -test'
CFLAGS='-ggdb -O1 -pipe' CXXFLAGS='-ggdb -O1 -pipe' LDFLAGS='-ggdb
-nopie' emerge --oneshot'
Benno
--
Cetere mi opinias ke ne ĉio tradukenda estas.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] How can I emerge a program with debugging options?
2007-01-15 9:13 [gentoo-user] How can I emerge a program with debugging options? qfpvajdy
` (3 preceding siblings ...)
2007-01-15 21:46 ` Benno Schulenberg
@ 2007-01-15 23:50 ` Iain Buchanan
4 siblings, 0 replies; 6+ messages in thread
From: Iain Buchanan @ 2007-01-15 23:50 UTC (permalink / raw
To: gentoo-user
On Mon, 2007-01-15 at 10:13 +0100, qfpvajdy wrote:
> Hello,
>
> I would like to emerge a program with debugging options CFLAGS="-g"
put CFLAGS in /etc/make.conf
> and without strip at the end of the build.
you can use either nostrip _or_ splitdebug. the first obviously stops
stripping, the second strips files, but takes the debug info and puts it
in another file in /usr/lib/debug first. This means you get the benefit
of smaller executables, but still have debug info. And you can always
delete /usr/lib/debug when you've had enough!
This is relevant parts from my make.conf:
DEBUG="-g"
CFLAGS="-O2 -march=pentium4 -pipe ${DEBUG}"
CXXFLAGS="${CFLAGS}"
FEATURES="fixpackages userpriv usersandbox userfetch splitdebug"
This way, I can comment out the DEBUG= line, and I don't get the debug
info.
see here for more info:
http://www.gentoo.org/proj/en/qa/backtraces.xml
HTH,
--
Iain Buchanan <iaindb at netspace dot net dot au>
I can just see it now: nomination-terrorism ;-)
-- Manoj
haha! i nominate manoj.
-- seeS
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-01-16 0:00 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-15 9:13 [gentoo-user] How can I emerge a program with debugging options? qfpvajdy
2007-01-15 8:53 ` Pawel Kraszewski
2007-01-15 9:18 ` Dirk Heinrichs
2007-01-15 9:23 ` Michal 'vorner' Vaner
2007-01-15 21:46 ` Benno Schulenberg
2007-01-15 23:50 ` Iain Buchanan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox