From: bjgnu@sunnorth.com.cn
To: gdb@sourceware.org
Subject: fail to get ra and bp
Date: Thu, 12 Oct 2006 04:33:00 -0000 [thread overview]
Message-ID: <OF41CAB979.62648124-ON48257205.00187B21-48257205.00192AB0@sunnorth.com.cn> (raw)
Hi all,
The prologue has two insns ---- push ra and push bp.
When back tracing and printing variables, gdb will look for return address
of this frame and frame pointer on stack.
Unfortunately, If compiling with -O2, the two insns are probably deleted.
So, GDB will not get ra and bp value.
It seems MIPS also fail to do this.
Anyone has any thought?
Thanks.
ligang
next reply other threads:[~2006-10-12 4:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-12 4:33 bjgnu [this message]
2006-10-12 5:21 ligang
2006-10-12 5:39 ` Joel Brobecker
2006-10-12 7:14 ligang
2006-10-12 12:54 ` Daniel Jacobowitz
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=OF41CAB979.62648124-ON48257205.00187B21-48257205.00192AB0@sunnorth.com.cn \
--to=bjgnu@sunnorth.com.cn \
--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