Replace home-grown linked-lists in FreeBSD's native target with STL lists.
authorJohn Baldwin <jhb@FreeBSD.org>
Wed, 9 Aug 2017 22:24:46 +0000 (15:24 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Wed, 9 Aug 2017 22:24:46 +0000 (15:24 -0700)
commite8c6b620f70d8cced4a93d8857ad2a57f08a361a
tree3b1927ec3bdd654a22c0eaead9f64eaa8ad91c9f
parente4a26669b914a1a1d519325b3bddf4bfe5078ea8
Replace home-grown linked-lists in FreeBSD's native target with STL lists.

FreeBSD's native target uses linked-lists to keep track of pending fork
events and fake vfork done events.  Replace the first list with std::list
and the second with std::forward_list.

gdb/ChangeLog:

* fbsd-nat.c (struct fbsd_fork_info): Remove.
(fbsd_pending_children): Use std::list.
(fbsd_remember_child): Likewise.
(fbsd_is_child_pending): Likewise.
(fbsd_pending_vfork_done): Use std::forward_list.
(fbsd_add_vfork_done): Likewise.
(fbsd_is_vfork_done_pending): Likewise.
(fbsd_next_vfork_done): Likewise.
gdb/ChangeLog
gdb/fbsd-nat.c