This class wraps much of the basic functionality and is the highest-level factory for VM data structures. It makes it simple to start up the debugging system.
FIXME: especially with the addition of remote debugging, this has turned into a mess; needs rethinking.
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| private String | |
| private String | |
| private TypeDataBase | |
| private JVMDebugger | |
| private String | |
| private boolean | |
| private String | |
| private String[] | |
| private MachineDescription | |
| private String | |
| private int | |
| public static final int | |
| public static final int | |
| private int | |
| private String | |
| private String | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized void | |
| public synchronized void | |
| public synchronized void | |
| public synchronized void | |
| private void | |
| private void | |
| public synchronized boolean | |
| private boolean | |
| public synchronized JVMDebugger | |
| public int | |
| public synchronized TypeDataBase | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| pack-priv static void | |
| public synchronized boolean | shutdownServer()
Deprecated
for removal since 24.
This may only be called on the server side after startServer() has been called |
| public synchronized void | startServer(int processID, String serverID, String serverName, int rmiPort)
Deprecated
for removal since 24.
This attaches to a process running on the local machine and starts a debug server, allowing remote machines to connect and examine this process. |
| public synchronized void | startServer(int processID, String serverID, String serverName)
Deprecated
for removal since 24.
This attaches to a process running on the local machine and starts a debug server, allowing remote machines to connect and examine this process. |
| public synchronized void | startServer(int processID)
Deprecated
for removal since 24.
This attaches to a process running on the local machine and starts a debug server, allowing remote machines to connect and examine this process. |
| public synchronized void | startServer(String javaExecutableName, String coreFileName, String serverID, String serverName, int rmiPort)
Deprecated
for removal since 24.
This opens a core file on the local machine and starts a debug server, allowing remote machines to connect and examine this core file. |
| public synchronized void | startServer(String javaExecutableName, String coreFileName, String serverID, String serverName)
Deprecated
for removal since 24.
This opens a core file on the local machine and starts a debug server, allowing remote machines to connect and examine this core file. |
| public synchronized void | startServer(String javaExecutableName, String coreFileName)
Deprecated
for removal since 24.
This opens a core file on the local machine and starts a debug server, allowing remote machines to connect and examine this core file. |
| CORE_FILE_MODE | back to summary |
|---|---|
| public static final int CORE_FILE_MODE | |
| coreFileName | back to summary |
|---|---|
| private String coreFileName | |
| cpu | back to summary |
|---|---|
| private String cpu | |
| db | back to summary |
|---|---|
| private TypeDataBase db | |
| debugger | back to summary |
|---|---|
| private JVMDebugger debugger | |
| debugServerID | back to summary |
|---|---|
| private String debugServerID | |
| isServer | back to summary |
|---|---|
| private boolean isServer | |
| javaExecutableName | back to summary |
|---|---|
| private String javaExecutableName | |
| jvmLibNames | back to summary |
|---|---|
| private String[] jvmLibNames | |
| machDesc | back to summary |
|---|---|
| private MachineDescription machDesc | |
| os | back to summary |
|---|---|
| private String os | |
| pid | back to summary |
|---|---|
| private int pid | |
| PROCESS_MODE | back to summary |
|---|---|
| public static final int PROCESS_MODE | |
| REMOTE_MODE | back to summary |
|---|---|
| public static final int REMOTE_MODE | |
| rmiPort | back to summary |
|---|---|
| private int rmiPort | |
| serverID | back to summary |
|---|---|
| private String serverID | |
| serverName | back to summary |
|---|---|
| private String serverName | |
| startupMode | back to summary |
|---|---|
| private int startupMode | |
| HotSpotAgent | back to summary |
|---|---|
| public HotSpotAgent() | |
| attach | back to summary |
|---|---|
| public synchronized void attach(int processID) throws DebuggerException This attaches to a process running on the local machine. | |
| attach | back to summary |
|---|---|
| public synchronized void attach(String javaExecutableName, String coreFileName) throws DebuggerException This opens a core file on the local machine | |
| attach | back to summary |
|---|---|
| public synchronized void attach(JVMDebugger d) throws DebuggerException This uses a JVMDebugger that is already attached to the core or process | |
| attach | back to summary |
|---|---|
| public synchronized void attach(String remoteServerID) throws DebuggerException This attaches to a "debug server" on a remote machine; this remote server has already attached to a process or opened a core file and is waiting for RMI calls on the Debugger object to come in. | |
| attachDebugger | back to summary |
|---|---|
| private void attachDebugger() Convenience routine which should be called by per-platform debugger setup. Should not be called when startupMode is REMOTE_MODE. | |
| connectRemoteDebugger | back to summary |
|---|---|
| private void connectRemoteDebugger() throws DebuggerException | |
| detach | back to summary |
|---|---|
| public synchronized boolean detach() throws DebuggerException This should only be called by the user on the client machine, not the server machine | |
| detachInternal | back to summary |
|---|---|
| private boolean detachInternal() | |
| getDebugger | back to summary |
|---|---|
| public synchronized JVMDebugger getDebugger() | |
| getStartupMode | back to summary |
|---|---|
| public int getStartupMode() | |
| getTypeDataBase | back to summary |
|---|---|
| public synchronized TypeDataBase getTypeDataBase() | |
| go | back to summary |
|---|---|
| private void go() | |
| setupDebugger | back to summary |
|---|---|
| private void setupDebugger() | |
| setupDebuggerAlternate | back to summary |
|---|---|
| private void setupDebuggerAlternate(String alternateName) | |
| setupDebuggerBsd | back to summary |
|---|---|
| private void setupDebuggerBsd() | |
| setupDebuggerDarwin | back to summary |
|---|---|
| private void setupDebuggerDarwin() | |
| setupDebuggerExisting | back to summary |
|---|---|
| private void setupDebuggerExisting() | |
| setupDebuggerLinux | back to summary |
|---|---|
| private void setupDebuggerLinux() | |
| setupDebuggerWin32 | back to summary |
|---|---|
| private void setupDebuggerWin32() | |
| setupJVMLibNames | back to summary |
|---|---|
| private void setupJVMLibNames(String os) | |
| setupJVMLibNamesBsd | back to summary |
|---|---|
| private void setupJVMLibNamesBsd() | |
| setupJVMLibNamesDarwin | back to summary |
|---|---|
| private void setupJVMLibNamesDarwin() | |
| setupJVMLibNamesLinux | back to summary |
|---|---|
| private void setupJVMLibNamesLinux() | |
| setupJVMLibNamesWin32 | back to summary |
|---|---|
| private void setupJVMLibNamesWin32() | |
| setupVM | back to summary |
|---|---|
| private void setupVM() | |
| showUsage | back to summary |
|---|---|
| pack-priv static void showUsage() | |
| shutdownServer | back to summary |
|---|---|
| public synchronized boolean shutdownServer() throws DebuggerException
Deprecated for removal since 24. This may only be called on the server side after startServer() has been called
| |
| startServer | back to summary |
|---|---|
| public synchronized void startServer(int processID, String serverID, String serverName, int rmiPort)
Deprecated for removal since 24. This attaches to a process running on the local machine and starts a debug server, allowing remote machines to connect and examine this process. Uses specified name to uniquely identify a specific debuggee on the server. Allows to specify the port number to which the RMI connector is bound. If not specified a random available port is used.
| |
| startServer | back to summary |
|---|---|
| public synchronized void startServer(int processID, String serverID, String serverName)
Deprecated for removal since 24. This attaches to a process running on the local machine and starts a debug server, allowing remote machines to connect and examine this process. Uses specified name to uniquely identify a specific debuggee on the server
| |
| startServer | back to summary |
|---|---|
| public synchronized void startServer(int processID) throws DebuggerException
Deprecated for removal since 24. This attaches to a process running on the local machine and starts a debug server, allowing remote machines to connect and examine this process.
| |
| startServer | back to summary |
|---|---|
| public synchronized void startServer(String javaExecutableName, String coreFileName, String serverID, String serverName, int rmiPort)
Deprecated for removal since 24. This opens a core file on the local machine and starts a debug server, allowing remote machines to connect and examine this core file. Uses supplied uniqueID to uniquely identify a specific debuggee. Allows to specify the port number to which the RMI connector is bound. If not specified a random available port is used.
| |
| startServer | back to summary |
|---|---|
| public synchronized void startServer(String javaExecutableName, String coreFileName, String serverID, String serverName)
Deprecated for removal since 24. This opens a core file on the local machine and starts a debug server, allowing remote machines to connect and examine this core file. Uses supplied uniqueID to uniquely identify a specific debuggee
| |
| startServer | back to summary |
|---|---|
| public synchronized void startServer(String javaExecutableName, String coreFileName) throws DebuggerException
Deprecated for removal since 24. This opens a core file on the local machine and starts a debug server, allowing remote machines to connect and examine this core file.
| |