From a739972c7c9818241fac0da589edb29adafc78c9 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 28 Sep 2020 19:38:25 -0600 Subject: Remove target_has_memory macro This removes the target_has_memory object-like macro, replacing it with the underlying function. gdb/ChangeLog 2020-09-28 Tom Tromey * target.c (target_has_memory): Rename from target_has_memory_1. * tui/tui-regs.c (tui_data_window::show_registers): Update. * thread.c (scoped_restore_current_thread::restore) (scoped_restore_current_thread::scoped_restore_current_thread): Update. * frame.c (get_current_frame, has_stack_frames): Update. * target.h (target_has_memory): Remove macro. (target_has_memory): Rename from target_has_memory_1. --- gdb/target.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/target.c') diff --git a/gdb/target.c b/gdb/target.c index 6596efa..3bcd6cb 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -170,7 +170,7 @@ show_targetdebug (struct ui_file *file, int from_tty, } int -target_has_memory_1 (void) +target_has_memory () { for (target_ops *t = current_top_target (); t != NULL; t = t->beneath ()) if (t->has_memory ()) -- cgit v1.1