From: Michael Snyder <msnyder@cygnus.com>
To: gdb-patches@sources.redhat.com
Cc: rearnsha@arm.com
Subject: [RFA] arm_scan_prologue: accept strh and strb as well as str
Date: Thu, 25 Apr 2002 18:30:00 -0000 [thread overview]
Message-ID: <200204260118.g3Q1IO319037@reddwarf.sfbay.redhat.com> (raw)
Hi Richard,
These are for char and short args, respectively.
The more I play with it, the more I want to merge
arm_scan and arm_skip into one function. ;-)
Michael
2002-04-25 Michael Snyder <msnyder@redhat.com>
* arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn]
and strh r(0123),[r11,#-nn] as well as str r(0123),[r11,#-nn].
(arm_skip_prologue): Ditto.
Index: arm-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/arm-tdep.c,v
retrieving revision 1.55
diff -c -3 -p -r1.55 arm-tdep.c
*** arm-tdep.c 24 Apr 2002 21:22:06 -0000 1.55
--- arm-tdep.c 26 Apr 2002 01:28:12 -0000
*************** arm_skip_prologue (CORE_ADDR pc)
*** 468,474 ****
inst = read_memory_integer (skip_pc, 4);
}
! if ((inst & 0xfffff800) == 0xe92dd800) /* stmfd sp!,{fp,ip,lr,pc} */
{
skip_pc += 4;
inst = read_memory_integer (skip_pc, 4);
--- 468,474 ----
inst = read_memory_integer (skip_pc, 4);
}
! if ((inst & 0xfffff800) == 0xe92dd800) /* stmfd sp!,{...,fp,ip,lr,pc} */
{
skip_pc += 4;
inst = read_memory_integer (skip_pc, 4);
*************** arm_skip_prologue (CORE_ADDR pc)
*** 507,513 ****
inst = read_memory_integer (skip_pc, 4);
}
! while ((inst & 0xffffcfc0) == 0xe50b0000) /* str r(0123), [r11, #-nn] */
{
skip_pc += 4;
inst = read_memory_integer (skip_pc, 4);
--- 507,515 ----
inst = read_memory_integer (skip_pc, 4);
}
! while ((inst & 0xffffcfff) == 0xe54b0000 || /* strb r(0123),[r11,#-nn] */
! (inst & 0xffffc0f0) == 0xe14b00b0 || /* strh r(0123),[r11,#-nn] */
! (inst & 0xffffcfc0) == 0xe50b0000) /* str r(0123),[r11,#-nn] */
{
skip_pc += 4;
inst = read_memory_integer (skip_pc, 4);
*************** arm_scan_prologue (struct frame_info *fi
*** 905,911 ****
fi->saved_regs[regno] = sp_offset;
}
}
! else if ((insn & 0xffffcfc0) == 0xe50b0000) /* str rx, [r11, -n] */
{
/* No need to add this to saved_regs -- it's just an arg reg. */
continue;
--- 907,915 ----
fi->saved_regs[regno] = sp_offset;
}
}
! else if ((insn & 0xffffcfff) == 0xe54b0000 || /* strb rx,[r11,#-n] */
! (insn & 0xffffc0f0) == 0xe14b00b0 || /* strh rx,[r11,#-n] */
! (insn & 0xffffcfc0) == 0xe50b0000) /* str rx,[r11,#-n] */
{
/* No need to add this to saved_regs -- it's just an arg reg. */
continue;
next reply other threads:[~2002-04-26 1:30 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-25 18:30 Michael Snyder [this message]
2002-05-08 8:02 ` Richard Earnshaw
2002-05-08 11:32 ` Michael Snyder
2002-05-08 11:33 ` Michael Snyder
2002-05-08 12:11 ` Richard Earnshaw
2002-05-08 15:36 ` Michael Snyder
2002-05-08 15:41 ` Michael Snyder
2002-05-09 2:20 ` Richard Earnshaw
2002-05-09 11:02 ` Michael Snyder
2002-05-09 2:18 ` Richard Earnshaw
2002-05-09 11:07 ` 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=200204260118.g3Q1IO319037@reddwarf.sfbay.redhat.com \
--to=msnyder@cygnus.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