aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-06-18 16:01:12 +0000
committerAndrew Cagney <cagney@redhat.com>2002-06-18 16:01:12 +0000
commit5402eed1c4143564801a79e25c6e9147e63e09cf (patch)
tree7777e1065812aaaa27486903444c7c55b0893b3d
parentdc9feb5c97ab95cb328406040f47f20f986f0e58 (diff)
downloadgdb-5402eed1c4143564801a79e25c6e9147e63e09cf.zip
gdb-5402eed1c4143564801a79e25c6e9147e63e09cf.tar.gz
gdb-5402eed1c4143564801a79e25c6e9147e63e09cf.tar.bz2
* MAINTAINERS: Note that cris-elf target can be compiled with
-Werror. * cris-tdep.c (cris_register_name): Make return type constant. (cris_breakpoint_from_pc): Ditto.
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/MAINTAINERS2
-rw-r--r--gdb/cris-tdep.c4
3 files changed, 10 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index e84bb6f..4d97346 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+2002-06-18 Andrew Cagney <cagney@redhat.com>
+
+ * MAINTAINERS: Note that cris-elf target can be compiled with
+ -Werror.
+ * cris-tdep.c (cris_register_name): Make return type constant.
+ (cris_breakpoint_from_pc): Ditto.
+
2002-06-18 Michal Ludvig <mludvig@suse.cz>
* frame.h (struct frame_info): Change type of context to
diff --git a/gdb/MAINTAINERS b/gdb/MAINTAINERS
index f86c42c..aa7257c 100644
--- a/gdb/MAINTAINERS
+++ b/gdb/MAINTAINERS
@@ -72,7 +72,7 @@ maintainer works with the native maintainer when resolving API issues.
avr --target=avr ,-Werror
Theodore A. Roth troth@verinet.com
- cris --target=cris-elf -w
+ cris --target=cris-elf ,-Werror
Orjan Friberg orjanf@axis.com
d10v --target=d10v-elf ,-Werror
diff --git a/gdb/cris-tdep.c b/gdb/cris-tdep.c
index b28d3bb..b223f87 100644
--- a/gdb/cris-tdep.c
+++ b/gdb/cris-tdep.c
@@ -762,7 +762,7 @@ cris_skip_prologue_main (CORE_ADDR pc, int frameless_p)
adjusts pcptr (if necessary) to point to the actual memory location where
the breakpoint should be inserted. */
-unsigned char *
+const unsigned char *
cris_breakpoint_from_pc (CORE_ADDR *pcptr, int *lenptr)
{
static unsigned char break_insn[] = {0x38, 0xe9};
@@ -995,7 +995,7 @@ cris_abi_v2_store_return_value (struct type *type, char *valbuf)
/* Return the name of register regno as a string. Return NULL for an invalid or
unimplemented register. */
-char *
+const char *
cris_register_name (int regno)
{
static char *cris_genreg_names[] =