Skip to content

Commit

Permalink
add version command
Browse files Browse the repository at this point in the history
  • Loading branch information
wekesa360 committed Nov 17, 2023
1 parent 6b04353 commit c555586
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 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,33 @@
},
)

__Version_reply = Struct(
[
Field("description", Type.STRING, "Text information on the VM version"),
Field("jdwpMajor", IntegralType.INT, "JDWP major version number"),
Field("jdwpMinor", IntegralType.INT, "JDWP minor version number"),
Field(
"vmVersion",
Type.STRING,
"Target VM JRE version, as in the java.version property",
),
Field("vmName", Type.STRING, "Target VM name, as in the java.vm.name property"),
]
)

Version = Command(
name="Version",
id=2,
out=None,
reply=__Version_reply,
error={ErrorType.VM_DEAD},
)

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

0 comments on commit c555586

Please sign in to comment.