Use address style to print addresses in breakpoint information.

gdb/ChangeLog
2019-02-12  Philippe Waroquiers  <philippe.waroquiers@skynet.be>

	* breakpoint.c (describe_other_breakpoints): Use address style
	to print addresses.
	(say_where): Likewise.
This commit is contained in:
Philippe Waroquiers 2019-01-10 22:32:19 +01:00
parent ac8c53cc67
commit 2636d81d80
2 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
* breakpoint.c (describe_other_breakpoints): Use address style
to print addresses.
(say_where): Likewise.
2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
* ada-typeprint.c (print_func_type): Print function name

View File

@ -6701,7 +6701,7 @@ describe_other_breakpoints (struct gdbarch *gdbarch,
: ((others == 1) ? " and" : ""));
}
printf_filtered (_("also set at pc "));
fputs_filtered (paddress (gdbarch, pc), gdb_stdout);
fputs_styled (paddress (gdbarch, pc), address_style.style (), gdb_stdout);
printf_filtered (".\n");
}
}
@ -12130,8 +12130,9 @@ say_where (struct breakpoint *b)
if (opts.addressprint || b->loc->symtab == NULL)
{
printf_filtered (" at ");
fputs_filtered (paddress (b->loc->gdbarch, b->loc->address),
gdb_stdout);
fputs_styled (paddress (b->loc->gdbarch, b->loc->address),
address_style.style (),
gdb_stdout);
}
if (b->loc->symtab != NULL)
{