diff options
Diffstat (limited to 'gdb/remote-mips.c')
-rw-r--r-- | gdb/remote-mips.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c index e47aa6e8c99..36e15aab067 100644 --- a/gdb/remote-mips.c +++ b/gdb/remote-mips.c @@ -2216,27 +2216,26 @@ mips_mourn_inferior (void) /* Insert a breakpoint. On targets that don't have built-in breakpoint support, we read the contents of the target location and stash it, then overwrite it with a breakpoint instruction. ADDR is - the target location in the target machine. CONTENTS_CACHE is a - pointer to memory allocated for saving the target contents. It is - guaranteed by the caller to be long enough to save the breakpoint - length returned by BREAKPOINT_FROM_PC. */ + the target location in the target machine. BPT is the breakpoint + being inserted or removed, which contains memory for saving the + target contents. */ static int -mips_insert_breakpoint (CORE_ADDR addr, char *contents_cache) +mips_insert_breakpoint (CORE_ADDR addr, struct bp_location *bpt) { if (monitor_supports_breakpoints) return set_breakpoint (addr, MIPS_INSN32_SIZE, BREAK_FETCH); else - return memory_insert_breakpoint (addr, contents_cache); + return memory_insert_breakpoint (addr, bpt); } static int -mips_remove_breakpoint (CORE_ADDR addr, char *contents_cache) +mips_remove_breakpoint (CORE_ADDR addr, struct bp_location *bpt) { if (monitor_supports_breakpoints) return clear_breakpoint (addr, MIPS_INSN32_SIZE, BREAK_FETCH); else - return memory_remove_breakpoint (addr, contents_cache); + return memory_remove_breakpoint (addr, bpt); } /* Tell whether this target can support a hardware breakpoint. CNT |