From: Jim Blandy <jimb@zwingli.cygnus.com>
To: gdb-patches@sources.redhat.com
Subject: PATCH: S/390: handle sp element of saved_regs array correctly
Date: Thu, 15 Nov 2001 10:28:00 -0000 [thread overview]
Message-ID: <20011128033835.4A43A5E9D8@zwingli.cygnus.com> (raw)
Message-ID: <20011115102800.0Oq97r6KJ8meYrLMn0DCQ9-luhb_Jdlp6hI2GQyngZc@z> (raw)
2001-11-27 Jim Blandy <jimb@redhat.com>
* s390-tdep.c (s390_frame_chain): Remember that the SP's element
of the frame's saved_regs array is special.
Index: gdb/s390-tdep.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/s390-tdep.c,v
retrieving revision 2.19
diff -c -r2.19 s390-tdep.c
*** gdb/s390-tdep.c 2001/11/28 03:18:34 2.19
--- gdb/s390-tdep.c 2001/11/28 03:31:35
***************
*** 974,991 ****
{
if (thisframe->saved_regs)
{
-
int regno;
- regno =
- ((prev_fextra_info.frame_pointer_saved_pc
- && thisframe->
- saved_regs[S390_FRAME_REGNUM]) ? S390_FRAME_REGNUM :
- S390_SP_REGNUM);
if (thisframe->saved_regs[regno])
! prev_fp =
! read_memory_integer (thisframe->saved_regs[regno],
! S390_GPR_SIZE);
}
}
}
--- 974,997 ----
{
if (thisframe->saved_regs)
{
int regno;
+
+ if (prev_fextra_info.frame_pointer_saved_pc
+ && thisframe->saved_regs[S390_FRAME_REGNUM])
+ regno = S390_FRAME_REGNUM;
+ else
+ regno = S390_SP_REGNUM;
if (thisframe->saved_regs[regno])
! {
! /* The SP's entry of `saved_regs' is special. */
! if (regno == S390_SP_REGNUM)
! prev_fp = thisframe->saved_regs[regno];
! else
! prev_fp =
! read_memory_integer (thisframe->saved_regs[regno],
! S390_GPR_SIZE);
! }
}
}
}
next reply other threads:[~2001-11-28 3:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-27 19:37 Jim Blandy [this message]
2001-11-15 10:28 ` Jim Blandy
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=20011128033835.4A43A5E9D8@zwingli.cygnus.com \
--to=jimb@zwingli.cygnus.com \
--cc=gdb-patches@sources.redhat.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