equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1998, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
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 |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
38 #include "bag.h" |
38 #include "bag.h" |
39 #include "invoker.h" |
39 #include "invoker.h" |
40 #include "sys.h" |
40 #include "sys.h" |
41 |
41 |
42 /* How the options get to OnLoad: */ |
42 /* How the options get to OnLoad: */ |
43 #define XDEBUG "-Xdebug" |
|
44 #define XRUN "-Xrunjdwp" |
43 #define XRUN "-Xrunjdwp" |
45 #define AGENTLIB "-agentlib:jdwp" |
44 #define AGENTLIB "-agentlib:jdwp" |
46 |
45 |
47 /* Debug version defaults */ |
46 /* Debug version defaults */ |
48 #ifdef DEBUG |
47 #ifdef DEBUG |
871 "address=<listen/attach address> transport spec \"\"\n" |
870 "address=<listen/attach address> transport spec \"\"\n" |
872 "server=y|n listen for debugger? n\n" |
871 "server=y|n listen for debugger? n\n" |
873 "launch=<command line> run debugger on event none\n" |
872 "launch=<command line> run debugger on event none\n" |
874 "onthrow=<exception name> debug on throw none\n" |
873 "onthrow=<exception name> debug on throw none\n" |
875 "onuncaught=y|n debug on any uncaught? n\n" |
874 "onuncaught=y|n debug on any uncaught? n\n" |
876 "onjcmd=y|n start debug via jcmd? n\n" |
|
877 "timeout=<timeout value> for listen/attach in milliseconds n\n" |
875 "timeout=<timeout value> for listen/attach in milliseconds n\n" |
878 "mutf8=y|n output modified utf-8 n\n" |
876 "mutf8=y|n output modified utf-8 n\n" |
879 "quiet=y|n control over terminal messages n\n")); |
877 "quiet=y|n control over terminal messages n\n")); |
880 |
878 |
881 TTY_MESSAGE(( |
879 TTY_MESSAGE(( |
897 "\n" |
895 "\n" |
898 "Warnings\n" |
896 "Warnings\n" |
899 "--------\n" |
897 "--------\n" |
900 " - The older " XRUN " interface can still be used, but will be removed in\n" |
898 " - The older " XRUN " interface can still be used, but will be removed in\n" |
901 " a future release, for example:\n" |
899 " a future release, for example:\n" |
902 " java " XDEBUG " " XRUN ":[help]|[<option>=<value>, ...]\n" |
900 " java " XRUN ":[help]|[<option>=<value>, ...]\n" |
903 )); |
901 )); |
904 |
902 |
905 #ifdef DEBUG |
903 #ifdef DEBUG |
906 |
904 |
907 TTY_MESSAGE(( |
905 TTY_MESSAGE(( |