diff options
author | Andrew Cagney <cagney@redhat.com> | 1998-11-26 10:36:45 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1998-11-26 10:36:45 +0000 |
commit | 07137a112dc3cdf1ceafe58c3c0cdcb79ee5f3d7 (patch) | |
tree | 85dd43c9de9ea8d822a447cbaa493c0489fabe04 /gdb | |
parent | f1b2a4d619ff7427f4d1b9674a98f8799c74d594 (diff) | |
download | gdb-07137a112dc3cdf1ceafe58c3c0cdcb79ee5f3d7.zip gdb-07137a112dc3cdf1ceafe58c3c0cdcb79ee5f3d7.tar.gz gdb-07137a112dc3cdf1ceafe58c3c0cdcb79ee5f3d7.tar.bz2 |
* 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.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/remote-array.c | 2 | ||||
-rw-r--r-- | gdb/rs6000-tdep.c | 4 |
3 files changed, 10 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c54824f..98f321a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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** diff --git a/gdb/remote-array.c b/gdb/remote-array.c index f6f174f..795a645 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 36f5f61..c8db798 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; |