projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
417ba50
)
2009-09-23 John Wright <john.wright@hp.com>
author
Tom Tromey
<tromey@redhat.com>
Wed, 23 Sep 2009 17:27:39 +0000
(17:27 +0000)
committer
Tom Tromey
<tromey@redhat.com>
Wed, 23 Sep 2009 17:27:39 +0000
(17:27 +0000)
PR gdb/10684:
* event-top.c (command_line_handler): Terminate linebuffer before
xstrdup.
gdb/ChangeLog
patch
|
blob
|
history
gdb/event-top.c
patch
|
blob
|
history
diff --git
a/gdb/ChangeLog
b/gdb/ChangeLog
index 8e7c726ebf7899db3e7149576ba1e71096fb5483..c59f023cccfee5ffda89f9321ba810ab97b86c88 100644
(file)
--- a/
gdb/ChangeLog
+++ b/
gdb/ChangeLog
@@
-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.
diff --git
a/gdb/event-top.c
b/gdb/event-top.c
index 790cebff3105b64c5662cb44864b610ca4ab82de..52a5ad75d4c780d37b5b2898991d9262d40c807f 100644
(file)
--- 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);