Skip to content

Commit

Permalink
add IDSizes command
Browse files Browse the repository at this point in the history
  • Loading branch information
wekesa360 authored and michalgr committed Nov 18, 2023
1 parent 364fe2a commit a259634
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions projects/jdwp/defs/command_sets/virtual_machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,29 @@
},
)

__IDSizes_reply = Struct(
[
Field("fieldIDSize", IntegralType.INT, "fieldID size in bytes"),
Field("methodIDSize", IntegralType.INT, "methodID size in bytes"),
Field("objectIDSize", IntegralType.INT, "objectID size in bytes"),
Field("referenceTypeIDSize", IntegralType.INT, "referenceTypeID size in bytes"),
Field("frameIDSize", IntegralType.INT, "frameID size in bytes"),
]
)

IDSizes = Command(
name="IDSizes",
id=7,
out=None,
reply=__IDSizes_reply,
error={ErrorType.VM_DEAD},
)

VirtualMachine = CommandSet(
name="VirtualMachine",
id=1,
commands=[
AllClasses,
IDSizes,
],
)

0 comments on commit a259634

Please sign in to comment.