diff options
Diffstat (limited to 'gdb/gdbserver/linux-crisv32-low.c')
-rw-r--r-- | gdb/gdbserver/linux-crisv32-low.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/gdbserver/linux-crisv32-low.c b/gdb/gdbserver/linux-crisv32-low.c index 21940b3..fb4b5e5 100644 --- a/gdb/gdbserver/linux-crisv32-low.c +++ b/gdb/gdbserver/linux-crisv32-low.c @@ -77,7 +77,8 @@ cris_breakpoint_at (CORE_ADDR where) { unsigned short insn; - (*the_target->read_memory) (where, (char *) &insn, cris_breakpoint_len); + (*the_target->read_memory) (where, (unsigned char *) &insn, + cris_breakpoint_len); if (insn == cris_breakpoint) return 1; @@ -367,7 +368,7 @@ struct linux_target_ops the_low_target = { NULL, cris_get_pc, cris_set_pc, - (const char *) &cris_breakpoint, + (const unsigned char *) &cris_breakpoint, cris_breakpoint_len, cris_reinsert_addr, 0, |