Skip to content

Commit

Permalink
add version command (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
wekesa360 authored Nov 21, 2023
1 parent 9c28279 commit 9c0f4e4
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions projects/jdwp/defs/command_sets/virtual_machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,28 @@
},
)

__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=1,
out=None,
reply=__Version_reply,
error={ErrorType.VM_DEAD},
)

Dispose = Command(
name="Dispose",
id=6,
Expand Down Expand Up @@ -143,6 +165,7 @@
name="VirtualMachine",
id=1,
commands=[
Version,
AllClasses,
Dispose,
IDSizes,
Expand Down

0 comments on commit 9c0f4e4

Please sign in to comment.