Remove cleanups from linespec.c
authorTom Tromey <tom@tromey.com>
Wed, 2 Jan 2019 16:17:43 +0000 (09:17 -0700)
committerTom Tromey <tom@tromey.com>
Wed, 2 Jan 2019 23:38:59 +0000 (16:38 -0700)
commit3a6ae42d4e4ecfd2441cf9b978b2a54ad6767cb7
treef968c2438e78b84aac247c74925a66a85ecbaf77
parent61fd3e738919700c8d0fbb942519d72a767d90b1
Remove cleanups from linespec.c

This removes the remaining cleanups from linespec.c.  This adds a
constructor and destructor to linespec_parser, but in a minimal way --
the parser could still benefit from a bit more C++-ification.

gdb/ChangeLog
2019-01-02  Tom Tromey  <tom@tromey.com>

* linespec.c (struct linespec_parser): Rename from ls_parser.  Add
constructor, destructor.
(linespec_parser): Remove typedef.
(~linespec_parser): Rename from linespec_parser_delete.
(linespec_lex_to_end, linespec_complete_label)
(linespec_complete): Update.
(decode_line_full): Remove cleanups.
(decode_line_1): Update.
gdb/ChangeLog
gdb/linespec.c