summaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorqiyao <qiyao>2013-10-04 07:32:56 +0000
committerqiyao <qiyao>2013-10-04 07:32:56 +0000
commit70166e7ad853a415d641fb5222b39953cc20c209 (patch)
tree66e01bad9f9c23bf1d3ccdd99ff19545a977a13d /gdb/ChangeLog
parent17b0ea1ae0ae3d4dfe714e2c880a9377b8b344c3 (diff)
downloadgdb-70166e7ad853a415d641fb5222b39953cc20c209.tar.gz
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 <yao@codesourcery.com> * 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) <notif_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.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog31
1 files changed, 31 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 079e2c6f50f..4336f37627c 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,36 @@
2013-10-04 Yao Qi <yao@codesourcery.com>
+ * 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) <notif_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 <yao@codesourcery.com>
+
* varobj.c (create_child_with_value): Remove 'const' from the
type of parameter 'name'.
(varobj_add_child): Likewise.