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 | 841de12014d03189a7e0d8195bb77eba26648966 (patch) | |
tree | 568242053f508126c76e2b318071692fe3915cd3 /gdb/infrun.c | |
parent | a739972c7c9818241fac0da589edb29adafc78c9 (diff) | |
download | gdb-841de12014d03189a7e0d8195bb77eba26648966.zip gdb-841de12014d03189a7e0d8195bb77eba26648966.tar.gz gdb-841de12014d03189a7e0d8195bb77eba26648966.tar.bz2 |
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 <tom@tromey.com>
* 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.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r-- | gdb/infrun.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c index 6532b06..118538d 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -8843,7 +8843,7 @@ static struct value * siginfo_make_value (struct gdbarch *gdbarch, struct internalvar *var, void *ignore) { - if (target_has_stack + if (target_has_stack () && inferior_ptid != null_ptid && gdbarch_get_siginfo_type_p (gdbarch)) { @@ -9078,7 +9078,7 @@ restore_infcall_control_state (struct infcall_control_state *inf_status) stop_stack_dummy = inf_status->stop_stack_dummy; stopped_by_random_signal = inf_status->stopped_by_random_signal; - if (target_has_stack) + if (target_has_stack ()) { /* The point of the try/catch is that if the stack is clobbered, walking the stack might encounter a garbage pointer and |