From 70166e7ad853a415d641fb5222b39953cc20c209 Mon Sep 17 00:00:00 2001 From: qiyao Date: Fri, 4 Oct 2013 07:32:56 +0000 Subject: Move notif_queue and remote_async_get_pending_events_token to remote_state This patch also removes notif_xfree, and don't pass it QUEUE_alloc, because we don't have to free notif_client when the remote_notif_state is freed. gdb: 2013-10-04 Yao Qi * remote-notif.c (DECLARE_QUEUE_P): Remove. (notif_queue): Remove. (remote_notif_process): Add one parameter 'notif_queue'. Update comments. Callers update. (remote_async_get_pending_events_token): Remove. (remote_notif_register_async_event_handler): Remove. (remote_notif_unregister_async_event_handler): Remove. (handle_notification): Add parameter 'notif_queue'. Update comments. Callers update. (notif_xfree): Remove. (remote_notif_state_allocate): New function. (remote_notif_state_xfree): New function. (_initialize_notif): Remove code to allocate queue. * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c. (struct remote_notif_state): New. (handle_notification): Update declaration. (remote_notif_process): Likewise. (remote_notif_register_async_event_handler): Remove. (remote_notif_unregister_async_event_handler): Remove. (remote_notif_state_allocate): Declare. (remote_notif_state_xfree): Declare. * remote.c (struct remote_state) : New field. (remote_close): Don't call remote_notif_unregister_async_event_handler. Call remote_notif_state_xfree. (remote_open_1): Don't call remote_notif_register_async_event_handler. Call remote_notif_state_allocate. --- gdb/ChangeLog | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'gdb/ChangeLog') diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 079e2c6f50f..4336f37627c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,34 @@ +2013-10-04 Yao Qi + + * remote-notif.c (DECLARE_QUEUE_P): Remove. + (notif_queue): Remove. + (remote_notif_process): Add one parameter 'notif_queue'. + Update comments. Callers update. + (remote_async_get_pending_events_token): Remove. + (remote_notif_register_async_event_handler): Remove. + (remote_notif_unregister_async_event_handler): Remove. + (handle_notification): Add parameter 'notif_queue'. Update + comments. Callers update. + (notif_xfree): Remove. + (remote_notif_state_allocate): New function. + (remote_notif_state_xfree): New function. + (_initialize_notif): Remove code to allocate queue. + * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c. + (struct remote_notif_state): New. + (handle_notification): Update declaration. + (remote_notif_process): Likewise. + (remote_notif_register_async_event_handler): Remove. + (remote_notif_unregister_async_event_handler): Remove. + (remote_notif_state_allocate): Declare. + (remote_notif_state_xfree): Declare. + * remote.c (struct remote_state) : New field. + (remote_close): Don't call + remote_notif_unregister_async_event_handler. Call + remote_notif_state_xfree. + (remote_open_1): Don't call + remote_notif_register_async_event_handler. Call + remote_notif_state_allocate. + 2013-10-04 Yao Qi * varobj.c (create_child_with_value): Remove 'const' from the -- cgit v1.2.1