* 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.
This commit is contained in:
parent
650a22721e
commit
2474bfd794
2 changed files with 40 additions and 0 deletions
|
@ -1,3 +1,13 @@
|
||||||
|
Thu Jul 23 14:49:27 1998 Dawn Perchik <dawn@cygnus.com>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
start-sanitize-sky
|
start-sanitize-sky
|
||||||
Thu Jul 23 13:00:28 1998 Ian Carmichael <iancarm@cygnus.com>
|
Thu Jul 23 13:00:28 1998 Ian Carmichael <iancarm@cygnus.com>
|
||||||
|
|
||||||
|
|
|
@ -2488,6 +2488,36 @@ calculate_mask (addr, len)
|
||||||
return mask;
|
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
|
/* 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
|
for a write watchpoint, 1 for a read watchpoint, or 2 for a read/write
|
||||||
watchpoint. */
|
watchpoint. */
|
||||||
|
|
Loading…
Reference in a new issue