From 841de12014d03189a7e0d8195bb77eba26648966 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 28 Sep 2020 19:38:25 -0600 Subject: Remove target_has_stack macro This removes the target_has_stack object-like macro, replacing it with the underlying function. gdb/ChangeLog 2020-09-28 Tom Tromey * windows-tdep.c (tlb_make_value): Update. * 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) (thread_command): Update. * stack.c (backtrace_command_1, frame_apply_level_command) (frame_apply_all_command, frame_apply_command): Update. * infrun.c (siginfo_make_value, restore_infcall_control_state): Update. * gcore.c (derive_stack_segment): Update. * frame.c (get_current_frame, has_stack_frames): Update. * auxv.c (info_auxv_command): Update. * ada-tasks.c (ada_build_task_list): Update. * target.c (target_has_stack): Rename from target_has_stack_1. * target.h (target_has_stack): Remove macro. (target_has_stack): Rename from target_has_stack_1. --- gdb/stack.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gdb/stack.c') diff --git a/gdb/stack.c b/gdb/stack.c index 616b629..4ba5500 100644 --- a/gdb/stack.c +++ b/gdb/stack.c @@ -2001,7 +2001,7 @@ backtrace_command_1 (const frame_print_options &fp_opts, int py_start = 0, py_end = 0; enum ext_lang_bt_status result = EXT_LANG_BT_ERROR; - if (!target_has_stack) + if (!target_has_stack ()) error (_("No stack.")); if (count_exp) @@ -3164,7 +3164,7 @@ frame_apply_cmd_completer (struct cmd_list_element *ignore, static void frame_apply_level_command (const char *cmd, int from_tty) { - if (!target_has_stack) + if (!target_has_stack ()) error (_("No stack.")); bool level_found = false; @@ -3212,7 +3212,7 @@ frame_apply_level_command (const char *cmd, int from_tty) static void frame_apply_all_command (const char *cmd, int from_tty) { - if (!target_has_stack) + if (!target_has_stack ()) error (_("No stack.")); frame_apply_command_count ("frame apply all", cmd, from_tty, @@ -3227,7 +3227,7 @@ frame_apply_command (const char* cmd, int from_tty) int count; struct frame_info *trailing; - if (!target_has_stack) + if (!target_has_stack ()) error (_("No stack.")); if (cmd == NULL) -- cgit v1.1