Fix PR breakpoints/20739: Badly formatted adress string in error message
authorCordian A. Daniluk <th3c0r1uk@gmail.com>
Sat, 29 Oct 2016 18:39:57 +0000 (20:39 +0200)
committerPedro Alves <palves@redhat.com>
Tue, 8 Nov 2016 12:44:45 +0000 (12:44 +0000)
Remove duplicate `0x'-prefix for the hex address printed.  `paddress'
already prepends this, so no need to do it manually.

gdb/ChangeLog:
2016-11-08  Cordian A. Daniluk  <th3c0r1uk@gmail.com>

PR breakpoints/20739
* breakpoint.c (check_fast_tracepoint_sals): Don't print duplicate
0x prefix.

gdb/ChangeLog
gdb/breakpoint.c

index db5ec9bd41f6dbfc5e86021642cf1ac060adec07..099c63e6b06a93944678364ade24fa8c06a363c2 100644 (file)
@@ -1,3 +1,9 @@
+2016-11-08  Cordian A. Daniluk  <th3c0r1uk@gmail.com>
+
+       PR breakpoints/20739
+       * breakpoint.c (check_fast_tracepoint_sals): Don't print duplicate
+       0x prefix.
+
 2016-11-08  Yao Qi  <yao.qi@linaro.org>
 
        * rust-lang.c (val_print_struct): Fix indentation.
index 3908dabffecdbc375dfdfbeeb298a89e943a838b..9f9cb8af4144596fce37cc076f682e297610412c 100644 (file)
@@ -9653,7 +9653,7 @@ check_fast_tracepoint_sals (struct gdbarch *gdbarch,
       old_chain = make_cleanup (xfree, msg);
 
       if (!rslt)
-       error (_("May not have a fast tracepoint at 0x%s%s"),
+       error (_("May not have a fast tracepoint at %s%s"),
               paddress (sarch, sal->pc), (msg ? msg : ""));
 
       do_cleanups (old_chain);