From 53c3572a9f5b03a92292cb6d24bf69b52c95500e Mon Sep 17 00:00:00 2001 From: "Cordian A. Daniluk" Date: Sat, 29 Oct 2016 20:39:57 +0200 Subject: [PATCH] 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 PR breakpoints/20739 * breakpoint.c (check_fast_tracepoint_sals): Don't print duplicate 0x prefix. --- gdb/ChangeLog | 6 ++++++ gdb/breakpoint.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index db5ec9bd41f..099c63e6b06 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2016-11-08 Cordian A. Daniluk + + PR breakpoints/20739 + * breakpoint.c (check_fast_tracepoint_sals): Don't print duplicate + 0x prefix. + 2016-11-08 Yao Qi * rust-lang.c (val_print_struct): Fix indentation. diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 3908dabffec..9f9cb8af414 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); -- 2.30.2