< prev index next >

src/share/vm/prims/jvmtiExport.cpp

Print this page

        

@@ -2380,10 +2380,11 @@
     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,10 +2411,15 @@
       // 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 >