From: Joel Brobecker Date: Tue, 15 May 2012 16:42:43 +0000 (+0000) Subject: init_breakpoint_sal: Add quotes around part of command in error message X-Git-Tag: sid-snapshot-20120601~196 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=588ae58cd240954b57008c7796540314d85ac580;p=external%2Fbinutils.git 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c488a2f..2af1f59 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2012-05-15 Joel Brobecker + * breakpoint.c (init_breakpoint_sal): Add quotes around part + of command in two error message. + +2012-05-15 Joel Brobecker + * breakpoint.c (init_breakpoint_sal): Remove trailing spaces. 2012-05-15 Joel Brobecker 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;