This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] fix a warning in sh-tdep.c
- From: Elena Zannoni <ezannoni at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Fri, 10 May 2002 18:19:53 -0400
- Subject: [PATCH] fix a warning in sh-tdep.c
I just committed this.
Elena
2002-05-10 Elena Zannoni <ezannoni@redhat.com>
* sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
Index: sh-tdep.c
===================================================================
RCS file: /cvs/uberbaum/gdb/sh-tdep.c,v
retrieving revision 1.54
diff -u -p -r1.54 sh-tdep.c
--- sh-tdep.c 8 May 2002 14:54:02 -0000 1.54
+++ sh-tdep.c 10 May 2002 22:18:25 -0000
@@ -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 */