]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/procfs.c
Remove do_closedir_cleanup
authorTom Tromey <tom@tromey.com>
Thu, 3 May 2018 06:18:20 +0000 (00:18 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 4 May 2018 18:20:37 +0000 (12:20 -0600)
commitf0b3976bdcd29e308bed185630a24806037a717c
tree9cb329df8ee78f419c7c0e4dec46db0c9d28f69c
parent862d101ada6b6e8496e545c0bcd801cf8b9a46c1
Remove do_closedir_cleanup

This removes both copies of do_closedir_cleanup in favor of a new
unique_ptr specialization.

Tested by the buildbot, though I'm not sure that these code paths are
exercised there.

ChangeLog
2018-05-04  Tom Tromey  <tom@tromey.com>

* nto-procfs.c (do_closedir_cleanup): Remove.
(procfs_pidlist): Use gdb_dir_up.
* procfs.c (do_closedir_cleanup): Remove.
(proc_update_threads): Use gdb_dir_up.
* common/filestuff.h (struct gdb_dir_deleter): New.
(gdb_dir_up): New typedef.
gdb/ChangeLog
gdb/common/filestuff.h
gdb/nto-procfs.c
gdb/procfs.c