aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-os9k.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1998-11-24 13:49:00 +0000
committerAndrew Cagney <cagney@redhat.com>1998-11-24 13:49:00 +0000
commitafcad54a90445ba65ca91b13341b75facc96521c (patch)
treefc90a9c47d68bdf243ba26027fc7e27283c9660d /gdb/remote-os9k.c
parentfbf1f3f1f6982710c5e379679ac4f18e795aeeb7 (diff)
downloadgdb-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-os9k.c')
-rw-r--r--gdb/remote-os9k.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/remote-os9k.c b/gdb/remote-os9k.c
index fa2e2bc..84a0f2b 100644
--- a/gdb/remote-os9k.c
+++ b/gdb/remote-os9k.c
@@ -886,7 +886,6 @@ rombug_mourn_inferior ()
#define MAX_MONITOR_BREAKPOINTS 16
-extern int memory_breakpoint_size;
static CORE_ADDR breakaddr[MAX_MONITOR_BREAKPOINTS] = {0};
static int
@@ -895,9 +894,12 @@ rombug_insert_breakpoint (addr, shadow)
char *shadow;
{
int i;
+ CORE_ADDR bp_addr = addr;
+ int bp_size = 0;
if (monitor_log)
fprintf (log_file, "\nIn Insert_breakpoint (addr=%x)\n", addr);
+ BREAKPOINT_FROM_PC (&bp_addr, &bp_size);
for (i = 0; i <= MAX_MONITOR_BREAKPOINTS; i++)
if (breakaddr[i] == 0)
@@ -905,7 +907,7 @@ rombug_insert_breakpoint (addr, shadow)
breakaddr[i] = addr;
if (sr_get_debug())
printf ("Breakpoint at %x\n", addr);
- rombug_read_inferior_memory(addr, shadow, memory_breakpoint_size);
+ rombug_read_inferior_memory (bp_addr, shadow, bp_size);
printf_monitor(SET_BREAK_CMD, addr);
is_trace_mode = 0;
expect_prompt(1);