* sparc-tdep.c (sparc_breakpoint_from_pc): Constify break_insn.
authorMark Kettenis <kettenis@gnu.org>
Sat, 13 Aug 2005 22:12:24 +0000 (22:12 +0000)
committerMark Kettenis <kettenis@gnu.org>
Sat, 13 Aug 2005 22:12:24 +0000 (22:12 +0000)
gdb/ChangeLog
gdb/sparc-tdep.c

index c7bea838d42625e5f1a822f05b1dbc88a5425759..4d0e3015552c6adc99a3ced94712b50586ffe06f 100644 (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".
 
index a2af11a44b56bbe84ef4e6862a992bb982ebaff0..1468943d53581760da21a807f7385ca04b03e144 100644 (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;