This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] Fix PR breakpoints/20739: Badly formatted adress string in error message
- From: "Cordian A. Daniluk" <th3c0r1uk at gmail dot com>
- To: gdb-patches at sourceware dot org
- Cc: "Cordian A. Daniluk" <th3c0r1uk at gmail dot com>
- Date: Sat, 29 Oct 2016 20:39:57 +0200
- Subject: [PATCH] Fix PR breakpoints/20739: Badly formatted adress string in error message
- Authentication-results: sourceware.org; auth=none
Remove duplicate `0x'-prefix for the hex address printed. `paddress'
already prepends this, so no need to do it manually.
gdb/ChangeLog:
* breakpoint.c (check_fast_tracepoint_sals): fix PR
breakpoints/20739
---
gdb/breakpoint.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 25849da..0adebae 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -9628,7 +9628,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);
--
2.9.2