diff options
author | Tom Tromey <tom@tromey.com> | 2020-09-28 19:38:25 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2020-09-28 19:52:21 -0600 |
commit | 9aed480c3a725d3651d9035cba05c2daaeb5d7d0 (patch) | |
tree | 62bc845a9f1d020027cf69b875ae4823aceb2610 /gdb/procfs.c | |
parent | 8a3ecb79b031d578cbdbac5e70784c157ff6387d (diff) | |
download | fsf-binutils-gdb-9aed480c3a725d3651d9035cba05c2daaeb5d7d0.zip fsf-binutils-gdb-9aed480c3a725d3651d9035cba05c2daaeb5d7d0.tar.gz fsf-binutils-gdb-9aed480c3a725d3651d9035cba05c2daaeb5d7d0.tar.bz2 |
Turn target_have_steppable_watchpoint into function
This changes the object-like macro target_have_steppable_watchpoint
into an inline function.
gdb/ChangeLog
2020-09-28 Tom Tromey <tom@tromey.com>
* infrun.c (displaced_step_fixup, thread_still_needs_step_over)
(handle_signal_stop): Update.
* procfs.c (procfs_target::insert_watchpoint): Update.
* target.h (target_have_steppable_watchpoint): Now a function.
Diffstat (limited to 'gdb/procfs.c')
-rw-r--r-- | gdb/procfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/procfs.c b/gdb/procfs.c index a06f035..c017f4a 100644 --- a/gdb/procfs.c +++ b/gdb/procfs.c @@ -3085,7 +3085,7 @@ procfs_target::insert_watchpoint (CORE_ADDR addr, int len, enum target_hw_bp_type type, struct expression *cond) { - if (!target_have_steppable_watchpoint + if (!target_have_steppable_watchpoint () && !gdbarch_have_nonsteppable_watchpoint (target_gdbarch ())) /* When a hardware watchpoint fires off the PC will be left at the instruction following the one which caused the |