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.
This commit is contained in:
parent
855a6e6874
commit
588ae58cd2
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2012-05-15 Joel Brobecker <brobecker@adacore.com>
|
||||
|
||||
* breakpoint.c (init_breakpoint_sal): Add quotes around part
|
||||
of command in two error message.
|
||||
|
||||
2012-05-15 Joel Brobecker <brobecker@adacore.com>
|
||||
|
||||
* breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue