diff options
author | Jason Molenda <jmolenda@apple.com> | 1999-10-19 02:47:02 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 1999-10-19 02:47:02 +0000 |
commit | 917317f4c6550f3f3e0001d0a9e5a6acd6a2d1be (patch) | |
tree | 3ecc5a5d86fef50ae8715adacf956a2011797441 /gdb/mem-break.c | |
parent | 446a06c9b8819b20be7704f0b540471d76959c66 (diff) | |
download | binutils-gdb-917317f4c6550f3f3e0001d0a9e5a6acd6a2d1be.tar.gz |
import gdb-1999-10-18 snapshot
Diffstat (limited to 'gdb/mem-break.c')
-rw-r--r-- | gdb/mem-break.c | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/gdb/mem-break.c b/gdb/mem-break.c index da400e041c3..99db9d29233 100644 --- a/gdb/mem-break.c +++ b/gdb/mem-break.c @@ -84,7 +84,7 @@ memory_breakpoint_from_pc (pcptr, lenptr) is accomplished via BREAKPOINT_MAX). */ int -memory_insert_breakpoint (addr, contents_cache) +default_memory_insert_breakpoint (addr, contents_cache) CORE_ADDR addr; char *contents_cache; { @@ -109,7 +109,7 @@ memory_insert_breakpoint (addr, contents_cache) int -memory_remove_breakpoint (addr, contents_cache) +default_memory_remove_breakpoint (addr, contents_cache) CORE_ADDR addr; char *contents_cache; { @@ -123,3 +123,28 @@ memory_remove_breakpoint (addr, contents_cache) return target_write_memory (addr, contents_cache, bplen); } + + +#if !defined(MEMORY_INSERT_BREAKPOINT) +#define MEMORY_INSERT_BREAKPOINT(addr, contents_cache) \ + default_memory_insert_breakpoint(addr, contents_cache) +#endif +int +memory_insert_breakpoint (addr, contents_cache) + CORE_ADDR addr; + char *contents_cache; +{ + return MEMORY_INSERT_BREAKPOINT(addr, contents_cache); +} + +#if !defined(MEMORY_REMOVE_BREAKPOINT) +#define MEMORY_REMOVE_BREAKPOINT(addr, contents_cache) \ + default_memory_remove_breakpoint(addr, contents_cache) +#endif +int +memory_remove_breakpoint (addr, contents_cache) + CORE_ADDR addr; + char *contents_cache; +{ + return MEMORY_REMOVE_BREAKPOINT(addr, contents_cache); +} |