diff options
author | Joachim Lingner <jl@openoffice.org> | 2002-09-06 06:28:57 +0000 |
---|---|---|
committer | Joachim Lingner <jl@openoffice.org> | 2002-09-06 06:28:57 +0000 |
commit | c4d5afe77aa46b471b7e9aed1cf9f07d683c88da (patch) | |
tree | a05e49148cea57eeeebacfb8e163bb6df8c0246e /stoc | |
parent | 22e9379f1752aa6b66103483f3d144a9bafa87e3 (diff) |
#102887# debugging of java components on linux
Diffstat (limited to 'stoc')
-rw-r--r-- | stoc/source/javavm/javavm.cxx | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/stoc/source/javavm/javavm.cxx b/stoc/source/javavm/javavm.cxx index 26a600a9e52b..7184a7dd6c01 100644 --- a/stoc/source/javavm/javavm.cxx +++ b/stoc/source/javavm/javavm.cxx @@ -2,9 +2,9 @@ * * $RCSfile: javavm.cxx,v $ * - * $Revision: 1.40 $ + * $Revision: 1.41 $ * - * last change: $Author: jbu $ $Date: 2002-08-13 16:12:55 $ + * last change: $Author: jl $ $Date: 2002-09-06 07:28:57 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1446,8 +1446,14 @@ JavaVirtualMachine_Impl::~JavaVirtualMachine_Impl() throw() JavaVM * JavaVirtualMachine_Impl::createJavaVM(const JVM & jvm) throw(RuntimeException) { JavaVM * pJavaVM; - + // On linux we load jvm with RTLD_GLOBAL. This is necessary for debugging, because + // libjdwp.so need a symbol (fork1) from libjvm which it only gets if the jvm is loaded + // witd RTLD_GLOBAL. On Solaris libjdwp.so is correctly linked with libjvm.so +#ifdef LINUX + if(!_javaLib.load(jvm.getRuntimeLib(), SAL_LOADMODULE_GLOBAL | SAL_LOADMODULE_NOW)) +#else if(!_javaLib.load(jvm.getRuntimeLib())) +#endif { //Java installation was deleted or moved OUString libURL; |