This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Fix PR breakpoints/20739: Badly formatted adress string in error message
- From: Pedro Alves <palves at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 8 Nov 2016 12:45:17 -0000
- Subject: [binutils-gdb] Fix PR breakpoints/20739: Badly formatted adress string in error message
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=53c3572a9f5b03a92292cb6d24bf69b52c95500e
commit 53c3572a9f5b03a92292cb6d24bf69b52c95500e
Author: Cordian A. Daniluk <th3c0r1uk@gmail.com>
Date: Sat Oct 29 20:39:57 2016 +0200
Fix PR breakpoints/20739: Badly formatted adress string in error message
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.
Diff:
---
gdb/ChangeLog | 6 ++++++
gdb/breakpoint.c | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index db5ec9b..099c63e 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 3908dab..9f9cb8a 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -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);