[PATCH] fix a warning in sh-tdep.c

Elena Zannoni ezannoni@redhat.com
Fri May 10 15:20:00 GMT 2002


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 */



More information about the Gdb-patches mailing list