sun.jvm.hotspot.debugger.bsd.BsdDebuggerLocal Java Examples

The following examples show how to use sun.jvm.hotspot.debugger.bsd.BsdDebuggerLocal. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: HotSpotAgent.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
private void setupDebuggerDarwin() {
    setupJVMLibNamesDarwin();

    if (cpu.equals("amd64") || cpu.equals("x86_64")) {
        machDesc = new MachineDescriptionAMD64();
    } else {
        throw new DebuggerException("Darwin only supported on x86_64. Current arch: " + cpu);
    }

    BsdDebuggerLocal dbg = new BsdDebuggerLocal(machDesc, !isServer);
    debugger = dbg;

    attachDebugger();
}
 
Example #2
Source File: BsdAMD64JavaThreadPDAccess.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public    ThreadProxy getThreadProxy(Address addr) {
  // Addr is the address of the JavaThread.
  // Fetch the OSThread (for now and for simplicity, not making a
  // separate "OSThread" class in this package)
  Address osThreadAddr = osThreadField.getValue(addr);
  // Get the address of the _thread_id from the OSThread
  Address threadIdAddr = osThreadAddr.addOffsetTo(osThreadThreadIDField.getOffset());
  Address uniqueThreadIdAddr = osThreadAddr.addOffsetTo(osThreadUniqueThreadIDField.getOffset());

  BsdDebuggerLocal debugger = (BsdDebuggerLocal) VM.getVM().getDebugger();
  return debugger.getThreadForIdentifierAddress(threadIdAddr, uniqueThreadIdAddr);
}
 
Example #3
Source File: HotSpotAgent.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
private void setupDebuggerDarwin() {
    setupJVMLibNamesDarwin();

    if (cpu.equals("amd64") || cpu.equals("x86_64")) {
        machDesc = new MachineDescriptionAMD64();
    } else {
        throw new DebuggerException("Darwin only supported on x86_64. Current arch: " + cpu);
    }

    BsdDebuggerLocal dbg = new BsdDebuggerLocal(machDesc, !isServer);
    debugger = dbg;

    attachDebugger();
}
 
Example #4
Source File: BsdAMD64JavaThreadPDAccess.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public    ThreadProxy getThreadProxy(Address addr) {
  // Addr is the address of the JavaThread.
  // Fetch the OSThread (for now and for simplicity, not making a
  // separate "OSThread" class in this package)
  Address osThreadAddr = osThreadField.getValue(addr);
  // Get the address of the _thread_id from the OSThread
  Address threadIdAddr = osThreadAddr.addOffsetTo(osThreadThreadIDField.getOffset());
  Address uniqueThreadIdAddr = osThreadAddr.addOffsetTo(osThreadUniqueThreadIDField.getOffset());

  BsdDebuggerLocal debugger = (BsdDebuggerLocal) VM.getVM().getDebugger();
  return debugger.getThreadForIdentifierAddress(threadIdAddr, uniqueThreadIdAddr);
}
 
Example #5
Source File: HotSpotAgent.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
private void setupDebuggerDarwin() {
    setupJVMLibNamesDarwin();

    if (cpu.equals("amd64") || cpu.equals("x86_64")) {
        machDesc = new MachineDescriptionAMD64();
    } else {
        throw new DebuggerException("Darwin only supported on x86_64. Current arch: " + cpu);
    }

    BsdDebuggerLocal dbg = new BsdDebuggerLocal(machDesc, !isServer);
    debugger = dbg;

    attachDebugger();
}
 
Example #6
Source File: BsdAMD64JavaThreadPDAccess.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public    ThreadProxy getThreadProxy(Address addr) {
  // Addr is the address of the JavaThread.
  // Fetch the OSThread (for now and for simplicity, not making a
  // separate "OSThread" class in this package)
  Address osThreadAddr = osThreadField.getValue(addr);
  // Get the address of the _thread_id from the OSThread
  Address threadIdAddr = osThreadAddr.addOffsetTo(osThreadThreadIDField.getOffset());
  Address uniqueThreadIdAddr = osThreadAddr.addOffsetTo(osThreadUniqueThreadIDField.getOffset());

  BsdDebuggerLocal debugger = (BsdDebuggerLocal) VM.getVM().getDebugger();
  return debugger.getThreadForIdentifierAddress(threadIdAddr, uniqueThreadIdAddr);
}
 
Example #7
Source File: HotSpotAgent.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
private void setupDebuggerDarwin() {
    setupJVMLibNamesDarwin();

    if (cpu.equals("amd64") || cpu.equals("x86_64")) {
        machDesc = new MachineDescriptionAMD64();
    } else {
        throw new DebuggerException("Darwin only supported on x86_64. Current arch: " + cpu);
    }

    BsdDebuggerLocal dbg = new BsdDebuggerLocal(machDesc, !isServer);
    debugger = dbg;

    attachDebugger();
}
 
Example #8
Source File: BsdAMD64JavaThreadPDAccess.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public    ThreadProxy getThreadProxy(Address addr) {
  // Addr is the address of the JavaThread.
  // Fetch the OSThread (for now and for simplicity, not making a
  // separate "OSThread" class in this package)
  Address osThreadAddr = osThreadField.getValue(addr);
  // Get the address of the _thread_id from the OSThread
  Address threadIdAddr = osThreadAddr.addOffsetTo(osThreadThreadIDField.getOffset());
  Address uniqueThreadIdAddr = osThreadAddr.addOffsetTo(osThreadUniqueThreadIDField.getOffset());

  BsdDebuggerLocal debugger = (BsdDebuggerLocal) VM.getVM().getDebugger();
  return debugger.getThreadForIdentifierAddress(threadIdAddr, uniqueThreadIdAddr);
}
 
