summaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2005-05-16 12:38:09 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2005-05-16 12:38:09 +0000
commitfa3fbf915fa0b29c41964cabe346f67520235384 (patch)
treec5d4a796ec9b201b11c6b32515dcfdac762785b4 /gdb
parent6844c59692870e45d85c6621b7233788dc092937 (diff)
downloadgdb-fa3fbf915fa0b29c41964cabe346f67520235384.tar.gz
* s390-tdep.c (s390_return_value): Remove unnecessary casts.
(s390_breakpoint_from_pc): Change type of return value and 'breakpoint' to const gdb_byte *.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/s390-tdep.c10
2 files changed, 10 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 0e4df169013..a52bac2f09d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
+ * s390-tdep.c (s390_return_value): Remove unnecessary casts.
+ (s390_breakpoint_from_pc): Change type of return value and
+ 'breakpoint' to const gdb_byte *.
+
+2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
+
* 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.
diff --git a/gdb/s390-tdep.c b/gdb/s390-tdep.c
index cbb5b8c90bf..18f7ea40919 100644
--- a/gdb/s390-tdep.c
+++ b/gdb/s390-tdep.c
@@ -2726,8 +2726,7 @@ s390_return_value (struct gdbarch *gdbarch, struct type *type,
else if (length == 2*word_size)
{
regcache_cooked_write (regcache, S390_R2_REGNUM, in);
- regcache_cooked_write (regcache, S390_R3_REGNUM,
- (const char *)in + word_size);
+ regcache_cooked_write (regcache, S390_R3_REGNUM, in + word_size);
}
else
internal_error (__FILE__, __LINE__, _("invalid return type"));
@@ -2759,8 +2758,7 @@ s390_return_value (struct gdbarch *gdbarch, struct type *type,
else if (length == 2*word_size)
{
regcache_cooked_read (regcache, S390_R2_REGNUM, out);
- regcache_cooked_read (regcache, S390_R3_REGNUM,
- (char *)out + word_size);
+ regcache_cooked_read (regcache, S390_R3_REGNUM, out + word_size);
}
else
internal_error (__FILE__, __LINE__, _("invalid return type"));
@@ -2778,10 +2776,10 @@ s390_return_value (struct gdbarch *gdbarch, struct type *type,
/* Breakpoints. */
-static const unsigned char *
+static const gdb_byte *
s390_breakpoint_from_pc (CORE_ADDR *pcptr, int *lenptr)
{
- static unsigned char breakpoint[] = { 0x0, 0x1 };
+ static const gdb_byte breakpoint[] = { 0x0, 0x1 };
*lenptr = sizeof (breakpoint);
return breakpoint;