sun.jvm.hotspot.debugger.UnmappedAddressException Java Examples

The following examples show how to use sun.jvm.hotspot.debugger.UnmappedAddressException. 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: LinuxDebuggerLocal.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/** Need to override this to relax alignment checks on x86. */
public long readCInteger(long address, long numBytes, boolean isUnsigned)
    throws UnmappedAddressException, UnalignedAddressException {
    // Only slightly relaxed semantics -- this is a hack, but is
    // necessary on x86 where it seems the compiler is
    // putting some global 64-bit data on 32-bit boundaries
    if (numBytes == 8) {
        utils.checkAlignment(address, 4);
    } else {
        utils.checkAlignment(address, numBytes);
    }
    byte[] data = readBytes(address, numBytes);
    return utils.dataToCInteger(data, isUnsigned);
}
 
Example #2
Source File: LinuxDebuggerLocal.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/** From the LinuxDebugger interface */
public LinuxOopHandle readOopHandle(long address)
        throws UnmappedAddressException, UnalignedAddressException,
            NotInHeapException {
    long value = readAddressValue(address);
    return (value == 0 ? null : new LinuxOopHandle(this, value));
}
 
Example #3
Source File: LinuxDebuggerLocal.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/** From the LinuxDebugger interface */
public LinuxOopHandle readOopHandle(long address)
        throws UnmappedAddressException, UnalignedAddressException,
            NotInHeapException {
    long value = readAddressValue(address);
    return (value == 0 ? null : new LinuxOopHandle(this, value));
}
 
Example #4
Source File: LinuxDebuggerLocal.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/** From the LinuxDebugger interface */
public LinuxOopHandle readOopHandle(long address)
        throws UnmappedAddressException, UnalignedAddressException,
            NotInHeapException {
    long value = readAddressValue(address);
    return (value == 0 ? null : new LinuxOopHandle(this, value));
}
 
Example #5
Source File: BsdDebuggerLocal.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/** From the BsdDebugger interface */
public BsdOopHandle readOopHandle(long address)
        throws UnmappedAddressException, UnalignedAddressException,
            NotInHeapException {
    long value = readAddressValue(address);
    return (value == 0 ? null : new BsdOopHandle(this, value));
}
 
Example #6
Source File: LinuxDebuggerLocal.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/** Need to override this to relax alignment checks on x86. */
public long readCInteger(long address, long numBytes, boolean isUnsigned)
    throws UnmappedAddressException, UnalignedAddressException {
    // Only slightly relaxed semantics -- this is a hack, but is
    // necessary on x86 where it seems the compiler is
    // putting some global 64-bit data on 32-bit boundaries
    if (numBytes == 8) {
        utils.checkAlignment(address, 4);
    } else {
        utils.checkAlignment(address, numBytes);
    }
    byte[] data = readBytes(address, numBytes);
    return utils.dataToCInteger(data, isUnsigned);
}
 
Example #7
Source File: BsdDebuggerLocal.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/** From the BsdDebugger interface */
public BsdOopHandle readOopHandle(long address)
        throws UnmappedAddressException, UnalignedAddressException,
            NotInHeapException {
    long value = readAddressValue(address);
    return (value == 0 ? null : new BsdOopHandle(this, value));
}
 
Example #8
Source File: LinuxDebuggerLocal.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/** Need to override this to relax alignment checks on x86. */
public long readCInteger(long address, long numBytes, boolean isUnsigned)
    throws UnmappedAddressException, UnalignedAddressException {
    // Only slightly relaxed semantics -- this is a hack, but is
    // necessary on x86 where it seems the compiler is
    // putting some global 64-bit data on 32-bit boundaries
    if (numBytes == 8) {
        utils.checkAlignment(address, 4);
    } else {
        utils.checkAlignment(address, numBytes);
    }
    byte[] data = readBytes(address, numBytes);
    return utils.dataToCInteger(data, isUnsigned);
}
 
Example #9
Source File: BsdDebuggerLocal.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/** Need to override this to relax alignment checks on x86. */
public long readCInteger(long address, long numBytes, boolean isUnsigned)
    throws UnmappedAddressException, UnalignedAddressException {
    // Only slightly relaxed semantics -- this is a hack, but is
    // necessary on x86 where it seems the compiler is
    // putting some global 64-bit data on 32-bit boundaries
    if (numBytes == 8) {
        utils.checkAlignment(address, 4);
    } else {
        utils.checkAlignment(address, numBytes);
    }
    byte[] data = readBytes(address, numBytes);
    return utils.dataToCInteger(data, isUnsigned);
}
 
