From: Stefan Bylund <steby@enea.se>
To: gdb@sourceware.org
Subject: Re: Does GDB 6.7.1 for PowerPC require the framepointer register for backtracing?
Date: Tue, 12 Feb 2008 10:24:00 -0000 [thread overview]
Message-ID: <47B173B3.3090801@enea.se> (raw)
In-Reply-To: <20080211173303.GA19507@caradoc.them.org>
Hi Daniel,
Thanks for all your valuable answers! We will use -fomit-frame-pointer
as a workaround for now. Later on we will add support for handling the
frame pointer register in our OS kernel. That seems to be the
future-proof solution.
Regards,
Stefan
Daniel Jacobowitz wrote:
>On Mon, Feb 11, 2008 at 06:28:31PM +0100, Stefan Bylund wrote:
>
>
>>Hi Daniel,
>>
>>Thanks for your information. We use GCC 3.4.4, and when debugging we use
>>the compiler options -g -O0. I tried to add the compiler option
>>-fomit-frame-pointer (which seems to be included by -O1 and higher but
>>not by -O0) and then it works!!! So, my conclusion is that GDB 6.7.1 for
>>PowerPC tries to take advantage of frame pointer information in the
>>DWARF-2 debug information while GDB 6.3 does not. Is that correct? Is it
>>always safe to use -fomit-frame-pointer on PowerPC, i.e. will it not make
>>some type of C/C++ code undebuggable?
>>
>>
>
>GDB 6.7 does use DWARF. GDB 6.3 did not.
>
>It sounds to me like you have a bug in the debug information generated
>by your compiler. I've seen some other bugs in the unwind tables
>generated by GCC 3.4.x that were fixed in GCC 4.x.
>
>-fomit-frame-pointer should not cause a problem for GDB as long as you
>have valid DWARF information.
>
>
>
--
---------------------------------
Stefan Bylund
Senior Software Engineer
Enea
Skalholtsgatan 9,
Box 1033, SE-164 21 Kista, Sweden
Direct: +46 8 50 71 43 25
Mobile: +46 709 71 43 25
stefan.bylund@enea.com
www.enea.com
---------------------------------
Enea - Embedded for Leaders
---------------------------------
next prev parent reply other threads:[~2008-02-12 10:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-11 11:03 Stefan Bylund
2008-02-11 13:08 ` Daniel Jacobowitz
2008-02-11 17:29 ` Stefan Bylund
2008-02-11 17:33 ` Daniel Jacobowitz
2008-02-12 10:24 ` Stefan Bylund [this message]
2008-02-12 13:31 ` Daniel Jacobowitz
2008-02-12 15:21 ` Stefan Bylund
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47B173B3.3090801@enea.se \
--to=steby@enea.se \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox