aboutsummaryrefslogtreecommitdiff
path: root/gdb/score-tdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/score-tdep.c')
-rw-r--r--gdb/score-tdep.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/score-tdep.c b/gdb/score-tdep.c
index 0637a72..46257ba 100644
--- a/gdb/score-tdep.c
+++ b/gdb/score-tdep.c
@@ -137,11 +137,11 @@ score_print_insn (bfd_vma memaddr, struct disassemble_info *info)
}
static inst_t *
-score7_fetch_inst (struct gdbarch *gdbarch, CORE_ADDR addr, char *memblock)
+score7_fetch_inst (struct gdbarch *gdbarch, CORE_ADDR addr, gdb_byte *memblock)
{
enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
static inst_t inst = { 0, 0, 0 };
- char buf[SCORE_INSTLEN] = { 0 };
+ gdb_byte buf[SCORE_INSTLEN] = { 0 };
int big;
int ret;
@@ -807,11 +807,11 @@ score3_in_function_epilogue_p (struct gdbarch *gdbarch, CORE_ADDR cur_pc)
return 0;
}
-static char *
+static gdb_byte *
score7_malloc_and_get_memblock (CORE_ADDR addr, CORE_ADDR size)
{
int ret;
- char *memblock = NULL;
+ gdb_byte *memblock = NULL;
if (size < 0)
{
@@ -822,7 +822,7 @@ score7_malloc_and_get_memblock (CORE_ADDR addr, CORE_ADDR size)
else if (size == 0)
return NULL;
- memblock = (char *) xmalloc (size);
+ memblock = xmalloc (size);
memset (memblock, 0, size);
ret = target_read_memory (addr & ~0x3, memblock, size);
if (ret)
@@ -841,7 +841,7 @@ score7_free_memblock (char *memblock)
}
static void
-score7_adjust_memblock_ptr (char **memblock, CORE_ADDR prev_pc,
+score7_adjust_memblock_ptr (gdb_byte **memblock, CORE_ADDR prev_pc,
CORE_ADDR cur_pc)
{
if (prev_pc == -1)
@@ -877,8 +877,8 @@ score7_analyze_prologue (CORE_ADDR startaddr, CORE_ADDR pc,
int fp_offset_p = 0;
int inst_len = 0;
- char *memblock = NULL;
- char *memblock_ptr = NULL;
+ gdb_byte *memblock = NULL;
+ gdb_byte *memblock_ptr = NULL;
CORE_ADDR prev_pc = -1;
/* Allocate MEMBLOCK if PC - STARTADDR > 0. */