[COMMIT] Update s390-tdep.c to gdb_byte changes
Ulrich Weigand
uweigand@de.ibm.com
Mon May 16 12:40:00 GMT 2005
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
More information about the Gdb-patches
mailing list