aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2012-05-15 16:42:43 +0000
committerJoel Brobecker <brobecker@gnat.com>2012-05-15 16:42:43 +0000
commit588ae58cd240954b57008c7796540314d85ac580 (patch)
treece5e958cd38102c7b4ed84ece64bc0051108635e /gdb/breakpoint.c
parent855a6e6874c43c10ac5d1e8ca7f2b4137dc0c5c2 (diff)
downloadgdb-588ae58cd240954b57008c7796540314d85ac580.zip
gdb-588ae58cd240954b57008c7796540314d85ac580.tar.gz
gdb-588ae58cd240954b57008c7796540314d85ac580.tar.bz2
init_breakpoint_sal: Add quotes around part of command in error message
gdb/ChangeLog: * breakpoint.c (init_breakpoint_sal): Add quotes around part of command in two error message.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r--gdb/breakpoint.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 9eecdf8..1a76754 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -8629,7 +8629,7 @@ init_breakpoint_sal (struct breakpoint *b, struct gdbarch *gdbarch,
char *arg = b->cond_string;
loc->cond = parse_exp_1 (&arg, block_for_pc (loc->address), 0);
if (*arg)
- error (_("Garbage %s follows condition"), arg);
+ error (_("Garbage '%s' follows condition"), arg);
}
/* Dynamic printf requires and uses additional arguments on the
@@ -8642,7 +8642,7 @@ init_breakpoint_sal (struct breakpoint *b, struct gdbarch *gdbarch,
error (_("Format string required"));
}
else if (b->extra_string)
- error (_("Garbage %s at end of command"), b->extra_string);
+ error (_("Garbage '%s' at end of command"), b->extra_string);
}
b->display_canonical = display_canonical;