Use struct buffer in gdb_readline_no_editing
authorPedro Alves <palves@redhat.com>
Wed, 9 Mar 2016 18:25:00 +0000 (18:25 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 9 Mar 2016 18:25:00 +0000 (18:25 +0000)
commit7a3bde34bc61af108556c74b661533dadddcb178
treeff453098a898dc71721e2188ba49df506907529f
parentc5c136ea94f21e5ff968d5b402494611464c7b31
Use struct buffer in gdb_readline_no_editing

gdb/ChangeLog:
2016-03-09  Pedro Alves  <palves@redhat.com>

* common/buffer.h (buffer_grow_char): New function.
* top.c: Include buffer.h.
(gdb_readline_no_editing): Rename 'prompt_arg' parameter to
'prompt'.  Use struct buffer instead of xrealloc.
gdb/ChangeLog
gdb/common/buffer.h
gdb/top.c