forked from Imagelibrary/binutils-gdb
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 <tom@tromey.com> * 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.
This commit is contained in:
@@ -9145,7 +9145,7 @@ static void
|
||||
set_exec_direction_func (const char *args, int from_tty,
|
||||
struct cmd_list_element *cmd)
|
||||
{
|
||||
if (target_can_execute_reverse)
|
||||
if (target_can_execute_reverse ())
|
||||
{
|
||||
if (!strcmp (exec_direction, exec_forward))
|
||||
execution_direction = EXEC_FORWARD;
|
||||
|
||||
Reference in New Issue
Block a user