struct dummy_frame *s;
for (s = dummy_frame_stack; s != NULL; s = s->next)
- fprintf_unfiltered (file, "%s: id=%s, ptid=%s\n",
- host_address_to_string (s),
- s->id.id.to_string ().c_str (),
- target_pid_to_str (s->id.thread->ptid).c_str ());
+ fprintf_filtered (file, "%s: id=%s, ptid=%s\n",
+ host_address_to_string (s),
+ s->id.id.to_string ().c_str (),
+ target_pid_to_str (s->id.thread->ptid).c_str ());
}
static void
arguments. */
void dump (ui_file *file, const char *args) const
{
- fprintf_unfiltered (file,
- _("-flag %d -xx1 %d -xx2 %d -bool %d "
- "-enum %s -uint %s -zuint-unl %s -string '%s' -- %s\n"),
- flag_opt,
- xx1_opt,
- xx2_opt,
- boolean_opt,
- enum_opt,
- (uint_opt == UINT_MAX
- ? "unlimited"
- : pulongest (uint_opt)),
- (zuint_unl_opt == -1
- ? "unlimited"
- : plongest (zuint_unl_opt)),
- string_opt.c_str (),
- args);
+ fprintf_filtered (file,
+ _("-flag %d -xx1 %d -xx2 %d -bool %d "
+ "-enum %s -uint %s -zuint-unl %s -string '%s' -- %s\n"),
+ flag_opt,
+ xx1_opt,
+ xx2_opt,
+ boolean_opt,
+ enum_opt,
+ (uint_opt == UINT_MAX
+ ? "unlimited"
+ : pulongest (uint_opt)),
+ (zuint_unl_opt == -1
+ ? "unlimited"
+ : plongest (zuint_unl_opt)),
+ string_opt.c_str (),
+ args);
}
};
if (regnum < 0)
{
if (m_dump_pseudo)
- fprintf_unfiltered (file, "Cooked value");
+ fprintf_filtered (file, "Cooked value");
else
- fprintf_unfiltered (file, "Raw value");
+ fprintf_filtered (file, "Raw value");
}
else
{
auto status = m_regcache->cooked_read (regnum, buf.data ());
if (status == REG_UNKNOWN)
- fprintf_unfiltered (file, "<invalid>");
+ fprintf_filtered (file, "<invalid>");
else if (status == REG_UNAVAILABLE)
- fprintf_unfiltered (file, "<unavailable>");
+ fprintf_filtered (file, "<unavailable>");
else
{
print_hex_chars (file, buf.data (), size,
{
/* Just print "<cooked>" for pseudo register when
regcache_dump_raw. */
- fprintf_unfiltered (file, "<cooked>");
+ fprintf_filtered (file, "<cooked>");
}
}
}
if (regnum < 0)
{
if (m_has_pseudo)
- fprintf_unfiltered (file, "Cooked value");
+ fprintf_filtered (file, "Cooked value");
else
- fprintf_unfiltered (file, "Raw value");
+ fprintf_filtered (file, "Raw value");
}
else
{
gdb_assert (status != REG_VALID);
if (status == REG_UNKNOWN)
- fprintf_unfiltered (file, "<invalid>");
+ fprintf_filtered (file, "<invalid>");
else
- fprintf_unfiltered (file, "<unavailable>");
+ fprintf_filtered (file, "<unavailable>");
}
else
{
/* Just print "<cooked>" for pseudo register when
regcache_dump_raw. */
- fprintf_unfiltered (file, "<cooked>");
+ fprintf_filtered (file, "<cooked>");
}
}
}
{
if (regnum < 0)
{
- fprintf_unfiltered (file, "Rmt Nr g/G Offset");
+ fprintf_filtered (file, "Rmt Nr g/G Offset");
}
else if (regnum < gdbarch_num_regs (m_gdbarch))
{
if (remote_register_number_and_offset (m_gdbarch, regnum,
&pnum, &poffset))
- fprintf_unfiltered (file, "%7d %11d", pnum, poffset);
+ fprintf_filtered (file, "%7d %11d", pnum, poffset);
}
}
};
void dump_reg (ui_file *file, int regnum) override
{
if (regnum < 0)
- fprintf_unfiltered (file, "Groups");
+ fprintf_filtered (file, "Groups");
else
{
const char *sep = "";
{
if (gdbarch_register_reggroup_p (m_gdbarch, regnum, group))
{
- fprintf_unfiltered (file,
- "%s%s", sep, reggroup_name (group));
+ fprintf_filtered (file,
+ "%s%s", sep, reggroup_name (group));
sep = ",";
}
}
{
/* Name. */
if (regnum < 0)
- fprintf_unfiltered (file, " %-10s", "Name");
+ fprintf_filtered (file, " %-10s", "Name");
else
{
const char *p = gdbarch_register_name (m_gdbarch, regnum);
p = "";
else if (p[0] == '\0')
p = "''";
- fprintf_unfiltered (file, " %-10s", p);
+ fprintf_filtered (file, " %-10s", p);
}
/* Number. */
if (regnum < 0)
- fprintf_unfiltered (file, " %4s", "Nr");
+ fprintf_filtered (file, " %4s", "Nr");
else
- fprintf_unfiltered (file, " %4d", regnum);
+ fprintf_filtered (file, " %4d", regnum);
/* Relative number. */
if (regnum < 0)
- fprintf_unfiltered (file, " %4s", "Rel");
+ fprintf_filtered (file, " %4s", "Rel");
else if (regnum < gdbarch_num_regs (m_gdbarch))
- fprintf_unfiltered (file, " %4d", regnum);
+ fprintf_filtered (file, " %4d", regnum);
else
- fprintf_unfiltered (file, " %4d",
- (regnum - gdbarch_num_regs (m_gdbarch)));
+ fprintf_filtered (file, " %4d",
+ (regnum - gdbarch_num_regs (m_gdbarch)));
/* Offset. */
if (regnum < 0)
- fprintf_unfiltered (file, " %6s ", "Offset");
+ fprintf_filtered (file, " %6s ", "Offset");
else
{
- fprintf_unfiltered (file, " %6ld",
- descr->register_offset[regnum]);
+ fprintf_filtered (file, " %6ld",
+ descr->register_offset[regnum]);
if (register_offset != descr->register_offset[regnum]
|| (regnum > 0
&& (descr->register_offset[regnum]
{
if (!footnote_register_offset)
footnote_register_offset = ++footnote_nr;
- fprintf_unfiltered (file, "*%d", footnote_register_offset);
+ fprintf_filtered (file, "*%d", footnote_register_offset);
}
else
- fprintf_unfiltered (file, " ");
+ fprintf_filtered (file, " ");
register_offset = (descr->register_offset[regnum]
+ descr->sizeof_register[regnum]);
}
/* Size. */
if (regnum < 0)
- fprintf_unfiltered (file, " %5s ", "Size");
+ fprintf_filtered (file, " %5s ", "Size");
else
- fprintf_unfiltered (file, " %5ld", descr->sizeof_register[regnum]);
+ fprintf_filtered (file, " %5ld", descr->sizeof_register[regnum]);
/* Type. */
{
if (startswith (t, blt))
t += strlen (blt);
}
- fprintf_unfiltered (file, " %-15s", t);
+ fprintf_filtered (file, " %-15s", t);
}
/* Leading space always present. */
- fprintf_unfiltered (file, " ");
+ fprintf_filtered (file, " ");
dump_reg (file, regnum);
- fprintf_unfiltered (file, "\n");
+ fprintf_filtered (file, "\n");
}
if (footnote_register_offset)
- fprintf_unfiltered (file, "*%d: Inconsistent register offsets.\n",
- footnote_register_offset);
+ fprintf_filtered (file, "*%d: Inconsistent register offsets.\n",
+ footnote_register_offset);
if (footnote_register_type_name_null)
- fprintf_unfiltered (file,
- "*%d: Register type's name NULL.\n",
- footnote_register_type_name_null);
+ fprintf_filtered (file,
+ "*%d: Register type's name NULL.\n",
+ footnote_register_type_name_null);
}
#if GDB_SELF_TEST
name = "Group";
else
name = reggroup_name (group);
- fprintf_unfiltered (file, " %-10s", name);
+ fprintf_filtered (file, " %-10s", name);
}
/* Group type. */
internal_error (__FILE__, __LINE__, _("bad switch"));
}
}
- fprintf_unfiltered (file, " %-10s", type);
+ fprintf_filtered (file, " %-10s", type);
}
/* Note: If you change this, be sure to also update the
documentation. */
- fprintf_unfiltered (file, "\n");
+ fprintf_filtered (file, "\n");
group = reggroup_next (gdbarch, group);
}