gdb: make remote_state's async token private
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 4 Oct 2023 02:03:59 +0000 (22:03 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 10 Oct 2023 15:02:00 +0000 (11:02 -0400)
commit92b98b378a4ab0f051342c97b3f4be561a7c89a5
tree92ee35b7ad115a2663f4dea61aa1291cd91bedad
parent7a78108ae939ead8224d85950568b8439e2c0063
gdb: make remote_state's async token private

Make remote_async_inferior_event_token private (rename to
m_async_event_handler_token) and add methods for the various operations
we do on it.  This will help by:

 - allowing to break on those methods when debugging
 - allowing to add assertions in the methods

Change-Id: Ia3b8a2bc48ad4849dbbe83442c3f83920f03334d
Approved-By: Andrew Burgess <aburgess@redhat.com>
gdb/remote.c