aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog2
-rw-r--r--gdb/sparc-tdep.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index c7bea83..4d0e301 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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".
diff --git a/gdb/sparc-tdep.c b/gdb/sparc-tdep.c
index a2af11a..1468943 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;