classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] [RFA/JDWP] CommandSet interface and PacketProcessor


From: Aaron Luchko
Subject: [cp-patches] [RFA/JDWP] CommandSet interface and PacketProcessor
Date: Wed, 22 Jun 2005 15:02:41 -0400

Hello, I've been working with Keith Seitz to help with jdwp. This patch
adds the functionality for PacketProcessor to act on a given packet from
the debugger via CommandSet objects along with the CommandSet interface.

I've left the commented out list of different CommandSets added to the
HashTable in the constructor to demonstrate how they will be stored.
The CommandSet objects will carry out all the work associated with a
given command (ie finding values of variables, setting event requests)
then write the data for the response to the output stream.

The reason for runCommand returning a boolean to indicate a transport
layer shutdown is the commands
http://java.sun.com/j2se/1.5.0/docs/guide/jpda/jdwp/jdwp-protocol.html#JDWP_VirtualMachine_Dispose
and
http://java.sun.com/j2se/1.5.0/docs/guide/jpda/jdwp/jdwp-protocol.html#JDWP_VirtualMachine_Exit
require the transport layer to be shutdown and a reply packet to still
be sent. After receiving sending the shutdown reply packet it will first
shutdown the transport layer, and then its own thread. At this point the
intent is that the appropriate CommandSet will take care of all the
other associated actions such as canceling event requests and shutting
down other threads in the VM.

Questions or Comments?

Aaron

ChangeLog
2005-06-22  Aaron Luchko  <address@hidden>

        * gnu/classpath/jdwp/processor/CommandSet.java: New file.
        * gnu/classpath/jdwp/processor/PacketProcessor.java: Use CommandSets to
handle JdwpCommandPackets.

Attachment: jdwp_commandsets.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]