facebookexperimental / ExtendedAndroidTools

Extended Android Tools is a place to host and maintain a build environment and makefiles cross compiling Linux tools we all love for Android.
Apache License 2.0
189 stars 63 forks source link

Codegen generating deserializers and serializers for the JDWP commands #73

Open wekesa360 opened 1 year ago

wekesa360 commented 1 year ago

This PR addresses issue #57, creating command classes containing serializer and deserializer functions and grouped into a single file based on a command set.

michalgr commented 1 year ago

I think I would break this task into the following PRs:

  1. Generate NewTypes corresponding to values of PrimitiveType enum. It will be a good idea to keep different kinds of ids distinct, pyre will help us not mix things up.
  2. Generate dataclasses/NamedTuples corresponding to commands and resonses (only fields for now).
  3. Propose input stream and output stream interfaces
  4. For each command/response generate parse and serialize methods.