Remove struct complain
authorTom Tromey <tom@tromey.com>
Thu, 17 May 2018 05:22:54 +0000 (23:22 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 23 May 2018 15:17:03 +0000 (09:17 -0600)
commitff1cf532dbabdee0d34974a77809bf2fa23d43a5
treececf18799007e3199cef48eecf5ef0eee54f0c54
parent7ff8817441fcebe3d32343dbd9d514366bfe8e23
Remove struct complain

At this point, struct complain is just holds a key, a value, and a
"next" pointer to form a linked list.  It's simpler to replace this
with an unordered map.

gdb/ChangeLog
2018-05-23  Tom Tromey  <tom@tromey.com>

* complaints.c (counters): New global.
(struct complain): Remove.
(struct complaints) <root>: Remove.
(complaint_sentinel): Remove.
(symfile_complaint_book): Update.
(find_complaint) Remove.
(complaint_internal, clear_complaints): Update.

gdb/testsuite/ChangeLog
2018-05-23  Tom Tromey  <tom@tromey.com>

* gdb.gdb/complaints.exp (test_initial_complaints): Simplify.
gdb/ChangeLog
gdb/complaints.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.gdb/complaints.exp