< prev index next >
src/share/vm/prims/jvmtiExport.cpp
Print this page
*** 2380,2389 ****
--- 2380,2390 ----
if (on_attach_entry == NULL) {
// Agent_OnAttach missing - unload library
if (!agent_lib->is_static_lib()) {
os::dll_unload(library);
}
+ st->print_cr("Could not find entry point in %s\n", agent_lib->name());
delete agent_lib;
} else {
// Invoke the Agent_OnAttach function
JavaThread* THREAD = JavaThread::current();
{
*** 2410,2419 ****
--- 2411,2425 ----
// Agent_OnAttach executed so completion status is JNI_OK
st->print_cr("%d", result);
result = JNI_OK;
}
}
+
+ if ((result != JNI_OK) && (*ebuf != '0')) {
+ st->print_cr("%s\n", ebuf);
+ }
+
return result;
}
#endif // INCLUDE_SERVICES
////////////////////////////////////////////////////////////////////////////////////////////////
< prev index next >