Skip to content

Comments

JDWP overhaul#1733

Merged
ben-clayton merged 1 commit intogoogle:masterfrom
ben-clayton:jdwp-dbg
Mar 8, 2018
Merged

JDWP overhaul#1733
ben-clayton merged 1 commit intogoogle:masterfrom
ben-clayton:jdwp-dbg

Conversation

@ben-clayton
Copy link
Contributor

Add a debug mode which prints every send and recv.
Add string helpers for the majority of the message types.
Flesh out thread-reference APIs.
Reimplement the event request API to be more strict about thread suspension.

Add a debug mode which prints every send and recv.
Add string helpers for the majority of the message types.
Flesh out thread-reference APIs.
Reimplement the event request API to be more strict about thread suspension.
}
cmdNames[c] = n
}
register(cmdVirtualMachineVersion, "Version")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not just make the name a field in the cmd struct?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because if we get a cmdSet and cmdID from somewhere else (say the wire), we can use struct-equality to lookup the name.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@ben-clayton ben-clayton merged commit d28080d into google:master Mar 8, 2018
@ben-clayton ben-clayton deleted the jdwp-dbg branch March 8, 2018 17:00
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.

3 participants