Example #10
Source File: LinuxDebuggerLocal.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/** Need to override this to relax alignment checks on x86. */
public long readCInteger(long address, long numBytes, boolean isUnsigned)
    throws UnmappedAddressException, UnalignedAddressException {
    // Only slightly relaxed semantics -- this is a hack, but is
    // necessary on x86 where it seems the compiler is
    // putting some global 64-bit data on 32-bit boundaries
    if (numBytes == 8) {
        utils.checkAlignment(address, 4);
    } else {
        utils.checkAlignment(address, numBytes);
    }
    byte[] data = readBytes(address, numBytes);
    return utils.dataToCInteger(data, isUnsigned);
}
 
Example #11
Source File: BsdDebuggerLocal.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/** From the BsdDebugger interface */
public BsdOopHandle readOopHandle(long address)
        throws UnmappedAddressException, UnalignedAddressException,
            NotInHeapException {
    long value = readAddressValue(address);
    return (value == 0 ? null : new BsdOopHandle(this, value));
}
 
Example #12
Source File: BsdDebuggerLocal.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/** Need to override this to relax alignment checks on x86. */
public long readCInteger(long address, long numBytes, boolean isUnsigned)
    throws UnmappedAddressException, UnalignedAddressException {
    // Only slightly relaxed semantics -- this is a hack, but is
    // necessary on x86 where it seems the compiler is
    // putting some global 64-bit data on 32-bit boundaries
    if (numBytes == 8) {
        utils.checkAlignment(address, 4);
    } else {
        utils.checkAlignment(address, numBytes);
    }
    byte[] data = readBytes(address, numBytes);
    return utils.dataToCInteger(data, isUnsigned);
}
 
Example #13
Source File: LinuxDebuggerLocal.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/** From the LinuxDebugger interface */
public LinuxOopHandle readOopHandle(long address)
        throws UnmappedAddressException, UnalignedAddressException,
            NotInHeapException {
    long value = readAddressValue(address);
    return (value == 0 ? null : new LinuxOopHandle(this, value));
}
 
Example #14
Source File: LinuxDebuggerLocal.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/** From the LinuxDebugger interface */
public LinuxOopHandle readOopHandle(long address)
        throws UnmappedAddressException, UnalignedAddressException,
            NotInHeapException {
    long value = readAddressValue(address);
    return (value == 0 ? null : new LinuxOopHandle(this, value));
}
 
Example #15
Source File: LinuxDebuggerLocal.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/** Need to override this to relax alignment checks on x86. */
public long readCInteger(long address, long numBytes, boolean isUnsigned)
    throws UnmappedAddressException, UnalignedAddressException {
    // Only slightly relaxed semantics -- this is a hack, but is
    // necessary on x86 where it seems the compiler is
    // putting some global 64-bit data on 32-bit boundaries
    if (numBytes == 8) {
        utils.checkAlignment(address, 4);
    } else {
        utils.checkAlignment(address, numBytes);
    }
    byte[] data = readBytes(address, numBytes);
    return utils.dataToCInteger(data, isUnsigned);
}
 
Example #16
Source File: BsdDebuggerLocal.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/** Need to override this to relax alignment checks on x86. */
public long readCInteger(long address, long numBytes, boolean isUnsigned)
    throws UnmappedAddressException, UnalignedAddressException {
    // Only slightly relaxed semantics -- this is a hack, but is
    // necessary on x86 where it seems the compiler is
    // putting some global 64-bit data on 32-bit boundaries
    if (numBytes == 8) {
        utils.checkAlignment(address, 4);
    } else {
        utils.checkAlignment(address, numBytes);
    }
    byte[] data = readBytes(address, numBytes);
    return utils.dataToCInteger(data, isUnsigned);
}
 
Example #17
Source File: BsdDebuggerLocal.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/** From the BsdDebugger interface */
public BsdOopHandle readOopHandle(long address)
        throws UnmappedAddressException, UnalignedAddressException,
            NotInHeapException {
    long value = readAddressValue(address);
    return (value == 0 ? null : new BsdOopHandle(this, value));
}
 
