aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>2019-01-10 22:32:19 +0100
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>2019-02-12 20:00:39 +0100
commit2636d81d80ad34653d05d0d94207d62720bfd6aa (patch)
tree26f06ae179a4b92293eb877f8bc20e373db15b43 /gdb
parentac8c53cc67724f990003009fd37a3d7dc662fcb3 (diff)
downloadgdb-2636d81d80ad34653d05d0d94207d62720bfd6aa.zip
gdb-2636d81d80ad34653d05d0d94207d62720bfd6aa.tar.gz
gdb-2636d81d80ad34653d05d0d94207d62720bfd6aa.tar.bz2
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.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/breakpoint.c7
2 files changed, 10 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 20953e5..e8545ae 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
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
style to print function name.
* c-typeprint.c (c_print_type_1): Likewise.
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index bd05707..67d83e6 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -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)
{