This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
This patch is the extend for the notification function. Current notification function cannot handle the packet when GDB doesn't want to send or receive packet from the remote target. This patch do the extend make GDB can handle the notification even if it doesn't send or receive packet.
Thanks, Hui
* remote.c (async_client_callback): Move to the top. (async_client_context): Ditto. (remote_async_serial_handler): Ditto. (PACKET_NotificationAsync): New enum. (remote_pr): Add PACKET_NotificationAsync. (remote_open_1): Call serial_async if need. (readchar_buffer_ch): New variable. (readchar): If need, return the value of readchar_buffer_ch. (readchar_buffer_put): New function. (remote_is_async_p): Add check for PACKET_ReportAsync. (remote_is_notificationasync): New function. (remote_async_serial_handler): Add code to handle notification. (remote_async): Add check for PACKET_ReportAsync. (_initialize_remote): Add PACKET_NotificationAsync.
Attachment:
notification_async.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |