/*
* 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. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* 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 "util.h"
#include "VirtualMachineImpl.h"
#include "commonRef.h"
#include "inStream.h"
#include "outStream.h"
#include "eventHandler.h"
#include "eventHelper.h"
#include "threadControl.h"
#include "SDE.h"
#include "FrameID.h"
static jboolean
{
char *vmName;
char *vmVersion;
char *vmInfo;
return JNI_TRUE;
}
vmVersion = "<unknown>";
}
vmName = "<unknown>";
}
vmInfo = "<unknown>";
}
/*
* Write the descriptive version information
*/
"%s version %d.%d\nJVM Debug Interface version %d.%d\n"
"JVM version %s (%s, %s)",
/*
* Write the JDWP version numbers
*/
/*
* Write the VM version and name
*/
return JNI_TRUE;
}
static jboolean
{
char *signature;
return JNI_TRUE;
}
return JNI_TRUE;
}
if (inStream_error(in)) {
return JNI_TRUE;
}
if ( error == JVMTI_ERROR_NONE ) {
/* Count classes in theClasses which match signature */
int matchCount = 0;
/* Count classes written to the JDWP connection */
int writtenCount = 0;
int i;
for (i=0; i<classCount; i++) {
/* We want prepared classes, primitives, and arrays only */
continue;
}
if (error != JVMTI_ERROR_NONE) {
break;
}
/* Float interesting classes (those that
* are matching and are prepared) to the
* beginning of the array.
*/
}
}
/* At this point matching prepared classes occupy
* indicies 0 thru matchCount-1 of theClasses.
*/
if ( error == JVMTI_ERROR_NONE ) {
/* No point in continuing if there's an error */
if (outStream_error(out)) {
break;
}
}
}
}
if ( error != JVMTI_ERROR_NONE ) {
}
return JNI_TRUE;
}
static jboolean
{
return JNI_TRUE;
}
if ( error != JVMTI_ERROR_NONE ) {
} else {
/* Count classes in theClasses which are prepared */
int prepCount = 0;
/* Count classes written to the JDWP connection */
int writtenCount = 0;
int i;
for (i=0; i<classCount; i++) {
/* We want prepared classes and arrays only */
/* Float interesting classes (those that
* are prepared) to the beginning of the array.
*/
}
}
/* At this point prepared classes occupy
* indicies 0 thru prepCount-1 of theClasses.
*/
if (error != JVMTI_ERROR_NONE) {
break;
}
if (outputGenerics == 1) {
}
if (genericSignature != NULL) {
}
/* No point in continuing if there's an error */
if (outStream_error(out)) {
break;
}
}
}
return JNI_TRUE;
}
static jboolean
{
}
static jboolean
{
}
/***********************************************************/
static jboolean
{
int ii;
return JNI_TRUE;
}
if (inStream_error(in)) {
return JNI_TRUE;
}
if (classCount == 0) {
(void)outStream_writeInt(out, 0);
return JNI_TRUE;
}
if (classCount < 0) {
return JNI_TRUE;
}
/*
* if we get an error, just ignore it and keep
* going. An instanceCount of 0 will be returned.
*/
continue;
}
return JNI_TRUE;
}
}
/* Iterate over heap getting info on these classes */
if (error != JVMTI_ERROR_NONE) {
} else {
}
}
return JNI_TRUE;
}
static jboolean
{
jint i;
/* quietly ignore */
return JNI_TRUE;
}
if (inStream_error(in)) {
return JNI_TRUE;
}
if ( classCount == 0 ) {
return JNI_TRUE;
}
/*LINTED*/
return JNI_TRUE;
}
/*LINTED*/
for (i = 0; i < classCount; ++i) {
int byteCount;
unsigned char * bytes;
if (inStream_error(in)) {
break;
}
if (inStream_error(in)) {
break;
}
if ( byteCount <= 0 ) {
break;
}
break;
}
if (inStream_error(in)) {
break;
}
}
if (error != JVMTI_ERROR_NONE) {
} else {
/* zap our BP info */
for ( i = 0 ; i < classCount; i++ ) {
}
}
}
/* free up allocated memory */
for ( i = 0 ; i < classCount; i++ ) {
}
}
return JNI_TRUE;
}
static jboolean
{
char *stratumId;
/* quietly ignore */
return JNI_TRUE;
}
if (inStream_error(in)) {
return JNI_TRUE;
}
return JNI_TRUE;
}
static jboolean
{
return JNI_TRUE;
}
int i;
if (theThreads == NULL) {
} else {
/* Squish out all of the debugger-spawned threads */
for (i = 0; i <threadCount; i++) {
}
}
return JNI_TRUE;
}
static jboolean
{
return JNI_TRUE;
}
if (error != JVMTI_ERROR_NONE) {
} else {
int i;
for (i = 0; i < groupCount; i++) {
}
}
return JNI_TRUE;
}
static jboolean
{
return JNI_TRUE;
}
static jboolean
{
return JNI_TRUE;
}
static jboolean
{
return JNI_TRUE;
}
if (error != JVMTI_ERROR_NONE) {
}
return JNI_TRUE;
}
static jboolean
{
return JNI_TRUE;
}
if (error != JVMTI_ERROR_NONE) {
}
return JNI_TRUE;
}
static jboolean
{
/* quietly ignore */
return JNI_FALSE;
}
/* We send the reply from here because we are about to exit. */
if (inStream_error(in)) {
}
/* Shouldn't get here */
/* Shut up the compiler */
return JNI_FALSE;
}
static jboolean
{
char *cstring;
return JNI_TRUE;
}
return JNI_TRUE;
}
if (inStream_error(in)) {
return JNI_TRUE;
}
} else {
}
return JNI_TRUE;
}
static jboolean
{
return JNI_TRUE;
}
if (error != JVMTI_ERROR_NONE) {
return JNI_TRUE;
}
return JNI_TRUE;
}
static jboolean
{
return JNI_TRUE;
}
if (error != JVMTI_ERROR_NONE) {
return JNI_TRUE;
}
/* new since JDWP version 1.4 */
/* 11: canPopFrames */
/* 12: canUseInstanceFilters */
/* 13: canGetSourceDebugExtension */
/* 14: canRequestVMDeathEvent */
/* 15: canSetDefaultStratum */
/* 16: canGetInstanceInfo */
/* 17: canRequestMonitorEvents */
/* 18: canGetMonitorFrameInfo */
/* remaining reserved */
/* 20 Can get constant pool information */
/* 21 Can force early return */
return JNI_TRUE;
}
static int
char *ps;
ps = ";";
}
++cnt;
++pos;
}
return cnt;
}
static void
char *pos;
char *ps;
char *buf;
int npaths;
int i;
ps = ";";
}
for ( i = 0 ; i < npaths ; i++ ) {
char *psPos;
int plen;
} else {
psPos++;
}
}
}
static jboolean
{
char *ud;
char *bp;
char *cp;
ud = "";
}
cp = "";
}
bp = "";
}
return JNI_TRUE;
}
static jboolean
{
int i;
int refCount;
int requestCount;
/* quietly ignore */
return JNI_TRUE;
}
if (inStream_error(in)) {
return JNI_TRUE;
}
for (i = 0; i < requestCount; i++) {
if (inStream_error(in)) {
return JNI_TRUE;
}
}
return JNI_TRUE;
}
static jboolean
{
return JNI_TRUE;
}
static jboolean
{
return JNI_TRUE;
}
,(void *)version
,(void *)classesForSignature
,(void *)allClasses
,(void *)getAllThreads
,(void *)topLevelThreadGroups
,(void *)dispose
,(void *)idSizes
,(void *)suspend
,(void *)resume
,(void *)doExit
,(void *)createString
,(void *)capabilities
,(void *)classPaths
,(void *)disposeObjects
,(void *)holdEvents
,(void *)releaseEvents
,(void *)capabilitiesNew
,(void *)redefineClasses
,(void *)setDefaultStratum
,(void *)allClassesWithGeneric
,(void *)instanceCounts
};