From: Michael Snyder <msnyder@cygnus.com>
To: gdb-patches@sources.redhat.com
Cc: cagney@redhat.com, rearnsha@arm.com
Subject: [RFA] arm_skip_prologue: Recognize "sub sp, sp, #nn"
Date: Mon, 22 Apr 2002 16:10:00 -0000 [thread overview]
Message-ID: <200204222257.g3MMvx110559@reddwarf.sfbay.redhat.com> (raw)
GCC sometimes follows the "sub fp, ip, #nn" instruction with a
"sub sp, sp, #nn".
2002-04-22 Michael Snyder <msnyder@redhat.com>
* arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
Index: arm-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/arm-tdep.c,v
retrieving revision 1.48
diff -p -r1.48 arm-tdep.c
*** arm-tdep.c 19 Feb 2002 19:20:31 -0000 1.48
--- arm-tdep.c 22 Apr 2002 23:07:12 -0000
*************** arm_skip_prologue (CORE_ADDR pc)
*** 477,482 ****
--- 477,488 ----
}
if ((inst & 0xfffff000) == 0xe24cb000) /* sub fp, ip, #nn */
+ {
+ skip_pc += 4;
+ inst = read_memory_integer (skip_pc, 4);
+ }
+
+ if ((inst & 0xfffff000) == 0xe24dd000) /* sub sp, sp, #nn */
skip_pc += 4;
return skip_pc;
next reply other threads:[~2002-04-22 23:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-22 16:10 Michael Snyder [this message]
2002-04-23 2:34 ` Richard Earnshaw
2002-04-23 11:10 ` Michael Snyder
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=200204222257.g3MMvx110559@reddwarf.sfbay.redhat.com \
--to=msnyder@cygnus.com \
--cc=cagney@redhat.com \
--cc=gdb-patches@sources.redhat.com \
--cc=rearnsha@arm.com \
/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