/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
#include <jni.h>
#include "libproc.h"
#endif
#ifdef i386
#endif
#ifdef amd64
#endif
#endif
#define THROW_NEW_DEBUGGER_EXCEPTION_(str, value) { throw_new_debugger_exception(env, str); return value; }
(*env)->ThrowNew(env, (*env)->FindClass(env, "sun/jvm/hotspot/debugger/DebuggerException"), errMsg);
}
}
/*
* Class: sun_jvm_hotspot_debugger_linux_LinuxDebuggerLocal
* Method: init0
* Signature: ()V
*/
THROW_NEW_DEBUGGER_EXCEPTION("can't initialize libproc");
}
// fields we use
// methods we use
"(J)Lsun/jvm/hotspot/debugger/ThreadProxy;");
// java.util.List method we call
}
{
#ifdef _LP64
return 8;
#else
return 4;
#endif
}
int n = 0, i = 0;
// add threads
n = get_num_threads(ph);
for (i = 0; i < n; i++) {
}
// add load objects
n = get_num_libs(ph);
for (i = 0; i < n; i++) {
const char* name;
}
}
/*
* Class: sun_jvm_hotspot_debugger_linux_LinuxDebuggerLocal
* Method: attach0
* Signature: (I)V
*/
THROW_NEW_DEBUGGER_EXCEPTION("Can't attach to the process");
}
}
/*
* Class: sun_jvm_hotspot_debugger_linux_LinuxDebuggerLocal
* Method: attach0
*/
JNIEXPORT void JNICALL Java_sun_jvm_hotspot_debugger_linux_LinuxDebuggerLocal_attach0__Ljava_lang_String_2Ljava_lang_String_2
const char *execName_cstr;
const char *coreName_cstr;
THROW_NEW_DEBUGGER_EXCEPTION("Can't attach to the core file");
}
}
/*
* Class: sun_jvm_hotspot_debugger_linux_LinuxDebuggerLocal
* Method: detach0
* Signature: ()V
*/
}
}
/*
* Class: sun_jvm_hotspot_debugger_linux_LinuxDebuggerLocal
* Method: lookupByName0
*/
if (objectName != NULL) {
CHECK_EXCEPTION_(0);
}
CHECK_EXCEPTION_(0);
if (objectName_cstr != NULL) {
}
return addr;
}
/*
* Class: sun_jvm_hotspot_debugger_linux_LinuxDebuggerLocal
* Method: lookupByAddress0
*/
}
/*
* Class: sun_jvm_hotspot_debugger_linux_LinuxDebuggerLocal
* Method: readBytesFromProcess0
* Signature: (JJ)Lsun/jvm/hotspot/debugger/ReadResult;
*/
JNIEXPORT jbyteArray JNICALL Java_sun_jvm_hotspot_debugger_linux_LinuxDebuggerLocal_readBytesFromProcess0
CHECK_EXCEPTION_(0);
CHECK_EXCEPTION_(0);
}
JNIEXPORT jlongArray JNICALL Java_sun_jvm_hotspot_debugger_linux_LinuxDebuggerLocal_getThreadIntegerRegisterSet0
int i;
THROW_NEW_DEBUGGER_EXCEPTION_("get_thread_regs failed for a lwp", 0);
}
#ifdef i386
#endif
#ifdef ia64
#endif
#ifdef amd64
#endif
#endif
CHECK_EXCEPTION_(0);
#ifdef i386
#endif /* i386 */
#if ia64
for (i = 0; i < NPRGREG; i++ ) {
regs[i] = 0xDEADDEAD;
}
#endif /* ia64 */
#ifdef amd64
#endif /* amd64 */
#ifdef _LP64
#else
#endif
#endif /* sparc */
return array;
}
#endif