agent/src/os/linux/LinuxDebuggerLocal.c

changeset 4028
a9fed06c01d2
parent 1907
c18cbe5936b8
child 4535
9fae07c31641
     1.1 --- a/agent/src/os/linux/LinuxDebuggerLocal.c	Fri Aug 17 16:47:04 2012 -0700
     1.2 +++ b/agent/src/os/linux/LinuxDebuggerLocal.c	Thu Aug 30 11:20:01 2012 -0400
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2002, 2007, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -55,11 +55,11 @@
    1.11  #define THROW_NEW_DEBUGGER_EXCEPTION_(str, value) { throw_new_debugger_exception(env, str); return value; }
    1.12  #define THROW_NEW_DEBUGGER_EXCEPTION(str) { throw_new_debugger_exception(env, str); return;}
    1.13  
    1.14 -static void throw_new_debugger_exception(JNIEnv* env, const char* errMsg) {
    1.15 +void throw_new_debugger_exception(JNIEnv* env, const char* errMsg) {
    1.16    (*env)->ThrowNew(env, (*env)->FindClass(env, "sun/jvm/hotspot/debugger/DebuggerException"), errMsg);
    1.17  }
    1.18  
    1.19 -static struct ps_prochandle* get_proc_handle(JNIEnv* env, jobject this_obj) {
    1.20 +struct ps_prochandle* get_proc_handle(JNIEnv* env, jobject this_obj) {
    1.21    jlong ptr = (*env)->GetLongField(env, this_obj, p_ps_prochandle_ID);
    1.22    return (struct ps_prochandle*)(intptr_t)ptr;
    1.23  }
    1.24 @@ -280,6 +280,7 @@
    1.25    return (err == PS_OK)? array : 0;
    1.26  }
    1.27  
    1.28 +#if defined(i386) || defined(ia64) || defined(amd64) || defined(sparc) || defined(sparcv9)
    1.29  JNIEXPORT jlongArray JNICALL Java_sun_jvm_hotspot_debugger_linux_LinuxDebuggerLocal_getThreadIntegerRegisterSet0
    1.30    (JNIEnv *env, jobject this_obj, jint lwp_id) {
    1.31  
    1.32 @@ -410,3 +411,4 @@
    1.33    (*env)->ReleaseLongArrayElements(env, array, regs, JNI_COMMIT);
    1.34    return array;
    1.35  }
    1.36 +#endif

mercurial