agent/test/jdi/README.jjh

Fri, 11 Feb 2011 14:30:27 -0800

author
trims
date
Fri, 11 Feb 2011 14:30:27 -0800
changeset 2500
14c2f31280dd
parent 0
f90c822e73f8
permissions
-rw-r--r--

Added tag hs21-b01 for changeset ae4b185f2ed1

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

mercurial