Use address style to print addresses in breakpoint information.
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Thu, 10 Jan 2019 21:32:19 +0000 (22:32 +0100)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Tue, 12 Feb 2019 19:00:39 +0000 (20:00 +0100)
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.

gdb/ChangeLog
gdb/breakpoint.c

index 20953e5c01c62e5c5ae10a290aefa9025fea283f..e8545aebfc00d0eb45381b6807cc890f0ddd541f 100644 (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
index bd05707d48f826ddb5cae92a5a4beacc06617166..67d83e6f4658a83a614b56cfca9e740904aaf119 100644 (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)
        {