diff options
author | Andrew Cagney <cagney@redhat.com> | 1998-11-24 13:49:00 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1998-11-24 13:49:00 +0000 |
commit | afcad54a90445ba65ca91b13341b75facc96521c (patch) | |
tree | fc90a9c47d68bdf243ba26027fc7e27283c9660d /gdb/remote-array.c | |
parent | fbf1f3f1f6982710c5e379679ac4f18e795aeeb7 (diff) | |
download | gdb-afcad54a90445ba65ca91b13341b75facc96521c.zip gdb-afcad54a90445ba65ca91b13341b75facc96521c.tar.gz gdb-afcad54a90445ba65ca91b13341b75facc96521c.tar.bz2 |
CARP: *BREAKPOINT*
Convert mn10300, MIPS and powerpc/rs6000 targets to use
BREAKPOINT_FROM_PC
Delete global variable memory_breakpoint_size. Use BREAKPOINT_FROM_PC
instead.
Diffstat (limited to 'gdb/remote-array.c')
-rw-r--r-- | gdb/remote-array.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/remote-array.c b/gdb/remote-array.c index c17535d..f6f174f 100644 --- a/gdb/remote-array.c +++ b/gdb/remote-array.c @@ -1,5 +1,5 @@ /* Remote debugging interface for Array Tech RAID controller.. - Copyright 90, 91, 92, 93, 94, 1995 Free Software Foundation, Inc. + Copyright 90, 91, 92, 93, 94, 1995, 1998 Free Software Foundation, Inc. Contributed by Cygnus Support. Written by Rob Savoye for Cygnus. This module talks to a debug monitor called 'MONITOR', which @@ -1050,7 +1050,6 @@ array_mourn_inferior () #define MAX_ARRAY_BREAKPOINTS 16 -extern int memory_breakpoint_size; static CORE_ADDR breakaddr[MAX_ARRAY_BREAKPOINTS] = {0}; /* @@ -1062,15 +1061,18 @@ array_insert_breakpoint (addr, shadow) char *shadow; { int i; + int bp_size = 0; + int bp_addr = addr; debuglogs (1, "array_insert_breakpoint() addr = 0x%x", addr); + BREAKPOINT_FROM_PC (&bp_addr, &bp_size); for (i = 0; i <= MAX_ARRAY_BREAKPOINTS; i++) { if (breakaddr[i] == 0) { breakaddr[i] = addr; if (sr_get_debug() > 4) printf ("Breakpoint at %x\n", addr); - array_read_inferior_memory(addr, shadow, memory_breakpoint_size); + array_read_inferior_memory (bp_addr, shadow, bp_size); printf_monitor("b 0x%x\n", addr); expect_prompt(1); return 0; |