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 db5ec9b..099c63e 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 3908dab..9f9cb8a 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);