diff agent/src/share/classes/sun/jvm/hotspot/HotSpotAgent.java @ 6073:78d2ae5ab35b

7163117: Agent can't connect to process on Mac OSX Reviewed-by: dholmes, coleenp, sla, minqi, kvn
author nloodin
date Wed, 09 May 2012 16:24:07 +0200
parents f08d439fab8c
children a9fed06c01d2
line wrap: on
line diff
--- a/agent/src/share/classes/sun/jvm/hotspot/HotSpotAgent.java	Wed May 09 04:32:34 2012 -0400
+++ b/agent/src/share/classes/sun/jvm/hotspot/HotSpotAgent.java	Wed May 09 16:24:07 2012 +0200
@@ -572,10 +572,10 @@
 
         if (cpu.equals("x86")) {
             machDesc = new MachineDescriptionIntelX86();
-        } else if (cpu.equals("amd64")) {
+        } else if (cpu.equals("amd64") || cpu.equals("x86_64")) {
             machDesc = new MachineDescriptionAMD64();
         } else {
-            throw new DebuggerException("BSD only supported on x86/amd64");
+            throw new DebuggerException("BSD only supported on x86/x86_64. Current arch: " + cpu);
         }
 
         BsdDebuggerLocal dbg = new BsdDebuggerLocal(machDesc, !isServer);