Example #18
Source File: BsdDebuggerLocal.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/** From the BsdDebugger interface */
public BsdOopHandle readOopHandle(long address)
        throws UnmappedAddressException, UnalignedAddressException,
            NotInHeapException {
    long value = readAddressValue(address);
    return (value == 0 ? null : new BsdOopHandle(this, value));
}
 
Example #19
Source File: BsdDebuggerLocal.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/** Need to override this to relax alignment checks on x86. */
public long readCInteger(long address, long numBytes, boolean isUnsigned)
    throws UnmappedAddressException, UnalignedAddressException {
    // Only slightly relaxed semantics -- this is a hack, but is
    // necessary on x86 where it seems the compiler is
    // putting some global 64-bit data on 32-bit boundaries
    if (numBytes == 8) {
        utils.checkAlignment(address, 4);
    } else {
        utils.checkAlignment(address, numBytes);
    }
    byte[] data = readBytes(address, numBytes);
    return utils.dataToCInteger(data, isUnsigned);
}
 
Example #20
Source File: BsdDebuggerLocal.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/** Need to override this to relax alignment checks on x86. */
public long readCInteger(long address, long numBytes, boolean isUnsigned)
    throws UnmappedAddressException, UnalignedAddressException {
    // Only slightly relaxed semantics -- this is a hack, but is
    // necessary on x86 where it seems the compiler is
    // putting some global 64-bit data on 32-bit boundaries
    if (numBytes == 8) {
        utils.checkAlignment(address, 4);
    } else {
        utils.checkAlignment(address, numBytes);
    }
    byte[] data = readBytes(address, numBytes);
    return utils.dataToCInteger(data, isUnsigned);
}
 
Example #21
Source File: LinuxDebuggerLocal.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
/** From the LinuxDebugger interface */
public LinuxAddress readAddress(long address)
        throws UnmappedAddressException, UnalignedAddressException {
    long value = readAddressValue(address);
    return (value == 0 ? null : new LinuxAddress(this, value));
}
 
Example #22
Source File: LinuxDebuggerLocal.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public void writeBytesToProcess(long address, long numBytes, byte[] data)
    throws UnmappedAddressException, DebuggerException {
    // FIXME
    throw new DebuggerException("Unimplemented");
}
 
Example #23
Source File: BsdDebuggerLocal.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public BsdOopHandle readCompOopHandle(long address)
        throws UnmappedAddressException, UnalignedAddressException,
            NotInHeapException {
    long value = readCompOopAddressValue(address);
    return (value == 0 ? null : new BsdOopHandle(this, value));
}
 
Example #24
Source File: LinuxDebuggerLocal.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public LinuxAddress readCompOopAddress(long address)
        throws UnmappedAddressException, UnalignedAddressException {
    long value = readCompOopAddressValue(address);
    return (value == 0 ? null : new LinuxAddress(this, value));
}
 
Example #25
Source File: LinuxDebuggerLocal.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public void writeBytesToProcess(long address, long numBytes, byte[] data)
    throws UnmappedAddressException, DebuggerException {
    // FIXME
    throw new DebuggerException("Unimplemented");
}
 
Example #26
Source File: BsdDebuggerLocal.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public long readJLong(long address)
    throws UnmappedAddressException, UnalignedAddressException {
    utils.checkAlignment(address, jintSize);
    byte[] data = readBytes(address, jlongSize);
    return utils.dataToJLong(data, jlongSize);
}
 
Example #27
Source File: BsdDebuggerLocal.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public BsdAddress readCompOopAddress(long address)
        throws UnmappedAddressException, UnalignedAddressException {
    long value = readCompOopAddressValue(address);
    return (value == 0 ? null : new BsdAddress(this, value));
}
 
Example #28
Source File: BsdDebuggerLocal.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public BsdAddress readCompKlassAddress(long address)
        throws UnmappedAddressException, UnalignedAddressException {
    long value = readCompKlassAddressValue(address);
    return (value == 0 ? null : new BsdAddress(this, value));
}
 
Example #29
Source File: BsdDebuggerLocal.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
/** From the BsdDebugger interface */
public BsdAddress readAddress(long address)
        throws UnmappedAddressException, UnalignedAddressException {
    long value = readAddressValue(address);
    return (value == 0 ? null : new BsdAddress(this, value));
}
 
Example #30
Source File: BsdDebuggerLocal.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public void writeBytesToProcess(long address, long numBytes, byte[] data)
    throws UnmappedAddressException, DebuggerException {
    // FIXME
    throw new DebuggerException("Unimplemented");
}