From: Ulrich Weigand <uweigand@de.ibm.com>
To: gdb-patches@sources.redhat.com
Subject: [COMMIT] Update s390-tdep.c to gdb_byte changes
Date: Mon, 16 May 2005 12:40:00 -0000 [thread overview]
Message-ID: <200505161056.j4GAu6YY014225@53v30g15.boeblingen.de.ibm.com> (raw)
Hello,
this updates s390-tdep.c to remove the gdb_byte-related warnings.
Tested on s390-ibm-linux and s390x-ibm-linux, applied to mainline.
Bye,
Ulrich
ChangeLog:
* s390-tdep.c (s390_pseudo_register_read, s390_pseudo_register_write):
Change type of 'buf' argument to gdb_byte *.
(s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
(s390_register_to_value): Change type of 'out' to gdb_byte *, change
type of 'in' to gdb_byte [].
(s390_value_to_register): Change type of 'in' to gdb_byte *, change
type of 'out' to gdb_byte [].
(s390_return_value): Change type of 'out' and 'in' to gdb_byte *.
Index: gdb/s390-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/s390-tdep.c,v
retrieving revision 1.143
diff -c -p -r1.143 s390-tdep.c
*** gdb/s390-tdep.c 31 Mar 2005 19:58:26 -0000 1.143
--- gdb/s390-tdep.c 16 May 2005 10:38:48 -0000
*************** s390_dwarf_reg_to_regnum (int reg)
*** 210,216 ****
static void
s390_pseudo_register_read (struct gdbarch *gdbarch, struct regcache *regcache,
! int regnum, void *buf)
{
ULONGEST val;
--- 210,216 ----
static void
s390_pseudo_register_read (struct gdbarch *gdbarch, struct regcache *regcache,
! int regnum, gdb_byte *buf)
{
ULONGEST val;
*************** s390_pseudo_register_read (struct gdbarc
*** 233,239 ****
static void
s390_pseudo_register_write (struct gdbarch *gdbarch, struct regcache *regcache,
! int regnum, const void *buf)
{
ULONGEST val, psw;
--- 233,239 ----
static void
s390_pseudo_register_write (struct gdbarch *gdbarch, struct regcache *regcache,
! int regnum, const gdb_byte *buf)
{
ULONGEST val, psw;
*************** s390_pseudo_register_write (struct gdbar
*** 260,266 ****
static void
s390x_pseudo_register_read (struct gdbarch *gdbarch, struct regcache *regcache,
! int regnum, void *buf)
{
ULONGEST val;
--- 260,266 ----
static void
s390x_pseudo_register_read (struct gdbarch *gdbarch, struct regcache *regcache,
! int regnum, gdb_byte *buf)
{
ULONGEST val;
*************** s390x_pseudo_register_read (struct gdbar
*** 282,288 ****
static void
s390x_pseudo_register_write (struct gdbarch *gdbarch, struct regcache *regcache,
! int regnum, const void *buf)
{
ULONGEST val, psw;
--- 282,288 ----
static void
s390x_pseudo_register_write (struct gdbarch *gdbarch, struct regcache *regcache,
! int regnum, const gdb_byte *buf)
{
ULONGEST val, psw;
*************** s390_convert_register_p (int regno, stru
*** 316,324 ****
static void
s390_register_to_value (struct frame_info *frame, int regnum,
! struct type *valtype, void *out)
{
! char in[8];
int len = TYPE_LENGTH (valtype);
gdb_assert (len < 8);
--- 316,324 ----
static void
s390_register_to_value (struct frame_info *frame, int regnum,
! struct type *valtype, gdb_byte *out)
{
! gdb_byte in[8];
int len = TYPE_LENGTH (valtype);
gdb_assert (len < 8);
*************** s390_register_to_value (struct frame_inf
*** 328,336 ****
static void
s390_value_to_register (struct frame_info *frame, int regnum,
! struct type *valtype, const void *in)
{
! char out[8];
int len = TYPE_LENGTH (valtype);
gdb_assert (len < 8);
--- 328,336 ----
static void
s390_value_to_register (struct frame_info *frame, int regnum,
! struct type *valtype, const gdb_byte *in)
{
! gdb_byte out[8];
int len = TYPE_LENGTH (valtype);
gdb_assert (len < 8);
*************** s390_return_value_convention (struct gdb
*** 2694,2700 ****
static enum return_value_convention
s390_return_value (struct gdbarch *gdbarch, struct type *type,
! struct regcache *regcache, void *out, const void *in)
{
int word_size = gdbarch_ptr_bit (gdbarch) / 8;
int length = TYPE_LENGTH (type);
--- 2694,2701 ----
static enum return_value_convention
s390_return_value (struct gdbarch *gdbarch, struct type *type,
! struct regcache *regcache, gdb_byte *out,
! const gdb_byte *in)
{
int word_size = gdbarch_ptr_bit (gdbarch) / 8;
int length = TYPE_LENGTH (type);
--
Dr. Ulrich Weigand
Linux on zSeries Development
Ulrich.Weigand@de.ibm.com
next reply other threads:[~2005-05-16 10:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-16 12:40 Ulrich Weigand [this message]
2005-05-16 13:40 ` Mark Kettenis
2005-05-16 16:37 ` Ulrich Weigand
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=200505161056.j4GAu6YY014225@53v30g15.boeblingen.de.ibm.com \
--to=uweigand@de.ibm.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