src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/debugger/linux/LinuxThreadContextFactory.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2002, 2017, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
25 package sun.jvm.hotspot.debugger.linux; |
25 package sun.jvm.hotspot.debugger.linux; |
26 |
26 |
27 import java.lang.reflect.*; |
27 import java.lang.reflect.*; |
28 import sun.jvm.hotspot.debugger.*; |
28 import sun.jvm.hotspot.debugger.*; |
29 import sun.jvm.hotspot.debugger.linux.amd64.*; |
29 import sun.jvm.hotspot.debugger.linux.amd64.*; |
30 import sun.jvm.hotspot.debugger.linux.ia64.*; |
|
31 import sun.jvm.hotspot.debugger.linux.x86.*; |
30 import sun.jvm.hotspot.debugger.linux.x86.*; |
32 import sun.jvm.hotspot.debugger.linux.ppc64.*; |
31 import sun.jvm.hotspot.debugger.linux.ppc64.*; |
33 import sun.jvm.hotspot.debugger.linux.sparc.*; |
32 import sun.jvm.hotspot.debugger.linux.sparc.*; |
34 |
33 |
35 class LinuxThreadContextFactory { |
34 class LinuxThreadContextFactory { |
37 String cpu = dbg.getCPU(); |
36 String cpu = dbg.getCPU(); |
38 if (cpu.equals("x86")) { |
37 if (cpu.equals("x86")) { |
39 return new LinuxX86ThreadContext(dbg); |
38 return new LinuxX86ThreadContext(dbg); |
40 } else if (cpu.equals("amd64")) { |
39 } else if (cpu.equals("amd64")) { |
41 return new LinuxAMD64ThreadContext(dbg); |
40 return new LinuxAMD64ThreadContext(dbg); |
42 } else if (cpu.equals("ia64")) { |
|
43 return new LinuxIA64ThreadContext(dbg); |
|
44 } else if (cpu.equals("sparc")) { |
41 } else if (cpu.equals("sparc")) { |
45 return new LinuxSPARCThreadContext(dbg); |
42 return new LinuxSPARCThreadContext(dbg); |
46 } else if (cpu.equals("ppc64")) { |
43 } else if (cpu.equals("ppc64")) { |
47 return new LinuxPPC64ThreadContext(dbg); |
44 return new LinuxPPC64ThreadContext(dbg); |
48 } else { |
45 } else { |