@@ -10,26 +10,17 @@ <h1>Command line HSDB</h1>
1010< p >
1111When debugging remote core dumps it is easier to work with command line tools instead of
1212GUI tools. Command line HSDB (CLHSDB) tool is alternative to SA GUI tool HSDB.
13+ CLHSDB is launched from the command line using the "jhsdb clhsdb" command.
1314</ p >
1415
1516< p >
16- There is also JavaScript based SA command line interface called < a href ="jsdb.html "> jsdb</ a > .
17- But, CLHSDB supports Unix shell-like (or dbx/gdb-like) command line interface with
17+ CLHSDB supports Unix shell-like (or dbx/gdb-like) command line interface with
1818support for output redirection/appending (familiar >, >>), command history and so on.
1919Each CLHSDB command can have zero or more arguments and optionally end with output redirection
2020(or append) to a file. Commands may be stored in a file and run using < b > source</ b > command.
2121< b > help</ b > command prints usage message for all supported commands (or a specific command)
2222</ p >
2323
24- < h3 > Shell/batch scripts to run command line HSDB</ h3 >
25-
26- < ul >
27- < li > clhsdbproc.sh
28- < li > clhsdbproc64.sh
29- < li > clhsdbwindbg.bat
30- < li > clhsdbwindbg64.bat
31- </ ul >
32-
3324< h3 > Annotated output of CLHSDB help command</ h3 >
3425
3526< pre >
@@ -62,8 +53,6 @@ <h3>Annotated output of CLHSDB help command</h3>
6253 intConstant [ name [ value ] ] < font color ="red "> print out hotspot integer constant(s)</ font >
6354 jdis address < font color ="red "> show bytecode disassembly of a given Method*</ font >
6455 jhisto < font color ="red "> show Java heap histogram</ font >
65- jseval script < font color ="red "> evaluate a given string as JavaScript code</ font >
66- jsload file < font color ="red "> load and evaluate a JavaScript file</ font >
6756 jstack [-v] < font color ="red "> show Java stack trace of all Java threads. -v is verbose mode</ font >
6857 livenmethods < font color ="red "> show all live nmethods</ font >
6958 longConstant [ name [ value ] ] < font color ="red "> print out hotspot long constant(s)s</ font >
@@ -95,39 +84,6 @@ <h3>Annotated output of CLHSDB help command</h3>
9584</ code >
9685</ pre >
9786
98- < h3 > JavaScript integration</ h3 >
99-
100- < p > Few CLHSDB commands are already implemented in JavaScript. It is possible to extend CLHSDB command set
101- by implementing more commands in a JavaScript file and by loading it by < b > jsload</ b > command. < b > jseval</ b >
102- command may be used to evaluate arbitrary JavaScript expression from a string. Any JavaScript function
103- may be exposed as a CLHSDB command by registering it using JavaScript < b > < code > registerCommand</ code > </ b >
104- function. This function accepts command name, usage and name of the JavaScript implementation function
105- as arguments.
106- </ p >
107-
108- < h3 > Simple CLHSDB command implemented in JavaScript</ h3 >
109-
110- < b > File: test.js</ b >
111- < pre >
112- < code >
113- function helloImpl(name) {
114- println("hello, " + name);
115- }
116-
117- // register the above JavaScript function as CLHSDB command
118- registerCommand("hello", "hello name", "helloImpl");
119- </ code >
120- </ pre >
121- ---------< br >
122-
123- "test.js" can be loaded in CLHSDB prompt using < b > jsload</ b > command using
124-
125- < pre >
126- < code >
127- hsdb> jsload test.js
128- </ code >
129- </ pre >
130-
13187< h3 > Compilation Replay</ h3 >
13288< p >
13389When a java process crashes in compiled method, usually a core file is saved.
0 commit comments