* rs6000-tdep.c (rs6000_breakpoint_from_pc): Change big_breakpoint
authorAndrew Cagney <cagney@redhat.com>
Thu, 26 Nov 1998 10:36:45 +0000 (10:36 +0000)
committerAndrew Cagney <cagney@redhat.com>
Thu, 26 Nov 1998 10:36:45 +0000 (10:36 +0000)
and little_breakpoint to char[] from char*.
* remote-array.c (array_insert_breakpoint): Change bp_addr to
CORE_ADDR type.

gdb/ChangeLog
gdb/remote-array.c
gdb/rs6000-tdep.c

index c54824f54f838285755b026af5d3f350b2c8b90c..98f321a33ac46d316667a2bfa6e3143d1290bdbb 100644 (file)
@@ -1,3 +1,10 @@
+Thu Nov 26 11:19:15 1998  Andrew Cagney  <cagney@chook.cygnus.com>
+
+       * rs6000-tdep.c (rs6000_breakpoint_from_pc): Change big_breakpoint
+       and little_breakpoint to char[] from char*.
+       * remote-array.c (array_insert_breakpoint): Change bp_addr to
+       CORE_ADDR type.
+
 Wed Nov 25 00:13:06 1998  Andrew Cagney  <cagney@b1.cygnus.com>
 
        * vx-share/xdr_ld.c (xdr_ldtabl): Cast second arg to char**
index f6f174f4bbcdb614646d2cbc3932eb49ea97056b..795a6452ab14e710b14fde5143c0d49a2b905916 100644 (file)
@@ -1062,7 +1062,7 @@ array_insert_breakpoint (addr, shadow)
 {
   int i;
   int bp_size = 0;
-  int bp_addr = addr;
+  CORE_ADDR bp_addr = addr;
 
   debuglogs (1, "array_insert_breakpoint() addr = 0x%x", addr);
   BREAKPOINT_FROM_PC (&bp_addr, &bp_size);
index 36f5f6147244d6997a72dbc524063bcde4cb3a28..c8db79845089471e07799c250ff0036922b76d88 100644 (file)
@@ -144,8 +144,8 @@ rs6000_breakpoint_from_pc (bp_addr, bp_size)
      CORE_ADDR *bp_addr;
      int *bp_size;
 {
-  static unsigned char *big_breakpoint = BIG_BREAKPOINT;
-  static unsigned char *little_breakpoint = LITTLE_BREAKPOINT;
+  static unsigned char big_breakpoint[] = BIG_BREAKPOINT;
+  static unsigned char little_breakpoint[] = LITTLE_BREAKPOINT;
   *bp_size = 4;
   if (TARGET_BYTE_ORDER == BIG_ENDIAN)
     return big_breakpoint;