source: trunk/openjdk/hotspot/agent/test/jdi/README.jjh

Last change on this file was 2, checked in by dmik, 15 years ago

Imported OpenJDK 6 b19 sources from Oracle.

File size: 1.3 KB
Line 
1
2This dir contains a test for the JDI-SA implementation.
3
4sagtest.java, sagtarg.java are a normal JDI regression test
5that uses TargetAdapter.java, TargetListener.java, TestScaffold.java,
6and VMConnection.java.
7
8This test starts the debuggee, sagtarg.java, which just does a wait.
9The test then calls sagdoit.java which calls all the JDJI interface
10functions. Well, it doesn't call them all yet, but that is the plan.
11At least all that are interesting to the JDI-SA client. The result of
12each call is sent to stdout
13
14The script runjpda.sh runs this test. It then runs the targ part of
15the test and calls gcore on it to get a core dump into file sagcore.
16Do
17 runjpda.sh >& kk
18
19to run this.
20
21 NOTE that this produces 1000s of lines of output
22 so be sure to redirect to a file.
23
24File sagclient.java is a test program that uses the JDI-SA
25client to connect to a core file or pid and then calls sagdoit
26which calls the JDI methods.
27
28The script runsa.sh can be used to run sagclient on sagcore:
29 runsa.sh sagcore >& kk1
30
31You can then look at the differences between the runjpda.sh
32and the runsa.sh run to see if there are bugs. Note that the
33order of things might be different.
34
35
36-----------------------------------------
37
38runjdb.sh contains a script that will run jdb on a core file
39using the JDI-sa binding.
Note: See TracBrowser for help on using the repository browser.