aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/sh-tdep.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 4c3c3fb..06894a6 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2002-05-10 Elena Zannoni <ezannoni@redhat.com>
+
+ * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
+
2002-05-10 Daniel Jacobowitz <drow@mvista.com>
* linespec.c (decode_line_1): Check for a double quote after
diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c
index 4d6b113..122b489 100644
--- a/gdb/sh-tdep.c
+++ b/gdb/sh-tdep.c
@@ -230,7 +230,7 @@ sh_sh4_register_name (int reg_nr)
return register_names[reg_nr];
}
-static unsigned char *
+static const unsigned char *
sh_breakpoint_from_pc (CORE_ADDR *pcptr, int *lenptr)
{
/* 0xc3c3 is trapa #c3, and it works in big and little endian modes */