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 | a739972c7c9818241fac0da589edb29adafc78c9 (patch) | |
tree | ab19c4558884aa6ea0c852249622992365748b88 /gdb/thread.c | |
parent | 5b8a477608a972184e03b6950965757a0d057543 (diff) | |
download | binutils-a739972c7c9818241fac0da589edb29adafc78c9.zip binutils-a739972c7c9818241fac0da589edb29adafc78c9.tar.gz binutils-a739972c7c9818241fac0da589edb29adafc78c9.tar.bz2 |
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 <tom@tromey.com>
* 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.
Diffstat (limited to 'gdb/thread.c')
-rw-r--r-- | gdb/thread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/thread.c b/gdb/thread.c index 0217f3b..ba119b0 100644 --- a/gdb/thread.c +++ b/gdb/thread.c @@ -1407,7 +1407,7 @@ scoped_restore_current_thread::restore () && m_thread->state == THREAD_STOPPED && target_has_registers && target_has_stack - && target_has_memory) + && target_has_memory ()) restore_selected_frame (m_selected_frame_id, m_selected_frame_level); } @@ -1441,7 +1441,7 @@ scoped_restore_current_thread::scoped_restore_current_thread () if (m_was_stopped && target_has_registers && target_has_stack - && target_has_memory) + && target_has_memory ()) { /* When processing internal events, there might not be a selected frame. If we naively call get_selected_frame |