[vmkit-commits] [vmkit] r183519 - add a new method in the classloader to return the error message in case of loader error
Sylvestre Ledru
sylvestre at debian.org
Fri Jun 7 07:04:57 PDT 2013
Author: sylvestre
Date: Fri Jun 7 09:04:00 2013
New Revision: 183519
URL: http://llvm.org/viewvc/llvm-project?rev=183519&view=rev
Log:
add a new method in the classloader to return the error message in case of loader error
Modified:
vmkit/trunk/lib/j3/VMCore/JnjvmClassLoader.cpp
vmkit/trunk/lib/j3/VMCore/JnjvmClassLoader.h
Modified: vmkit/trunk/lib/j3/VMCore/JnjvmClassLoader.cpp
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/j3/VMCore/JnjvmClassLoader.cpp?rev=183519&r1=183518&r2=183519&view=diff
==============================================================================
--- vmkit/trunk/lib/j3/VMCore/JnjvmClassLoader.cpp (original)
+++ vmkit/trunk/lib/j3/VMCore/JnjvmClassLoader.cpp Fri Jun 7 09:04:00 2013
@@ -1058,6 +1058,10 @@ void* JnjvmClassLoader::loadLib(const ch
return handle;
}
+char* JnjvmClassLoader::getErrorMessage() {
+ return dlerror();
+}
+
word_t JnjvmClassLoader::loadInLib(const char* name, void* handle) {
return (word_t)TheCompiler->loadMethod(handle, name);
}
Modified: vmkit/trunk/lib/j3/VMCore/JnjvmClassLoader.h
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/j3/VMCore/JnjvmClassLoader.h?rev=183519&r1=183518&r2=183519&view=diff
==============================================================================
--- vmkit/trunk/lib/j3/VMCore/JnjvmClassLoader.h (original)
+++ vmkit/trunk/lib/j3/VMCore/JnjvmClassLoader.h Fri Jun 7 09:04:00 2013
@@ -309,6 +309,10 @@ public:
///
void* loadLib(const char* buf);
+ /// getErrorMessage - Returns the error message in case of failure
+ ///
+ char* getErrorMessage();
+
/// nativeLookup - Lookup in the class loader a function pointer for the
/// method. Also set in the j3 parameter is the function is defined in
/// JnJVM.
More information about the vmkit-commits
mailing list