+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.
+
2020-09-28 Tom Tromey <tom@tromey.com>
* target.c (target_has_all_memory_1): Remove.
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)
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. */
}
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 ())
/* Does the target include memory? (Dummy targets don't.) */
-extern int target_has_memory_1 (void);
-#define target_has_memory target_has_memory_1 ()
+extern int target_has_memory ();
/* Does the target have a stack? (Exec files don't, VxWorks doesn't, until
we start a process.) */
&& 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);
}
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
if (group == 0)
group = general_reggroup;
- if (target_has_registers && target_has_stack && target_has_memory)
+ if (target_has_registers && target_has_stack && target_has_memory ())
{
show_register_group (group, get_selected_frame (NULL),
group == m_current_group);