Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
JDK 11 jdk.jdi.jmod - JDI Tool
JDK 11 jdk.jdi.jmod is the JMOD file for JDK 11 JDI (Java Debug Interface) tool.
JDK 11 JDI tool compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\jdk.jdi.jmod.
JDK 11 JDI tool compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 JDI tool source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\jdk.jdi.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ com/sun/tools/jdi/ProcessAttachingConnector.java
/* * Copyright (c) 2005, 2017, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.tools.jdi; import java.io.IOException; import java.util.Map; import java.util.Properties; import com.sun.jdi.Bootstrap; import com.sun.jdi.VirtualMachine; import com.sun.jdi.connect.AttachingConnector; import com.sun.jdi.connect.Connector; import com.sun.jdi.connect.IllegalConnectorArgumentsException; import com.sun.jdi.connect.Transport; import com.sun.jdi.connect.spi.Connection; import com.sun.jdi.connect.spi.TransportService; /* * An AttachingConnector that connects to a debuggee by specifying the process * id (pid) as the connector argument. If the process is a debuggee listening * on a transport address then this connector reads the transport address * and attempts to attach to it using the appropriate transport. */ public class ProcessAttachingConnector extends ConnectorImpl implements AttachingConnector { /* * The arguments that this connector supports */ static final String ARG_PID = "pid"; static final String ARG_TIMEOUT = "timeout"; com.sun.tools.attach.VirtualMachine vm; Transport transport; public ProcessAttachingConnector() { addStringArgument( ARG_PID, getString("process_attaching.pid.label"), getString("process_attaching.pid"), "", true); addIntegerArgument( ARG_TIMEOUT, getString("generic_attaching.timeout.label"), // use generic keys to keep getString("generic_attaching.timeout"), // resource bundle small "", false, 0, Integer.MAX_VALUE); transport = new Transport() { public String name() { return "local"; } }; } /** * Attach to a target VM using the specified address and Connector arguments. */ public VirtualMachine attach(Map<String,? extends Connector.Argument> args) throws IOException, IllegalConnectorArgumentsException { String pid = argument(ARG_PID, args).value(); String t = argument(ARG_TIMEOUT, args).value(); int timeout = 0; if (t.length() > 0) { timeout = Integer.decode(t).intValue(); } // Use Attach API to attach to target VM and read value of // sun.jdwp.listenAddress property. String address = null; com.sun.tools.attach.VirtualMachine vm = null; try { vm = com.sun.tools.attach.VirtualMachine.attach(pid); Properties props = vm.getAgentProperties(); address = props.getProperty("sun.jdwp.listenerAddress"); } catch (Exception x) { throw new IOException(x.getMessage()); } finally { if (vm != null) vm.detach(); } // check that the property value is formatted correctly if (address == null) { throw new IOException("Not a debuggee, or not listening for debugger to attach"); } int pos = address.indexOf(':'); if (pos < 1) { throw new IOException("Unable to determine transport endpoint"); } // parse into transport library name and address final String lib = address.substring(0, pos); address = address.substring(pos+1, address.length()); TransportService ts = null; if (lib.equals("dt_socket")) { ts = new SocketTransportService(); } else { if (lib.equals("dt_shmem")) { try { Class<?> c = Class.forName("com.sun.tools.jdi.SharedMemoryTransportService"); @SuppressWarnings("deprecation") Object tmp = c.newInstance(); ts = (TransportService)tmp; } catch (Exception x) { } } } if (ts == null) { throw new IOException("Transport " + lib + " not recognized"); } // connect to the debuggee Connection connection = ts.attach(address, timeout, 0); return Bootstrap.virtualMachineManager().createVirtualMachine(connection); } public String name() { return "com.sun.jdi.ProcessAttach"; } public String description() { return getString("process_attaching.description"); } public Transport transport() { if (transport == null) { return new Transport() { public String name() { return "local"; } }; } return transport; } }
⏎ com/sun/tools/jdi/ProcessAttachingConnector.java
Or download all of them as a single archive file:
File name: jdk.jdi-11.0.1-src.zip File size: 464844 bytes Release date: 2018-11-04 Download
⇒ JDK 11 jdk.jdwp.agent.jmod - JDWP Agent Module
2020-07-07, 63273👍, 0💬
Popular Posts:
JRE 8 deploy.jar is the JAR file for JRE 8 Java Control Panel and other deploy tools. JRE (Java Runt...
Jaxen, Release 1.1.1, is an open source XPath library written in Java. It is adaptable to many diffe...
Java Cryptography Extension 1.6 JAR File Size and Download Location: File name: jce.jar, jce-1.6.jar...
How to run "jar" command from JDK tools.jar file? "jar" is the JAR (Java Archive) file management co...
What Is wstx-asl-3.2.8.jar? wstx-asl-3.2.8.jar is JAR file for the ASL component of Woodstox 3.2.8. ...