diff options
author | Dawn Perchik <dawn@cygnus> | 1998-07-23 21:48:28 +0000 |
---|---|---|
committer | Dawn Perchik <dawn@cygnus> | 1998-07-23 21:48:28 +0000 |
commit | 2474bfd7941b312d6aa79d00c395ef6e7c847405 (patch) | |
tree | ad41bae81e20b41f2bfae34fd8c26a610b6d7bbe /gdb/remote-mips.c | |
parent | 650a22721ede761cff0a22715618d8c55d271084 (diff) | |
download | gdb-2474bfd7941b312d6aa79d00c395ef6e7c847405.zip gdb-2474bfd7941b312d6aa79d00c395ef6e7c847405.tar.gz gdb-2474bfd7941b312d6aa79d00c395ef6e7c847405.tar.bz2 |
* remote-mips.c (remote_mips_insert_hw_breakpoint,
remote_mips_remove_hw_breakpoint): New functions for hardware
breakpoints on LSI targets.
* config/mips/tm-embed.h (target_remove_hw_breakpoint,
target_insert_hw_breakpoint): Define to call
remote_mips_insert_hw_breakpoint and remote_mips_remove_hw_breakpoint,
respectively.
Diffstat (limited to 'gdb/remote-mips.c')
-rw-r--r-- | gdb/remote-mips.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c index bdd50c5..75db2ee 100644 --- a/gdb/remote-mips.c +++ b/gdb/remote-mips.c @@ -2488,6 +2488,36 @@ calculate_mask (addr, len) return mask; } + +/* Insert a hardware breakpoint. This works only on LSI targets, which + implement ordinary breakpoints using hardware facilities. */ + +int +remote_mips_insert_hw_breakpoint (addr, contents_cache) + CORE_ADDR addr; + char *contents_cache; +{ + if (strcmp (target_shortname, "lsi") == 0) + return mips_insert_breakpoint (addr, contents_cache); + else + return -1; +} + + +/* Remove a hardware breakpoint. This works only on LSI targets, which + implement ordinary breakpoints using hardware facilities. */ + +int +remote_mips_remove_hw_breakpoint (addr, contents_cache) + CORE_ADDR addr; + char *contents_cache; +{ + if (strcmp (target_shortname, "lsi") == 0) + return mips_remove_breakpoint (addr, contents_cache); + else + return -1; +} + /* Set a data watchpoint. ADDR and LEN should be obvious. TYPE is 0 for a write watchpoint, 1 for a read watchpoint, or 2 for a read/write watchpoint. */ |