* sparc-tdep.c (sparc_breakpoint_from_pc): Constify break_insn.

This commit is contained in:
Mark Kettenis 2005-08-13 22:12:24 +00:00
parent 0c318c4966
commit 864a1a37a3
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
2005-08-14 Mark Kettenis <kettenis@gnu.org>
* sparc-tdep.c (sparc_breakpoint_from_pc): Constify break_insn.
* sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Check for
"__sighndlr".

View File

@ -493,7 +493,7 @@ sparc32_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
static const gdb_byte *
sparc_breakpoint_from_pc (CORE_ADDR *pc, int *len)
{
static gdb_byte break_insn[] = { 0x91, 0xd0, 0x20, 0x01 };
static const gdb_byte break_insn[] = { 0x91, 0xd0, 0x20, 0x01 };
*len = sizeof (break_insn);
return break_insn;