Remove cleanups from findcmd.c
authorTom Tromey <tom@tromey.com>
Sat, 9 Sep 2017 15:56:27 +0000 (09:56 -0600)
committerTom Tromey <tom@tromey.com>
Mon, 11 Sep 2017 22:15:10 +0000 (16:15 -0600)
commitd6b9b80f9483b6c1a3a018c0fcaf813ca098d8af
tree4494fcc0db28cae657a5ce9bd9f8e57d5136bb9a
parenta9921622de0a7332a333c5206ce8cd632803df97
Remove cleanups from findcmd.c

This removes cleanups from findcmd.c, replacing manual buffer
management with a gdb::byte_vector.

ChangeLog
2017-09-11  Tom Tromey  <tom@tromey.com>

* findcmd.c (put_bits): Take a gdb::byte_vector.
(parse_find_args): Return gdb::byte_vector.  "args" now const.
Remove "pattern_bufp" and "pattern_lenp" parameters.  Remove
cleanups.
(find_command): Update.
gdb/ChangeLog
gdb/findcmd.c