< prev index next >

src/jdk.jdi/share/classes/com/sun/tools/example/debug/tty/TTYResources.java

Print this page
rev 48074 : 8189102: All tools should support -?, -h and --help
Reviewed-by: kvn, jjg, weijun, alanb, rfield, ksrini
   1 /*
   2  * Copyright (c) 2001, 2011, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


 409              "\n" +
 410              "!!                        -- repeat last command\n" +
 411              "<n> <command>             -- repeat command n times\n" +
 412              "# <command>               -- discard (no-op)\n" +
 413              "help (or ?)               -- list commands\n" +
 414              "version                   -- print version information\n" +
 415              "exit (or quit)            -- exit debugger\n" +
 416              "\n" +
 417              "<class id>: a full class name with package qualifiers\n" +
 418              "<class pattern>: a class name with a leading or trailing wildcard ('*')\n" +
 419              "<thread id>: thread number as reported in the 'threads' command\n" +
 420              "<expr>: a Java(TM) Programming Language expression.\n" +
 421              "Most common syntax is supported.\n" +
 422              "\n" +
 423              "Startup commands can be placed in either \"jdb.ini\" or \".jdbrc\"\n" +
 424              "in user.home or user.dir"},
 425         {"zz usage text",
 426              "Usage: {0} <options> <class> <arguments>\n" +
 427              "\n" +
 428              "where options include:\n" +
 429              "    -help             print out this message and exit\n" +
 430              "    -sourcepath <directories separated by \"{1}\">\n" +
 431              "                      directories in which to look for source files\n" +
 432              "    -attach <address>\n" +
 433              "                      attach to a running VM at the specified address using standard connector\n" +
 434              "    -listen <address>\n" +
 435              "                      wait for a running VM to connect at the specified address using standard connector\n" +
 436              "    -listenany\n" +
 437              "                      wait for a running VM to connect at any available address using standard connector\n" +
 438              "    -launch\n" +
 439              "                      launch VM immediately instead of waiting for ''run'' command\n" +
 440              "    -listconnectors   list the connectors available in this VM\n" +
 441              "    -connect <connector-name>:<name1>=<value1>,...\n" +
 442              "                      connect to target VM using named connector with listed argument values\n" +
 443              "    -dbgtrace [flags] print info for debugging {0}\n" +
 444              "    -tclient          run the application in the HotSpot(TM) Client Compiler\n" +
 445              "    -tserver          run the application in the HotSpot(TM) Server Compiler\n" +
 446              "\n" +
 447              "options forwarded to debuggee process:\n" +
 448              "    -v -verbose[:class|gc|jni]\n" +
 449              "                      turn on verbose mode\n" +
   1 /*
   2  * Copyright (c) 2001, 2017, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


 409              "\n" +
 410              "!!                        -- repeat last command\n" +
 411              "<n> <command>             -- repeat command n times\n" +
 412              "# <command>               -- discard (no-op)\n" +
 413              "help (or ?)               -- list commands\n" +
 414              "version                   -- print version information\n" +
 415              "exit (or quit)            -- exit debugger\n" +
 416              "\n" +
 417              "<class id>: a full class name with package qualifiers\n" +
 418              "<class pattern>: a class name with a leading or trailing wildcard ('*')\n" +
 419              "<thread id>: thread number as reported in the 'threads' command\n" +
 420              "<expr>: a Java(TM) Programming Language expression.\n" +
 421              "Most common syntax is supported.\n" +
 422              "\n" +
 423              "Startup commands can be placed in either \"jdb.ini\" or \".jdbrc\"\n" +
 424              "in user.home or user.dir"},
 425         {"zz usage text",
 426              "Usage: {0} <options> <class> <arguments>\n" +
 427              "\n" +
 428              "where options include:\n" +
 429              "    -? -h --help -help print this help message and exit\n" +
 430              "    -sourcepath <directories separated by \"{1}\">\n" +
 431              "                      directories in which to look for source files\n" +
 432              "    -attach <address>\n" +
 433              "                      attach to a running VM at the specified address using standard connector\n" +
 434              "    -listen <address>\n" +
 435              "                      wait for a running VM to connect at the specified address using standard connector\n" +
 436              "    -listenany\n" +
 437              "                      wait for a running VM to connect at any available address using standard connector\n" +
 438              "    -launch\n" +
 439              "                      launch VM immediately instead of waiting for ''run'' command\n" +
 440              "    -listconnectors   list the connectors available in this VM\n" +
 441              "    -connect <connector-name>:<name1>=<value1>,...\n" +
 442              "                      connect to target VM using named connector with listed argument values\n" +
 443              "    -dbgtrace [flags] print info for debugging {0}\n" +
 444              "    -tclient          run the application in the HotSpot(TM) Client Compiler\n" +
 445              "    -tserver          run the application in the HotSpot(TM) Server Compiler\n" +
 446              "\n" +
 447              "options forwarded to debuggee process:\n" +
 448              "    -v -verbose[:class|gc|jni]\n" +
 449              "                      turn on verbose mode\n" +
< prev index next >