Remove cleanups from gdb_readline_wrapper
authorTom Tromey <tom@tromey.com>
Thu, 22 Mar 2018 16:31:41 +0000 (10:31 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 27 Mar 2018 16:46:42 +0000 (10:46 -0600)
commit1dbeed45b6a81ddcb725b68ff12236e7c8386a47
tree18b74ac34f2511343f8061a8675ae40bb9543a2b
parentc819b2c0b216c69a4ae5bfba0eac71ffdf1b3596
Remove cleanups from gdb_readline_wrapper

This removes some cleanups from gdb_readline_wrapper by changing the
existing gdb_readline_wrapper_cleanup struct to have a constructor and
destructor, and then changing gdb_readline_wrapper to simply
instantiate it on the stack.

gdb/ChangeLog
2018-03-27  Pedro Alves  <palves@redhat.com>
    Tom Tromey  <tom@tromey.com>

* top.c (class gdb_readline_wrapper_cleanup): Add constructor,
destructor.  Now a class.
(gdb_readline_wrapper_cleanup): Remove function.
(gdb_readline_wrapper): Remove cleanups.
gdb/ChangeLog
gdb/top.c