Mercurial > hg > graal-compiler
comparison agent/src/share/classes/sun/jvm/hotspot/debugger/bsd/BsdThreadContextFactory.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 | b9a9ed0f8eeb |
comparison
equal
deleted
inserted
replaced
6072:d506b2cf2ad0 | 6073:78d2ae5ab35b |
---|---|
31 class BsdThreadContextFactory { | 31 class BsdThreadContextFactory { |
32 static ThreadContext createThreadContext(BsdDebugger dbg) { | 32 static ThreadContext createThreadContext(BsdDebugger dbg) { |
33 String cpu = dbg.getCPU(); | 33 String cpu = dbg.getCPU(); |
34 if (cpu.equals("x86")) { | 34 if (cpu.equals("x86")) { |
35 return new BsdX86ThreadContext(dbg); | 35 return new BsdX86ThreadContext(dbg); |
36 } else if (cpu.equals("amd64")) { | 36 } else if (cpu.equals("amd64") || cpu.equals("x86_64")) { |
37 return new BsdAMD64ThreadContext(dbg); | 37 return new BsdAMD64ThreadContext(dbg); |
38 } else { | 38 } else { |
39 throw new RuntimeException("cpu " + cpu + " is not yet supported"); | 39 throw new RuntimeException("cpu " + cpu + " is not yet supported"); |
40 } | 40 } |
41 } | 41 } |