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/reverse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/reverse.c') diff --git a/gdb/reverse.c b/gdb/reverse.c index 583e0d0..4aa2225 100644 --- a/gdb/reverse.c +++ b/gdb/reverse.c @@ -44,7 +44,7 @@ exec_reverse_once (const char *cmd, const char *args, int from_tty) error (_("Already in reverse mode. Use '%s' or 'set exec-dir forward'."), cmd); - if (!target_can_execute_reverse) + if (!target_can_execute_reverse ()) error (_("Target %s does not support this command."), target_shortname); std::string reverse_command = string_printf ("%s %s", cmd, args ? args : ""); -- cgit v1.1