diff options
author | Kris Warkentin <kewarken@qnx.com> | 2003-02-24 21:56:51 +0000 |
---|---|---|
committer | Kris Warkentin <kewarken@qnx.com> | 2003-02-24 21:56:51 +0000 |
commit | ed64e7e055ec09c7f30f00996407db8c414f6468 (patch) | |
tree | ce7c340ab26e408b1feb03e7d1bfbb79d15e60bd /gdb/target.h | |
parent | 439ff555d05bdc441f940c3f8fabd04960bcf3b0 (diff) | |
download | gdb-ed64e7e055ec09c7f30f00996407db8c414f6468.tar.gz |
add HAVE_CONTINUABLE_WATCHPOINT to target_ops
Diffstat (limited to 'gdb/target.h')
-rw-r--r-- | gdb/target.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/target.h b/gdb/target.h index 80e65381db1..f081bd36c12 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -256,6 +256,7 @@ struct target_ops int (*to_remove_watchpoint) (CORE_ADDR, int, int); int (*to_insert_watchpoint) (CORE_ADDR, int, int); int (*to_stopped_by_watchpoint) (void); + int to_have_continuable_watchpoint; CORE_ADDR (*to_stopped_data_address) (void); int (*to_region_size_ok_for_hw_watchpoint) (int); void (*to_terminal_init) (void); @@ -963,6 +964,13 @@ extern void (*target_new_objfile_hook) (struct objfile *); (*current_target.to_stopped_by_watchpoint) () #endif +/* Non-zero if we have continuable watchpoints */ + +#ifndef HAVE_CONTINUABLE_WATCHPOINT +#define HAVE_CONTINUABLE_WATCHPOINT \ + (current_target.to_have_continuable_watchpoint) +#endif + /* HP-UX supplies these operations, which respectively disable and enable the memory page-protections that are used to implement hardware watchpoints on that platform. See wait_for_inferior's use of these. */ |