aboutsummaryrefslogtreecommitdiff
path: root/gdb/sh64-tdep.c
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2005-05-02 15:23:37 +0000
committerCorinna Vinschen <corinna@vinschen.de>2005-05-02 15:23:37 +0000
commit079c8cd052d63987cfc9ef8ff66a8970975d6087 (patch)
tree56c45704aa34bfe98e419431e30faffe17f7ddf5 /gdb/sh64-tdep.c
parent4839e910a039c3132390ff75ae54706e71015b02 (diff)
downloadgdb-079c8cd052d63987cfc9ef8ff66a8970975d6087.zip
gdb-079c8cd052d63987cfc9ef8ff66a8970975d6087.tar.gz
gdb-079c8cd052d63987cfc9ef8ff66a8970975d6087.tar.bz2
* MAINTAINERS: Remove hint that sh64 doesn't build.
* sh64-tdep.c (sh64_push_dummy_call): Cast buf in call to write_memory. (sh64_do_fp_register): make raw_buffer unsigned. (sh64_do_register): Ditto.
Diffstat (limited to 'gdb/sh64-tdep.c')
-rw-r--r--gdb/sh64-tdep.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/gdb/sh64-tdep.c b/gdb/sh64-tdep.c
index 394b1df..7f5aa90 100644
--- a/gdb/sh64-tdep.c
+++ b/gdb/sh64-tdep.c
@@ -1120,7 +1120,8 @@ sh64_push_dummy_call (struct gdbarch *gdbarch,
if (int_argreg > ARGLAST_REGNUM)
{
/* must go on the stack */
- write_memory (sp + stack_offset, val, argreg_size);
+ write_memory (sp + stack_offset, (const bfd_byte *) val,
+ argreg_size);
stack_offset += 8;/*argreg_size;*/
}
/* NOTE WELL!!!!! This is not an "else if" clause!!!
@@ -1962,13 +1963,13 @@ static void
sh64_do_fp_register (struct gdbarch *gdbarch, struct ui_file *file,
struct frame_info *frame, int regnum)
{ /* do values for FP (float) regs */
- char *raw_buffer;
+ unsigned char *raw_buffer;
double flt; /* double extracted from raw hex data */
int inv;
int j;
/* Allocate space for the float. */
- raw_buffer = (char *) alloca (register_size (gdbarch, FP0_REGNUM));
+ raw_buffer = (unsigned char *) alloca (register_size (gdbarch, FP0_REGNUM));
/* Get the data in raw format. */
if (!frame_register_read (frame, regnum, raw_buffer))
@@ -1993,7 +1994,7 @@ sh64_do_fp_register (struct gdbarch *gdbarch, struct ui_file *file,
{
int idx = TARGET_BYTE_ORDER == BFD_ENDIAN_BIG ? j
: register_size (gdbarch, regnum) - 1 - j;
- fprintf_filtered (file, "%02x", (unsigned char) raw_buffer[idx]);
+ fprintf_filtered (file, "%02x", raw_buffer[idx]);
}
fprintf_filtered (file, ")");
fprintf_filtered (file, "\n");
@@ -2074,7 +2075,7 @@ static void
sh64_do_register (struct gdbarch *gdbarch, struct ui_file *file,
struct frame_info *frame, int regnum)
{
- char raw_buffer[MAX_REGISTER_SIZE];
+ unsigned char raw_buffer[MAX_REGISTER_SIZE];
fputs_filtered (REGISTER_NAME (regnum), file);
print_spaces_filtered (15 - strlen (REGISTER_NAME (regnum)), file);