Mercurial > hg > graal-jvmci-8
comparison agent/src/share/classes/sun/jvm/hotspot/debugger/proc/ProcDebuggerLocal.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 | c18cbe5936b8 |
children | a9fed06c01d2 |
comparison
equal
deleted
inserted
replaced
6072:d506b2cf2ad0 | 6073:78d2ae5ab35b |
---|---|
79 } else if (cpu.equals("x86")) { | 79 } else if (cpu.equals("x86")) { |
80 threadFactory = new ProcX86ThreadFactory(this); | 80 threadFactory = new ProcX86ThreadFactory(this); |
81 pcRegIndex = X86ThreadContext.EIP; | 81 pcRegIndex = X86ThreadContext.EIP; |
82 fpRegIndex = X86ThreadContext.EBP; | 82 fpRegIndex = X86ThreadContext.EBP; |
83 unalignedAccessesOkay = true; | 83 unalignedAccessesOkay = true; |
84 } else if (cpu.equals("amd64")) { | 84 } else if (cpu.equals("amd64") || cpu.equals("x86_64")) { |
85 threadFactory = new ProcAMD64ThreadFactory(this); | 85 threadFactory = new ProcAMD64ThreadFactory(this); |
86 pcRegIndex = AMD64ThreadContext.RIP; | 86 pcRegIndex = AMD64ThreadContext.RIP; |
87 fpRegIndex = AMD64ThreadContext.RBP; | 87 fpRegIndex = AMD64ThreadContext.RBP; |
88 } else { | 88 } else { |
89 throw new RuntimeException("Thread access for CPU architecture " + PlatformInfo.getCPU() + " not yet supported"); | 89 throw new RuntimeException("Thread access for CPU architecture " + PlatformInfo.getCPU() + " not yet supported"); |