aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2020-09-28 19:38:25 -0600
committerTom Tromey <tom@tromey.com>2020-09-28 19:52:21 -0600
commit9aed480c3a725d3651d9035cba05c2daaeb5d7d0 (patch)
tree62bc845a9f1d020027cf69b875ae4823aceb2610 /gdb/target.h
parent8a3ecb79b031d578cbdbac5e70784c157ff6387d (diff)
downloadgdb-9aed480c3a725d3651d9035cba05c2daaeb5d7d0.zip
gdb-9aed480c3a725d3651d9035cba05c2daaeb5d7d0.tar.gz
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/target.h')
-rw-r--r--gdb/target.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/gdb/target.h b/gdb/target.h
index 9ebb0c3..695f1b2 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -2009,8 +2009,11 @@ extern gdb::byte_vector target_thread_info_to_thread_handle
/* Non-zero if we have steppable watchpoints */
-#define target_have_steppable_watchpoint \
- (current_top_target ()->have_steppable_watchpoint ())
+static inline bool
+target_have_steppable_watchpoint ()
+{
+ return current_top_target ()->have_steppable_watchpoint ();
+}
/* Provide defaults for hardware watchpoint functions. */