2009-09-23 John Wright <john.wright@hp.com>

PR gdb/10684:
	* event-top.c (command_line_handler): Terminate linebuffer before
	xstrdup.
This commit is contained in:
Tom Tromey 2009-09-23 17:27:39 +00:00
parent 417ba50c7d
commit 20bb6bc822
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2009-09-23 John Wright <john.wright@hp.com>
PR gdb/10684:
* event-top.c (command_line_handler): Terminate linebuffer before
xstrdup.
2009-09-22 Joel Brobecker <brobecker@adacore.com>
* solib.c (solib_bfd_open): Relax a bit the compatibility check.

View File

@ -622,6 +622,7 @@ command_line_handler (char *rl)
if (p > linebuffer && *(p - 1) == '\\')
{
*p = '\0';
p--; /* Put on top of '\'. */
readline_input_state.linebuffer = xstrdup (linebuffer);