From 05374cfd90b59c62f9230baa19e71a3d9ed27269 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 28 Sep 2020 19:38:25 -0600 Subject: Turn target_can_execute_reverse into function This changes target_can_execute_reverse from an object-like macro to an inline function. gdb/ChangeLog 2020-09-28 Tom Tromey * mi/mi-main.c (exec_reverse_continue) (mi_cmd_list_target_features): Update. * infrun.c (set_exec_direction_func): Update. * target.c (default_execution_direction): Update. * reverse.c (exec_reverse_once): Update. * target.h (target_can_execute_reverse): Now a function. --- gdb/target.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'gdb/target.h') diff --git a/gdb/target.h b/gdb/target.h index f58334a..ea777f2 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -2117,8 +2117,11 @@ extern int target_ranged_break_num_registers (void); extern int target_masked_watch_num_registers (CORE_ADDR addr, CORE_ADDR mask); /* Target can execute in reverse? */ -#define target_can_execute_reverse \ - current_top_target ()->can_execute_reverse () +static inline bool +target_can_execute_reverse () +{ + return current_top_target ()->can_execute_reverse (); +} extern const struct target_desc *target_read_description (struct target_ops *); -- cgit v1.1