From: Tom Tromey Date: Wed, 23 Sep 2009 17:33:06 +0000 (+0000) Subject: 2009-09-23 John Wright X-Git-Tag: gdb_7_0-2009-10-06-release~50 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9e9c090afc0542e19cfa8dc26b1f0179b66a8a6d;p=thirdparty%2Fbinutils-gdb.git 2009-09-23 John Wright PR gdb/10684: * event-top.c (command_line_handler): Terminate linebuffer before xstrdup. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9bc6892c983..49ec64f3733 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2009-09-23 John Wright + + PR gdb/10684: + * event-top.c (command_line_handler): Terminate linebuffer before + xstrdup. + 2009-09-22 Joel Brobecker * solib.c (solib_bfd_open): Relax a bit the compatibility check. diff --git a/gdb/event-top.c b/gdb/event-top.c index 790cebff310..52a5ad75d4c 100644 --- a/gdb/event-top.c +++ b/gdb/event-top.c @@ -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);