From: ligang@sunnorth.com.cn
To: gdb@sourceware.org
Cc: bjgnu@sunnorth.com.cn
Subject: fail to get ra and bp
Date: Thu, 12 Oct 2006 05:21:00 -0000 [thread overview]
Message-ID: <OFF6F48CBC.D5A8195E-ON48257205.001D53B8-48257205.001D91BF@sunnorth.com.cn> (raw)
Hi all,
I am porting GDB to a new target.
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.
Does it need to change ABI? Anyone has any thought?
Thanks.
Ligang
next reply other threads:[~2006-10-12 5:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-12 5:21 ligang [this message]
2006-10-12 5:39 ` Joel Brobecker
-- strict thread matches above, loose matches on Subject: below --
2006-10-12 7:14 ligang
2006-10-12 12:54 ` Daniel Jacobowitz
2006-10-12 4:33 bjgnu
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=OFF6F48CBC.D5A8195E-ON48257205.001D53B8-48257205.001D91BF@sunnorth.com.cn \
--to=ligang@sunnorth.com.cn \
--cc=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