Skip to content

Commit

Permalink
Updated error field
Browse files Browse the repository at this point in the history
  • Loading branch information
Daquiver1 committed Oct 25, 2023
1 parent e61cbe1 commit 1705a0a
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 1,243 deletions.
68 changes: 30 additions & 38 deletions projects/jdwp/defs/command_sets/reference_type.py
Original file line number Diff line number Diff line change
@@ -1,48 +1,40 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.

"""Command Set: ReferenceType."""

from jdwp.defs.schema import CommandSet
from jdwp.defs.commands.reference_type import (
Signature,
ClassLoader,
Modifiers,
Fields,
Methods,
GetValues,
SourceFile,
NestedTypes,
Status,
Interfaces,
ClassObject,
SourceDebugExtension,
SignatureWithGeneric,
FieldsWithGeneric,
MethodsWithGeneric,
Instances,
ClassFileVersion,
ConstantPool,
from jdwp.defs.schema import CommandSet, Type
from jdwp.defs.schema import Command, Field, Struct
from projects.jdwp.defs.constants import ErrorType
from collections.abc import Sequence


Signature = Command(
name="Signature",
id=1,
out=Struct(
[
Field("refType", Type.REFERENCE_TYPE_ID, "The Reference type ID."),
]
),
reply=Struct(
[
Field(
"signature", Type.STRING, "The JNI signature for the reference type."
),
]
),
error=Sequence[
ErrorType.INVALID_CLASS,
ErrorType.INVALID_OBJECT,
ErrorType.VM_DEAD,
],
)


ReferenceType = CommandSet(
name="VirtualMachine",
name="ReferenceType",
id=2,
commands=[
Signature,
ClassLoader,
Modifiers,
Fields,
Methods,
GetValues,
SourceFile,
NestedTypes,
Status,
Interfaces,
ClassObject,
SourceDebugExtension,
SignatureWithGeneric,
FieldsWithGeneric,
MethodsWithGeneric,
Instances,
ClassFileVersion,
ConstantPool,
],
)
40 changes: 0 additions & 40 deletions projects/jdwp/defs/command_sets/thread_reference.py

This file was deleted.

Loading

0 comments on commit 1705a0a

Please sign in to comment.