]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Remove cleanup from procfs.c
authorTom Tromey <tom@tromey.com>
Thu, 30 Aug 2018 04:49:40 +0000 (22:49 -0600)
committerTom Tromey <tom@tromey.com>
Thu, 13 Sep 2018 22:22:33 +0000 (16:22 -0600)
commit5b4cbbe357aaf6462a68e1a15c9532dd3d01e06d
treef20fe4ea62b8bc633666f1c788a65cb75d696bda
parentdb68fbe2f946cb36359c8672548fde198f812c4e
Remove cleanup from procfs.c

This removes the last remaining cleanup from procfs.c, replacing it
with a unique_ptr specialization.

gdb/ChangeLog
2018-09-13  Tom Tromey  <tom@tromey.com>

* procfs.c (struct procinfo_deleter): New.
(procinfo_up): New typedef.
(do_destroy_procinfo_cleanup): Remove.
(procfs_target::info_proc): Use procinfo_up.  Remove cleanups.
gdb/ChangeLog
gdb/procfs.c