From: SourceForge.net <no...@so...> - 2006-06-27 21:27:38
|
Patches item #1513627, was opened at 2006-06-27 22:27 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=712770&aid=1513627&group_id=128805 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Ian Rogers (captain5050) Assigned to: Nobody/Anonymous (nobody) Summary: Initial JDWP support Initial Comment: This patch implements some support for Classpath's JDWP implementation. There is enough support to establish the debugger connection in Eclipse. By handling more events fuller debugger support can be added (for example we need new callbacks for thread start and end). The patch consists of a new libSupport directory (tar ball) and patches to the VM start up so that it processes the JDWP startup arguments. The command line argument looks like: -X:runjdwp:transport=dt_socket,address=localhost:1234,server=y,suspend=n where this specifies the connection method (socket on localhost port 1234), whether the VM (as opposed to the debugger) is to be the server, and whether the main thread should be suspended on startup. JDWP can be debugged by a TCP/IP spy program that's part of Eclipse. In Eclipse 3.2.0RC7 this is started as follows: java -cp plugins/org.eclipse.jdt.debug_3.2.0.v20060601/jdimodel.jar:plugins/org.eclipse.osgi_3.2.0.v20060601.jar:plugins/com.ibm.icu_3.4.4.1.jar org/eclipse/jdi/internal/spy/TcpipSpy 6900 localhost 1234 Eclipse or netbeans can debug directly or through the spy program, here they should connect to port 6900. Due to problems with the current Jikes RVM socket code, this patch currently disables it when JDWP is specified. This leads to the VM timing out if left idle for too long. The code initialises the JDWP support using the mechanism present in the current Classpath CVS head, the method used in Classpath 0.91 is different, so it is expected this code won't work for Classpath 0.91. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=712770&aid=1513627&group_id=128805 |