diff options
author | Tom Tromey <tom@tromey.com> | 2018-05-03 00:18:20 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-05-04 12:20:37 -0600 |
commit | f0b3976bdcd29e308bed185630a24806037a717c (patch) | |
tree | 9cb329df8ee78f419c7c0e4dec46db0c9d28f69c /gdb/cli/cli-script.c | |
parent | 862d101ada6b6e8496e545c0bcd801cf8b9a46c1 (diff) | |
download | binutils-f0b3976bdcd29e308bed185630a24806037a717c.zip binutils-f0b3976bdcd29e308bed185630a24806037a717c.tar.gz binutils-f0b3976bdcd29e308bed185630a24806037a717c.tar.bz2 |
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.
Diffstat (limited to 'gdb/cli/cli-script.c')
0 files changed, 0 insertions, 0 deletions