* src/native/native.c (native_resolve_function): fix/add to my last
authormotse <none@none>
Wed, 14 Jun 2006 18:55:35 +0000 (18:55 +0000)
committermotse <none@none>
Wed, 14 Jun 2006 18:55:35 +0000 (18:55 +0000)
incomplete commit.

src/native/native.c

index 97391cda697281fdfe6a8f60368c4af1d243042e..79693c849c3cd9f3522e614ab836ba8f39c2b5f9 100644 (file)
@@ -30,7 +30,7 @@
 
    Changes: Christian Thalinger
 
-   $Id: native.c 5031 2006-06-14 18:36:22Z motse $
+   $Id: native.c 5032 2006-06-14 18:55:35Z motse $
 
 */
 
 #include "vm/jit/asmpart.h"
 #include "vm/jit/jit.h"
 
+#if defined(ENABLE_JVMTI)
+#include "native/jvmti/cacaodbg.h"
+#endif
+
 
 /* include table of native functions ******************************************/
 
@@ -792,7 +796,7 @@ functionptr native_resolve_function(methodinfo *m)
 
 #if defined(ENABLE_JVMTI)
        /* fire Native Method Bind event */
-       jvmti_NativeMethodBind(m, sym, &sym);
+       if (jvmti) jvmti_NativeMethodBind(m, sym, &sym);
 #endif
 
        /* no symbol found? throw exception */