Remove free_splay_tree cleanup
authorTom Tromey <tom@tromey.com>
Sun, 8 Oct 2017 22:37:46 +0000 (16:37 -0600)
committerTom Tromey <tom@tromey.com>
Mon, 9 Oct 2017 23:39:29 +0000 (17:39 -0600)
commit1a56bfa56ed967c5f6ed98f75834408417a062ff
tree4f61c01e698ae009e4bfca0a0a54f69ff09977ed
parent0c478e2d060bebea341696806fed6f67122efab6
Remove free_splay_tree cleanup

One spot in gdb uses a cleanup to free a splay tree.  This patch
introduces a unique_ptr specialization for this case.

ChangeLog
2017-10-09  Tom Tromey  <tom@tromey.com>

* mi/mi-main.c (free_splay_tree): Remove.
(list_available_thread_groups): Use splay_tree_up.
* common/gdb_splay_tree.h: New file.
gdb/ChangeLog
gdb/common/gdb_splay_tree.h [new file with mode: 0644]
gdb/mi/mi-main.c