From 864a1a37a3f9f104c66861db573ccb68e7f72e7b Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sat, 13 Aug 2005 22:12:24 +0000 Subject: [PATCH] * sparc-tdep.c (sparc_breakpoint_from_pc): Constify break_insn. --- gdb/ChangeLog | 2 ++ gdb/sparc-tdep.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c7bea838d4..4d0e301555 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,7 @@ 2005-08-14 Mark Kettenis + * sparc-tdep.c (sparc_breakpoint_from_pc): Constify break_insn. + * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Check for "__sighndlr". diff --git a/gdb/sparc-tdep.c b/gdb/sparc-tdep.c index a2af11a44b..1468943d53 100644 --- a/gdb/sparc-tdep.c +++ b/gdb/sparc-tdep.c @@ -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;