]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Use std::list for remote_notif_state::notif_queue
authorTom Tromey <tom@tromey.com>
Sun, 7 Apr 2019 22:31:01 +0000 (16:31 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 19 Apr 2019 20:29:33 +0000 (14:29 -0600)
commit97dfbaddad2b5acf3dd9f2c3e0135b89bde1cbf8
treea41bf581ac78fbae6542524a3a7e3b2543081d64
parentb494cdff6922944383ef4dc20fcc90c4d823d315
Use std::list for remote_notif_state::notif_queue

This changes remote_notif_state::notif_queue to be a std::list and
updates all the uses.

gdb/ChangeLog
2019-04-19  Tom Tromey  <tom@tromey.com>

* remote.c (remote_target): Use delete.
* remote-notif.h: Include <list>, not "common/queue.h".
(notif_client_p): Remove typedef.
(remote_notif_state): Add constructor, destructor, initializer.
<notif_queue>: Now a std::list.
(remote_notif_state_xfree): Don't declare.
* remote-notif.c (remote_notif_process, handle_notification)
(remote_notif_state_allocate): Update.
(~remote_notif_state): Rename from remote_notif_state_xfree.
gdb/ChangeLog
gdb/remote-notif.c
gdb/remote-notif.h
gdb/remote.c