jdk/src/demo/share/jpda/com/sun/tools/example/doc/jdb.html
author lana
Fri, 29 Aug 2014 11:56:46 -0700
changeset 26258 f402435374ad
parent 25859 3317bb8137f4
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
<HTML>
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
<HEAD>
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
   <TITLE>Release notes for the jdb debugger</TITLE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
</HEAD>
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
<BODY TEXT="#000000" BGCOLOR="#FFFFFF" LINK="#0000FF" VLINK="#000077" ALINK="#FF0000">
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
&nbsp;
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
<TABLE BORDER=0 WIDTH="100%" >
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
<TR>
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
<TD>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
<CENTER>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
<H1>Release notes for the jdb debugger</H1></CENTER>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
</TD>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
</TR>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
</TABLE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
<!-- Body text begins here -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
<P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
<A HREF="index.html">Home Page</A>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
<P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
As a demonstration of the 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
<A HREF="http://java.sun.com/j2se/1.4/docs/guide/jpda/architecture.html">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
Java<sup><font size=-2>TM</font></sup> Platform Debugger Architecture</A>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
we are providing source code for the <b>jdb</b> debugger, which was
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
re-written to use
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
<A HREF="http://java.sun.com/j2se/1.4/docs/guide/jpda/architecture.html#jdi">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
JDI</A>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
<P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
<H2><b>jdb</b> man pages</H2>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
<BLOCKQUOTE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
<a href="http://java.sun.com/j2se/1.4/docs/tooldocs/win32/jdb.html"><font size="+1"><b>jdb</b> man pages for Windows</font></a>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
<P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
<a href="http://java.sun.com/j2se/1.4/docs/tooldocs/solaris/jdb.html"><font size="+1"><b>jdb</b> man pages for Solaris</font></a>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
</BLOCKQUOTE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
<P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
<H2>Invoking <b>jdb</b></H2>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
The <b>jdb</b> sample can be started by executing:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
<PRE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
   java com.sun.tools.example.debug.tty.TTY &lt;options&gt;.. &lt;class-name&gt;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
</PRE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
where &lt;class-name&gt; is the name you would normally
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
place on the <code>java</code> command line. The <code>-help</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
option provides information on options. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
</P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
<P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
Note: the path to the <A HREF="index.html#SETUP">JDI Library</A> and to 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
the compiled <b>jdb</b> class files must be on the class path
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
used to invoke com.sun.tools.example.debug.tty.TTY.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
<p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
For more information on invoking and connecting, refer to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
<A HREF="http://java.sun.com/j2se/1.4/docs/guide/jpda/conninv.html">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
Connection and Invocation Details</A> section of the 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
<A HREF="http://java.sun.com/j2se/1.4/docs/guide/jpda/">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
JPDA documentation</A>, 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
particularly the section on <b>jdb</b>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
<P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
<H2>Source for jdb</H2>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
Full source code for <b>jdb</b> is included under the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
<code>debug</code> directory of <code>examples.jar</code>.  
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
Note: these directories also include the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
source for <a href="javadt.html"><code>javadt</code></a>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
Source code for these example applications is included to provide concrete
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
examples for debugger developers.  Example code may be used, modified
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
and redistributed by debugger developers providing they adhere to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
terms in the COPYRIGHT notice.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
<P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
<b>jdb</b> uses the following packages (found under the 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
<code>debug</code> directory): 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
<DL>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
<DT><code>tty</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
<DD>Application code
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
<DT><code>expr</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
<DD>Expression processing code
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
</DL>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
<P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
<H2>Building jdb</H2>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
To completely rebuild the <b>jdb</b> classes from the 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
provided source files under the <code>debug</code> directory, 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
you need only to compile them. No special
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
options are required, aside from those which set your classpath to 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
include the <A HREF="index.html#SETUP">JDI Library</A>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
</P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
<P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
However, if you want to modify the expression parser in the file
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
<code>Expr.jj</code>, you will need the 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
<a href="http://www.metamata.com/javacc/">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
JavaCC parser generator</a>. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
It is available free from 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
<a
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
href="http://www.webgain.com/products/metamata/java_doc.html">Metamata
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
(now part of WebGain)</a>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
<P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
    <hr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
    <address><a href="mailto:java-debugger@java.sun.com">java-debugger@java.sun.com</a></address>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
    </P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
<P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
</P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
  </BODY>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
</HTML>