aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
diff options
context:
space:
mode:
authorCordian A. Daniluk <th3c0r1uk@gmail.com>2016-10-29 20:39:57 +0200
committerPedro Alves <palves@redhat.com>2016-11-08 12:44:45 +0000
commit53c3572a9f5b03a92292cb6d24bf69b52c95500e (patch)
tree3df69a505c8e6e23d4492e8f801883fa04490215 /gdb/breakpoint.c
parent3b0d929dd61fcd55b4ef320a2033c731443b394f (diff)
downloadgdb-53c3572a9f5b03a92292cb6d24bf69b52c95500e.zip
gdb-53c3572a9f5b03a92292cb6d24bf69b52c95500e.tar.gz
gdb-53c3572a9f5b03a92292cb6d24bf69b52c95500e.tar.bz2
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.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r--gdb/breakpoint.c2
1 files changed, 1 insertions, 1 deletions
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);