src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/debugger/windbg/WindbgDebuggerLocal.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2002, 2013, 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. |
28 import java.net.*; |
28 import java.net.*; |
29 import java.util.*; |
29 import java.util.*; |
30 import sun.jvm.hotspot.debugger.*; |
30 import sun.jvm.hotspot.debugger.*; |
31 import sun.jvm.hotspot.debugger.amd64.*; |
31 import sun.jvm.hotspot.debugger.amd64.*; |
32 import sun.jvm.hotspot.debugger.x86.*; |
32 import sun.jvm.hotspot.debugger.x86.*; |
33 import sun.jvm.hotspot.debugger.ia64.*; |
|
34 import sun.jvm.hotspot.debugger.windbg.amd64.*; |
33 import sun.jvm.hotspot.debugger.windbg.amd64.*; |
35 import sun.jvm.hotspot.debugger.windbg.x86.*; |
34 import sun.jvm.hotspot.debugger.windbg.x86.*; |
36 import sun.jvm.hotspot.debugger.windbg.ia64.*; |
|
37 import sun.jvm.hotspot.debugger.win32.coff.*; |
35 import sun.jvm.hotspot.debugger.win32.coff.*; |
38 import sun.jvm.hotspot.debugger.cdbg.*; |
36 import sun.jvm.hotspot.debugger.cdbg.*; |
39 import sun.jvm.hotspot.debugger.cdbg.basic.BasicDebugEvent; |
37 import sun.jvm.hotspot.debugger.cdbg.basic.BasicDebugEvent; |
40 import sun.jvm.hotspot.utilities.*; |
38 import sun.jvm.hotspot.utilities.*; |
41 import sun.jvm.hotspot.utilities.memo.*; |
39 import sun.jvm.hotspot.utilities.memo.*; |
113 String cpu = PlatformInfo.getCPU(); |
111 String cpu = PlatformInfo.getCPU(); |
114 if (cpu.equals("x86")) { |
112 if (cpu.equals("x86")) { |
115 threadFactory = new WindbgX86ThreadFactory(this); |
113 threadFactory = new WindbgX86ThreadFactory(this); |
116 } else if (cpu.equals("amd64")) { |
114 } else if (cpu.equals("amd64")) { |
117 threadFactory = new WindbgAMD64ThreadFactory(this); |
115 threadFactory = new WindbgAMD64ThreadFactory(this); |
118 } else if (cpu.equals("ia64")) { |
|
119 threadFactory = new WindbgIA64ThreadFactory(this); |
|
120 } |
116 } |
121 |
117 |
122 if (useCache) { |
118 if (useCache) { |
123 // Cache portion of the remote process's address space. |
119 // Cache portion of the remote process's address space. |
124 // Fetching data over the socket connection to dbx is slow. |
120 // Fetching data over the socket connection to dbx is slow. |
229 return "(windbg)"; |
225 return "(windbg)"; |
230 } |
226 } |
231 |
227 |
232 public CDebugger getCDebugger() throws DebuggerException { |
228 public CDebugger getCDebugger() throws DebuggerException { |
233 if (cdbg == null) { |
229 if (cdbg == null) { |
234 // FIXME: CDebugger is not yet supported for IA64 because |
230 cdbg = new WindbgCDebugger(this); |
235 // of native stack walking issues. |
|
236 if (! getCPU().equals("ia64")) { |
|
237 cdbg = new WindbgCDebugger(this); |
|
238 } |
|
239 } |
231 } |
240 return cdbg; |
232 return cdbg; |
241 } |
233 } |
242 |
234 |
243 /** From the SymbolLookup interface via Debugger and JVMDebugger */ |
235 /** From the SymbolLookup interface via Debugger and JVMDebugger */ |