0N/A<HTML>
0N/A<HEAD>
0N/A <TITLE>Release notes for the jdb debugger</TITLE>
0N/A</HEAD>
0N/A<BODY TEXT="#000000" BGCOLOR="#FFFFFF" LINK="#0000FF" VLINK="#000077" ALINK="#FF0000">
0N/A&nbsp;
0N/A<TABLE BORDER=0 WIDTH="100%" >
0N/A<TR>
0N/A
0N/A<TD>
0N/A<CENTER>
0N/A<H1>Release notes for the jdb debugger</H1></CENTER>
0N/A</TD>
0N/A</TR>
0N/A</TABLE>
0N/A<!-- Body text begins here -->
0N/A<P>
0N/A<A HREF="index.html">Home Page</A>
0N/A
0N/A<P>
0N/AAs a demonstration of the
0N/A<A HREF="http://java.sun.com/j2se/1.4/docs/guide/jpda/architecture.html">
0N/AJava<sup><font size=-2>TM</font></sup> Platform Debugger Architecture</A>
0N/Awe are providing source code for the <b>jdb</b> debugger, which was
0N/Are-written to use
0N/A<A HREF="http://java.sun.com/j2se/1.4/docs/guide/jpda/architecture.html#jdi">
0N/AJDI</A>.
0N/A
0N/A<P>
0N/A<H2><b>jdb</b> man pages</H2>
0N/A<BLOCKQUOTE>
0N/A<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>
0N/A<P>
0N/A<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>
0N/A</BLOCKQUOTE>
0N/A<P>
0N/A<H2>Invoking <b>jdb</b></H2>
0N/AThe <b>jdb</b> sample can be started by executing:
0N/A<PRE>
0N/A java com.sun.tools.example.debug.tty.TTY &lt;options&gt;.. &lt;class-name&gt;
0N/A</PRE>
0N/Awhere &lt;class-name&gt; is the name you would normally
0N/Aplace on the <code>java</code> command line. The <code>-help</code>
0N/Aoption provides information on options.
0N/A</P>
0N/A<P>
0N/ANote: the path to the <A HREF="index.html#SETUP">JDI Library</A> and to
0N/Athe compiled <b>jdb</b> class files must be on the class path
0N/Aused to invoke com.sun.tools.example.debug.tty.TTY.
0N/A
0N/A<p>
0N/AFor more information on invoking and connecting, refer to the
0N/A<A HREF="http://java.sun.com/j2se/1.4/docs/guide/jpda/conninv.html">
0N/AConnection and Invocation Details</A> section of the
0N/A<A HREF="http://java.sun.com/j2se/1.4/docs/guide/jpda/">
0N/AJPDA documentation</A>,
0N/Aparticularly the section on <b>jdb</b>.
0N/A<P>
0N/A
0N/A
0N/A<H2>Source for jdb</H2>
0N/AFull source code for <b>jdb</b> is included under the
0N/A<code>debug</code> directory of <code>examples.jar</code>.
0N/ANote: these directories also include the
0N/Asource for <a href="javadt.html"><code>javadt</code></a>.
0N/ASource code for these example applications is included to provide concrete
0N/Aexamples for debugger developers. Example code may be used, modified
0N/Aand redistributed by debugger developers providing they adhere to the
0N/Aterms in the COPYRIGHT notice.
0N/A<P>
0N/A<b>jdb</b> uses the following packages (found under the
0N/A<code>debug</code> directory):
0N/A<DL>
0N/A<DT><code>tty</code>
0N/A<DD>Application code
0N/A<DT><code>expr</code>
0N/A<DD>Expression processing code
0N/A</DL>
0N/A
0N/A<P>
0N/A<H2>Building jdb</H2>
0N/ATo completely rebuild the <b>jdb</b> classes from the
0N/Aprovided source files under the <code>debug</code> directory,
0N/Ayou need only to compile them. No special
0N/Aoptions are required, aside from those which set your classpath to
0N/Ainclude the <A HREF="index.html#SETUP">JDI Library</A>.
0N/A</P>
0N/A<P>
0N/AHowever, if you want to modify the expression parser in the file
0N/A<code>Expr.jj</code>, you will need the
0N/A<a href="http://www.metamata.com/javacc/">
0N/AJavaCC parser generator</a>.
0N/AIt is available free from
0N/A<a
0N/Ahref="http://www.webgain.com/products/metamata/java_doc.html">Metamata
0N/A(now part of WebGain)</a>.
0N/A<P>
0N/A <hr>
0N/A <address><a href="mailto:java-debugger@java.sun.com">java-debugger@java.sun.com</a></address>
0N/A </P>
0N/A<P>
0N/A</P>
0N/A </BODY>
0N/A</HTML>