From: Andrew Cagney Date: Thu, 26 Nov 1998 10:36:45 +0000 (+0000) Subject: * rs6000-tdep.c (rs6000_breakpoint_from_pc): Change big_breakpoint X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=07137a112dc3cdf1ceafe58c3c0cdcb79ee5f3d7;p=binutils-gdb.git * 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c54824f54f8..98f321a33ac 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +Thu Nov 26 11:19:15 1998 Andrew Cagney + + * 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 * vx-share/xdr_ld.c (xdr_ldtabl): Cast second arg to char** diff --git a/gdb/remote-array.c b/gdb/remote-array.c index f6f174f4bbc..795a6452ab1 100644 --- a/gdb/remote-array.c +++ b/gdb/remote-array.c @@ -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); diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c index 36f5f614724..c8db7984508 100644 --- a/gdb/rs6000-tdep.c +++ b/gdb/rs6000-tdep.c @@ -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;