gdb_printf (stream, "(");
type_print (type, "", stream, -1);
gdb_printf (stream, ") ");
- gdb_puts (paddress (gdbarch, addr), stream);
+ fputs_styled (paddress (gdbarch, addr), address_style.style (),
+ stream);
}
else
{
#include "cp-abi.h"
#include "target.h"
#include "objfiles.h"
+#include "cli/cli-style.h"
\f
/* A helper for c_textual_element_type. This checks the name of the
demangle);
else if (options->addressprint)
{
- gdb_puts (paddress (gdbarch, address), stream);
+ fputs_styled (paddress (gdbarch, address), address_style.style (),
+ stream);
want_space = 1;
}
stream, demangle);
else if (options->addressprint && options->format != 's')
{
- gdb_puts (paddress (gdbarch, addr), stream);
+ fputs_styled (paddress (gdbarch, addr), address_style.style (),
+ stream);
want_space = 1;
}
/* TODO(dje): Print address of struct or actual string? */
if (options->addressprint)
{
- gdb_puts (paddress (gdbarch, addr), stream);
+ fputs_styled (paddress (gdbarch, addr), address_style.style (), stream);
gdb_puts (" ", stream);
}
if (from_tty)
{
gdb_printf (_("Continuing at "));
- gdb_puts (paddress (gdbarch, addr));
+ fputs_styled (paddress (gdbarch, addr), address_style.style (),
+ gdb_stdout);
gdb_printf (".\n");
}
if (options->addressprint && options->format != 's')
{
- gdb_puts (paddress (gdbarch, address), stream);
+ fputs_styled (paddress (gdbarch, address), address_style.style (),
+ stream);
want_space = 1;
}
struct type *elttype = check_typedef (type->target_type ());
gdb_printf (stream, "[");
- gdb_puts (paddress (gdbarch, addr), stream);
+ fputs_styled (paddress (gdbarch, addr), address_style.style (), stream);
gdb_printf (stream, "] : ");
if (elttype->code () != TYPE_CODE_UNDEF)
if (options->addressprint && options->format != 's')
{
- gdb_puts (paddress (gdbarch, addr), stream);
+ fputs_styled (paddress (gdbarch, addr), address_style.style (),
+ stream);
want_space = 1;
}
if (opts.addressprint)
{
- gdb_puts (paddress (arch, addr), stream);
+ fputs_styled (paddress (arch, addr), address_style.style (),
+ stream);
gdb_puts (" ", stream);
}
name = bfd_section_name (osect.the_bfd_section);
gdb_printf ("Section %s, loaded at ", name);
- gdb_puts (paddress (gdbarch, lma));
+ fputs_styled (paddress (gdbarch, lma), address_style.style (),
+ gdb_stdout);
gdb_puts (" - ");
- gdb_puts (paddress (gdbarch, lma + size));
+ fputs_styled (paddress (gdbarch, lma + size),
+ address_style.style (), gdb_stdout);
gdb_printf (", mapped at ");
- gdb_puts (paddress (gdbarch, vma));
+ fputs_styled (paddress (gdbarch, vma), address_style.style (),
+ gdb_stdout);
gdb_puts (" - ");
- gdb_puts (paddress (gdbarch, vma + size));
+ fputs_styled (paddress (gdbarch, vma + size),
+ address_style.style (), gdb_stdout);
gdb_puts ("\n");
nmapped++;
not try to respect copy relocations. */
CORE_ADDR addr = (CORE_ADDR (msymbol->unrelocated_address ())
+ objfile->section_offsets[msymbol->section_index ()]);
- gdb_puts (paddress (gdbarch, addr), outfile);
+ fputs_styled (paddress (gdbarch, addr), address_style.style (), outfile);
gdb_printf (outfile, " %s", msymbol->linkage_name ());
if (section)
{
for (int i = 0; i < len; i++)
{
gdb_printf (outfile, _(" line %d at "), l->item[i].line);
- gdb_puts (paddress (gdbarch, l->item[i].pc (objfile)), outfile);
+ fputs_styled (paddress (gdbarch, l->item[i].pc (objfile)),
+ address_style.style (), outfile);
if (l->item[i].is_stmt)
gdb_printf (outfile, _("\t(stmt)"));
gdb_printf (outfile, "\n");
wants it. */
gdb_printf (outfile, _(", %d symbols in "),
mdict_size (b->multidict ()));
- gdb_puts (paddress (gdbarch, b->start ()), outfile);
+ fputs_styled (paddress (gdbarch, b->start ()),
+ address_style.style (), outfile);
gdb_printf (outfile, "..");
- gdb_puts (paddress (gdbarch, b->end ()), outfile);
+ fputs_styled (paddress (gdbarch, b->end ()),
+ address_style.style (), outfile);
if (b->function ())
{
gdb_printf (outfile, _(", function %ps"),
if (symbol->domain () == LABEL_DOMAIN)
{
gdb_printf (outfile, _("label %s at "), symbol->print_name ());
- gdb_puts (paddress (gdbarch, symbol->value_address ()),
- outfile);
+ fputs_styled (paddress (gdbarch, symbol->value_address ()),
+ address_style.style (), outfile);
if (section)
gdb_printf (outfile, _(" section %s\n"),
bfd_section_name (section->the_bfd_section));
case LOC_STATIC:
gdb_printf (outfile, _("static at "));
- gdb_puts (paddress (gdbarch, symbol->value_address ()), outfile);
+ fputs_styled (paddress (gdbarch, symbol->value_address ()),
+ address_style.style (), outfile);
if (section)
gdb_printf (outfile, _(" section %s"),
bfd_section_name (section->the_bfd_section));
case LOC_LABEL:
gdb_printf (outfile, _("label at "));
- gdb_puts (paddress (gdbarch, symbol->value_address ()), outfile);
+ fputs_styled (paddress (gdbarch, symbol->value_address ()),
+ address_style.style (), outfile);
if (section)
gdb_printf (outfile, _(" section %s"),
bfd_section_name (section->the_bfd_section));
if (options->symbol_print)
print_address_demangle (options, gdbarch, address, stream, demangle);
else if (options->addressprint)
- gdb_puts (paddress (gdbarch, address), stream);
+ fputs_styled (paddress (gdbarch, address), address_style.style (),
+ stream);
}
/* generic_val_print helper for TYPE_CODE_ARRAY. */
= extract_typed_address (address_buffer + embedded_offset, type);
gdb_printf (stream, "@");
- gdb_puts (paddress (gdbarch, address), stream);
+ fputs_styled (paddress (gdbarch, address), address_style.style (),
+ stream);
}
/* Else: we have a non-addressable value, such as a DW_AT_const_value. */
}
if (options->addressprint && func_addr != address)
{
gdb_puts ("@", stream);
- gdb_puts (paddress (gdbarch, address), stream);
+ fputs_styled (paddress (gdbarch, address), address_style.style (),
+ stream);
gdb_puts (": ", stream);
}
print_address_demangle (options, gdbarch, func_addr, stream, demangle);