breakgen for 64-bit
authorDmitry Jemerov <yole@jetbrains.com>
Wed, 25 Nov 2009 15:39:02 +0000 (18:39 +0300)
committerDmitry Jemerov <yole@jetbrains.com>
Wed, 25 Nov 2009 15:39:02 +0000 (18:39 +0300)
bin/win/breakgen64.dll [new file with mode: 0644]
java/java-runtime/src/com/intellij/rt/execution/application/AppMain.java
native/breakgen/AppMain.c

diff --git a/bin/win/breakgen64.dll b/bin/win/breakgen64.dll
new file mode 100644 (file)
index 0000000..828b6f7
Binary files /dev/null and b/bin/win/breakgen64.dll differ
index 912afc938181b0ea4a1aa385cccb84ae871ba54c..8b4232e32f6a184155b76350e12fdb682ead1cc1 100644 (file)
@@ -39,7 +39,12 @@ public class AppMain {
     final String osName = System.getProperty("os.name").toLowerCase();
     String libPath = null;
     if (osName.startsWith("windows")) {
-      libPath = binPath + "breakgen.dll";
+      if (System.getProperty("os.arch").equals("amd64")) {
+        libPath = binPath + "breakgen64.dll";
+      }
+      else {
+        libPath = binPath + "breakgen.dll";
+      }
     } else if (osName.startsWith("linux")) {
       if (System.getProperty("os.name").toLowerCase().equals("amd64")) {
         libPath = binPath + "libbreakgen64.so";
index 4b33f16fa89c314e8a7ef1fb10fe00b8c7c602e0..15b2831ab36674385ddb5d43f8f9f3f4b56c451b 100644 (file)
  * limitations under the License.
  */
 
+#include <jni.h>
 #if defined(WIN32)
 #include <windows.h>
 #else
-#include <jni.h>
 #include <signal.h>
 #include <unistd.h>
 #include <stdlib.h>