Use std::set in mi-main.c
authorTom Tromey <tom@tromey.com>
Thu, 4 May 2017 22:07:04 +0000 (16:07 -0600)
committerTom Tromey <tom@tromey.com>
Sat, 30 Sep 2017 03:12:16 +0000 (21:12 -0600)
commit52f9abe4c739f42cc5f80b2629276493ac6306f9
treeddd1b3e8dc4d18203e71756e6da59ee824fc92d3
parentdcd5ddccd7d7917caf42b8d429a7535857c6e9b2
Use std::set in mi-main.c

Change a couple of spots in mi-main.c to use std::set.  This
simplifies the code and removes some cleanups.

gdb/ChangeLog
2017-09-29  Tom Tromey  <tom@tromey.com>

* mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
'std::set *'.
(print_one_inferior): Update.
(free_vector_of_ints): Remove.
(list_available_thread_groups): Change "ids" to std::set.
(mi_cmd_list_thread_groups): Update.
(struct collect_cores_data) <core>: Now a std::set.
(collect_cores): Update.
(unique): Remove.
(print_one_inferior): Update.
gdb/ChangeLog
gdb/mi/mi-main.c