aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-04-07 16:31:01 -0600
committerTom Tromey <tom@tromey.com>2019-04-19 14:29:33 -0600
commit97dfbaddad2b5acf3dd9f2c3e0135b89bde1cbf8 (patch)
treea41bf581ac78fbae6542524a3a7e3b2543081d64 /gdb/remote.c
parentb494cdff6922944383ef4dc20fcc90c4d823d315 (diff)
downloadgdb-97dfbaddad2b5acf3dd9f2c3e0135b89bde1cbf8.zip
gdb-97dfbaddad2b5acf3dd9f2c3e0135b89bde1cbf8.tar.gz
gdb-97dfbaddad2b5acf3dd9f2c3e0135b89bde1cbf8.tar.bz2
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.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r--gdb/remote.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index 69b479b..5e5fbbf 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -4052,7 +4052,7 @@ remote_target::~remote_target ()
if (rs->remote_async_inferior_event_token)
delete_async_event_handler (&rs->remote_async_inferior_event_token);
- remote_notif_state_xfree (rs->notif_state);
+ delete rs->notif_state;
}
/* Query the remote side for the text, data and bss offsets. */