Skip to content
Permalink
Browse files

Improve/fix printf messages.

  • Loading branch information
plummercj committed Feb 24, 2020
1 parent 2f3efd5 commit 9e981cd44fd5f392a7c07dc46930d85536d77650
@@ -188,13 +188,14 @@ setOrClearBreakpoint(JNIEnv *jni, const char *methodName, jboolean set)
check_jvmti_status(jni, err, "setupBreakpoint: error in JVMTI GetMethodName call");

if (strcmp(mname, methodName) == 0) {
printf("setupBreakpoint: found method %s() to set a breakpoint\n", mname);
printf("setupBreakpoint: found method %s() to %s a breakpoint\n", mname, set ? "set" : "clear");
fflush(0);
method = meth;
}
}
if (method == NULL) {
printf("setupBreakpoint: not found method %s() to set a breakpoint\n", methodName);
printf("setupBreakpoint: not found method %s() to %s a breakpoint\n",
methodName, set ? "set" : "clear");
jni->FatalError("Error in setupBreakpoint: not found method");
}

@@ -203,7 +204,7 @@ setOrClearBreakpoint(JNIEnv *jni, const char *methodName, jboolean set)
} else {
err = jvmti->ClearBreakpoint(method, location);
}
check_jvmti_status(jni, err, "breakP: error in JVMTI SetBreakpoint");
check_jvmti_status(jni, err, "setupBreakpoint: error in JVMTI SetBreakpoint");
}

static void

0 comments on commit 9e981cd

Please sign in to comment.