From cd1da151d7571f2d6fe4d7d433f1d5b6c5a59aa0 Mon Sep 17 00:00:00 2001 From: "Michael A. Wekesa" Date: Fri, 17 Nov 2023 15:26:01 +0300 Subject: [PATCH] add dispose command --- .../jdwp/defs/command_sets/virtual_machine.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/projects/jdwp/defs/command_sets/virtual_machine.py b/projects/jdwp/defs/command_sets/virtual_machine.py index 573b9ac..3d27888 100644 --- a/projects/jdwp/defs/command_sets/virtual_machine.py +++ b/projects/jdwp/defs/command_sets/virtual_machine.py @@ -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, ], )