Example #9
Source File: HotSpotAgent.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
private void setupDebuggerDarwin() {
    setupJVMLibNamesDarwin();

    if (cpu.equals("amd64") || cpu.equals("x86_64")) {
        machDesc = new MachineDescriptionAMD64();
    } else {
        throw new DebuggerException("Darwin only supported on x86_64. Current arch: " + cpu);
    }

    BsdDebuggerLocal dbg = new BsdDebuggerLocal(machDesc, !isServer);
    debugger = dbg;

    attachDebugger();
}
 
Example #10
Source File: BsdAMD64JavaThreadPDAccess.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public    ThreadProxy getThreadProxy(Address addr) {
  // Addr is the address of the JavaThread.
  // Fetch the OSThread (for now and for simplicity, not making a
  // separate "OSThread" class in this package)
  Address osThreadAddr = osThreadField.getValue(addr);
  // Get the address of the _thread_id from the OSThread
  Address threadIdAddr = osThreadAddr.addOffsetTo(osThreadThreadIDField.getOffset());
  Address uniqueThreadIdAddr = osThreadAddr.addOffsetTo(osThreadUniqueThreadIDField.getOffset());

  BsdDebuggerLocal debugger = (BsdDebuggerLocal) VM.getVM().getDebugger();
  return debugger.getThreadForIdentifierAddress(threadIdAddr, uniqueThreadIdAddr);
}
 
Example #11
Source File: HotSpotAgent.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
private void setupDebuggerDarwin() {
    setupJVMLibNamesDarwin();

    if (cpu.equals("amd64") || cpu.equals("x86_64")) {
        machDesc = new MachineDescriptionAMD64();
    } else {
        throw new DebuggerException("Darwin only supported on x86_64. Current arch: " + cpu);
    }

    BsdDebuggerLocal dbg = new BsdDebuggerLocal(machDesc, !isServer);
    debugger = dbg;

    attachDebugger();
}
 
Example #12
Source File: BsdAMD64JavaThreadPDAccess.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public    ThreadProxy getThreadProxy(Address addr) {
  // Addr is the address of the JavaThread.
  // Fetch the OSThread (for now and for simplicity, not making a
  // separate "OSThread" class in this package)
  Address osThreadAddr = osThreadField.getValue(addr);
  // Get the address of the _thread_id from the OSThread
  Address threadIdAddr = osThreadAddr.addOffsetTo(osThreadThreadIDField.getOffset());
  Address uniqueThreadIdAddr = osThreadAddr.addOffsetTo(osThreadUniqueThreadIDField.getOffset());

  BsdDebuggerLocal debugger = (BsdDebuggerLocal) VM.getVM().getDebugger();
  return debugger.getThreadForIdentifierAddress(threadIdAddr, uniqueThreadIdAddr);
}
 
Example #13
Source File: HotSpotAgent.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
private void setupDebuggerDarwin() {
    setupJVMLibNamesDarwin();

    if (cpu.equals("amd64") || cpu.equals("x86_64")) {
        machDesc = new MachineDescriptionAMD64();
    } else {
        throw new DebuggerException("Darwin only supported on x86_64. Current arch: " + cpu);
    }

    BsdDebuggerLocal dbg = new BsdDebuggerLocal(machDesc, !isServer);
    debugger = dbg;

    attachDebugger();
}
 
Example #14
Source File: BsdAMD64JavaThreadPDAccess.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public    ThreadProxy getThreadProxy(Address addr) {
  // Addr is the address of the JavaThread.
  // Fetch the OSThread (for now and for simplicity, not making a
  // separate "OSThread" class in this package)
  Address osThreadAddr = osThreadField.getValue(addr);
  // Get the address of the _thread_id from the OSThread
  Address threadIdAddr = osThreadAddr.addOffsetTo(osThreadThreadIDField.getOffset());
  Address uniqueThreadIdAddr = osThreadAddr.addOffsetTo(osThreadUniqueThreadIDField.getOffset());

  BsdDebuggerLocal debugger = (BsdDebuggerLocal) VM.getVM().getDebugger();
  return debugger.getThreadForIdentifierAddress(threadIdAddr, uniqueThreadIdAddr);
}
 
Example #15
Source File: HotSpotAgent.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
private void setupDebuggerDarwin() {
    setupJVMLibNamesDarwin();

    if (cpu.equals("amd64") || cpu.equals("x86_64")) {
        machDesc = new MachineDescriptionAMD64();
    } else {
        throw new DebuggerException("Darwin only supported on x86_64. Current arch: " + cpu);
    }

    BsdDebuggerLocal dbg = new BsdDebuggerLocal(machDesc, !isServer);
    debugger = dbg;

    attachDebugger();
}
 
Example #16
Source File: BsdAMD64JavaThreadPDAccess.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public    ThreadProxy getThreadProxy(Address addr) {
  // Addr is the address of the JavaThread.
  // Fetch the OSThread (for now and for simplicity, not making a
  // separate "OSThread" class in this package)
  Address osThreadAddr = osThreadField.getValue(addr);
  // Get the address of the _thread_id from the OSThread
  Address threadIdAddr = osThreadAddr.addOffsetTo(osThreadThreadIDField.getOffset());
  Address uniqueThreadIdAddr = osThreadAddr.addOffsetTo(osThreadUniqueThreadIDField.getOffset());

  BsdDebuggerLocal debugger = (BsdDebuggerLocal) VM.getVM().getDebugger();
  return debugger.getThreadForIdentifierAddress(threadIdAddr, uniqueThreadIdAddr);
}