< prev index next >

test/hotspot/jtreg/vmTestbase/nsk/share/jdb/Launcher.java

Print this page

200                     throw new TestBug("Launcher: Undefined transport type for RawLaunchingConnector");
201                 }
202 
203                 connect.append("address=" + connectorAddress.trim());
204                 connect.append(",command=" + makeCommandLineString(classToExecute, vmAddress, " ").trim());
205 
206             } else /* LaunchingConnector or DefaultConnector */ {
207 
208                 connect.append("vmexec=" + argumentHandler.getLaunchExecName().trim());
209                 String debuggeeOpts = argumentHandler.getDebuggeeOptions();
210                 if (debuggeeOpts.trim().length() > 0) {
211                     //connect.append(",options=" + debuggeeOpts.trim());
212                     connect.append(",options=");
213                     for (String arg : debuggeeOpts.split("\\s+")) {
214                        connect.append(" \"");
215                        connect.append(arg);
216                        connect.append("\"");
217                     }
218                 }
219                 String cmdline = classToExecute + " " + ArgumentHandler.joinArguments(argumentHandler.getArguments(), " ");



220                 connect.append(",main=" + cmdline.trim());
221 
222             }
223 
224 //            connect.append(quote);
225 
226         } else {
227 
228             connect.append(argumentHandler.getConnectorName() + ":");
229 
230             if (argumentHandler.isAttachingConnector()) {
231 
232                 if (argumentHandler.isSocketTransport()) {
233                     connect.append("port=" + argumentHandler.getTransportPort().trim());
234                     if (argumentHandler.isLaunchedRemotely())
235                         connect.append(",hostname=" + argumentHandler.getDebugeeHost().trim());
236                 } else if (argumentHandler.isShmemTransport()) {
237                     connect.append("name=" + argumentHandler.getTransportSharedName().trim());
238                 } else {
239                     throw new TestBug("Launcher: Undefined transport type for AttachingConnector");

200                     throw new TestBug("Launcher: Undefined transport type for RawLaunchingConnector");
201                 }
202 
203                 connect.append("address=" + connectorAddress.trim());
204                 connect.append(",command=" + makeCommandLineString(classToExecute, vmAddress, " ").trim());
205 
206             } else /* LaunchingConnector or DefaultConnector */ {
207 
208                 connect.append("vmexec=" + argumentHandler.getLaunchExecName().trim());
209                 String debuggeeOpts = argumentHandler.getDebuggeeOptions();
210                 if (debuggeeOpts.trim().length() > 0) {
211                     //connect.append(",options=" + debuggeeOpts.trim());
212                     connect.append(",options=");
213                     for (String arg : debuggeeOpts.split("\\s+")) {
214                        connect.append(" \"");
215                        connect.append(arg);
216                        connect.append("\"");
217                     }
218                 }
219                 String cmdline = classToExecute + " " + ArgumentHandler.joinArguments(argumentHandler.getArguments(), " ");
220                 if (System.getProperty("main.wrapper") != null) {
221                     cmdline = MainWrapper.class.getName() + " " + System.getProperty("main.wrapper") +  " " + cmdline;
222                 }
223                 connect.append(",main=" + cmdline.trim());
224 
225             }
226 
227 //            connect.append(quote);
228 
229         } else {
230 
231             connect.append(argumentHandler.getConnectorName() + ":");
232 
233             if (argumentHandler.isAttachingConnector()) {
234 
235                 if (argumentHandler.isSocketTransport()) {
236                     connect.append("port=" + argumentHandler.getTransportPort().trim());
237                     if (argumentHandler.isLaunchedRemotely())
238                         connect.append(",hostname=" + argumentHandler.getDebugeeHost().trim());
239                 } else if (argumentHandler.isShmemTransport()) {
240                     connect.append("name=" + argumentHandler.getTransportSharedName().trim());
241                 } else {
242                     throw new TestBug("Launcher: Undefined transport type for AttachingConnector");
< prev index next >