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 | 05374cfd90b59c62f9230baa19e71a3d9ed27269 (patch) | |
tree | 059e038abb0a1568752db28073eb6ed64ce78177 /gdb/target.c | |
parent | 9dccd06e8a4e55adb58d8ebe7f2ed7d9d7dc17de (diff) | |
download | gdb-05374cfd90b59c62f9230baa19e71a3d9ed27269.zip gdb-05374cfd90b59c62f9230baa19e71a3d9ed27269.tar.gz gdb-05374cfd90b59c62f9230baa19e71a3d9ed27269.tar.bz2 |
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.
Diffstat (limited to 'gdb/target.c')
-rw-r--r-- | gdb/target.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/target.c b/gdb/target.c index ea15357..4f58daa 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -525,7 +525,7 @@ default_get_ada_task_ptid (struct target_ops *self, long lwp, long tid) static enum exec_direction_kind default_execution_direction (struct target_ops *self) { - if (!target_can_execute_reverse) + if (!target_can_execute_reverse ()) return EXEC_FORWARD; else if (!target_can_async_p ()) return EXEC_FORWARD; |