From: Cordian A. Daniluk Date: Sat, 29 Oct 2016 18:39:57 +0000 (+0200) Subject: Fix PR breakpoints/20739: Badly formatted adress string in error message X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=53c3572a9f5b03a92292cb6d24bf69b52c95500e;p=binutils-gdb.git 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. --- 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);