Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gdbserver support #33

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Conversation

hugelgupf
Copy link
Contributor

@hugelgupf hugelgupf commented Aug 11, 2016

Actual code review happening on mailing list + gerrit, this is just for convenient linking.

@hugelgupf hugelgupf force-pushed the gdbserver-support branch 16 times, most recently from a97cfe7 to 0bf9fe9 Compare August 16, 2016 21:21
@hugelgupf hugelgupf force-pushed the gdbserver-support branch 6 times, most recently from b10b5c2 to 9446130 Compare August 24, 2016 18:09
IDs are moved from pthreads to uthreads and uthreads now maintain a list of
current threads.

Change-Id: I87310e765ad0ead25a45f41074e09f74835383df
Signed-off-by: Christopher Koch <[email protected]>
The protocol is called D9.

This will be part of parlib and in its current form can be used with any
2LS.

The protocol is intended to be synchronous on the 2LS side and asynchronous
on the gdbserver side. It looks a lot like 9P (hence, the name). Some of
the issues around async are not solved yet; e.g. the client side
(gdbserver) currently expects all operations to be serialized without
interleaving responses. E.g. it could not currently handle this sequence of
operations:

TWAIT
TREADMEM
RWAIT
RREADMEM

Change-Id: Ib7c8fd800b1550f6b72ce0feae57c7f5dbdf11f6
Signed-off-by: Christopher Koch <[email protected]>
Change-Id: I8dc3524204b562c87be52c8faf6aba20b111a216
Signed-off-by: Christopher Koch <[email protected]>
Makes gdbserver's interactions with the 2LS asynchronous. Adds real
breakpoint (we can detect when a breakpoint happens) support as well as
resuming all threads and storing registers.

Change-Id: Iadf0c6b1c2c26a86e9ed7296b6fe459b92d8f180
Signed-off-by: Christopher Koch <[email protected]>
Change-Id: I4263112b2e340ea02e56c273529de291a22ba9dc
Signed-off-by: Christopher Koch <[email protected]>
Change-Id: Id99eacdb0a7dc49cad108e58497935cfad4bb0c7
Signed-off-by: Christopher Koch <[email protected]>
Change-Id: I06e066e0f2ce7b3d57da7c123888f706d077131a
Signed-off-by: Christopher Koch <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant