aboutsummaryrefslogtreecommitdiff
path: root/gdb/frame.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2020-09-28 19:38:25 -0600
committerTom Tromey <tom@tromey.com>2020-09-28 19:52:21 -0600
commita739972c7c9818241fac0da589edb29adafc78c9 (patch)
treeab19c4558884aa6ea0c852249622992365748b88 /gdb/frame.c
parent5b8a477608a972184e03b6950965757a0d057543 (diff)
downloadgdb-a739972c7c9818241fac0da589edb29adafc78c9.zip
gdb-a739972c7c9818241fac0da589edb29adafc78c9.tar.gz
gdb-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/frame.c')
-rw-r--r--gdb/frame.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/frame.c b/gdb/frame.c
index 0b708e6..113fe8a 100644
--- a/gdb/frame.c
+++ b/gdb/frame.c
@@ -1657,7 +1657,7 @@ get_current_frame (void)
error (_("No registers."));
if (!target_has_stack)
error (_("No stack."));
- if (!target_has_memory)
+ if (!target_has_memory ())
error (_("No memory."));
/* Traceframes are effectively a substitute for the live inferior. */
if (get_traceframe_number () < 0)
@@ -1692,7 +1692,7 @@ static struct frame_info *selected_frame;
bool
has_stack_frames ()
{
- if (!target_has_registers || !target_has_stack || !target_has_memory)
+ if (!target_has_registers || !target_has_stack || !target_has_memory ())
return false;
/* Traceframes are effectively a substitute for the live inferior. */