< prev index next >

src/jdk.hotspot.agent/windows/native/libsaproc/sawindbg.cpp

Print this page
8248238: Adding Windows support to OpenJDK on AArch64

Summary: Adding Windows support for AArch64

Contributed-by: Ludovic Henry <luhenry@microsoft.com>, Monica Beckwith <monica.beckwith@microsoft.com>
Reviewed-by:


  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 // Disable CRT security warning against strcpy/strcat
  26 #pragma warning(disable: 4996)
  27 
  28 // this is source code windbg based SA debugger agent to debug
  29 // Dr. Watson dump files and process snapshots.
  30 
  31 #include "sun_jvm_hotspot_debugger_windbg_WindbgDebuggerLocal.h"
  32 
  33 #ifdef _M_IX86
  34   #include "sun_jvm_hotspot_debugger_x86_X86ThreadContext.h"
  35   #define NPRGREG sun_jvm_hotspot_debugger_x86_X86ThreadContext_NPRGREG
  36 #elif _M_AMD64
  37   #include "sun_jvm_hotspot_debugger_amd64_AMD64ThreadContext.h"
  38   #define NPRGREG sun_jvm_hotspot_debugger_amd64_AMD64ThreadContext_NPRGREG



  39 #else
  40   #error "SA windbg back-end is not supported for your cpu!"
  41 #endif
  42 
  43 #include <limits.h>
  44 #include <windows.h>
  45 
  46 #define DEBUG_NO_IMPLEMENTATION
  47 #include <dbgeng.h>
  48 #include <dbghelp.h>
  49 
  50 
  51 // Wrappers to simplify cleanup on errors.
  52 namespace {
  53 
  54 template <class T>
  55 class AutoArrayPtr {
  56   T* m_ptr;
  57 public:
  58   AutoArrayPtr(T* ptr) : m_ptr(ptr) {




  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 // Disable CRT security warning against strcpy/strcat
  26 #pragma warning(disable: 4996)
  27 
  28 // this is source code windbg based SA debugger agent to debug
  29 // Dr. Watson dump files and process snapshots.
  30 
  31 #include "sun_jvm_hotspot_debugger_windbg_WindbgDebuggerLocal.h"
  32 
  33 #ifdef _M_IX86
  34   #include "sun_jvm_hotspot_debugger_x86_X86ThreadContext.h"
  35   #define NPRGREG sun_jvm_hotspot_debugger_x86_X86ThreadContext_NPRGREG
  36 #elif _M_AMD64
  37   #include "sun_jvm_hotspot_debugger_amd64_AMD64ThreadContext.h"
  38   #define NPRGREG sun_jvm_hotspot_debugger_amd64_AMD64ThreadContext_NPRGREG
  39 #elif _M_ARM64
  40   #include "sun_jvm_hotspot_debugger_aarch64_AARCH64ThreadContext.h"
  41   #define NPRGREG sun_jvm_hotspot_debugger_aarch64_AARCH64ThreadContext_NPRGREG
  42 #else
  43   #error "SA windbg back-end is not supported for your cpu!"
  44 #endif
  45 
  46 #include <limits.h>
  47 #include <windows.h>
  48 
  49 #define DEBUG_NO_IMPLEMENTATION
  50 #include <dbgeng.h>
  51 #include <dbghelp.h>
  52 
  53 
  54 // Wrappers to simplify cleanup on errors.
  55 namespace {
  56 
  57 template <class T>
  58 class AutoArrayPtr {
  59   T* m_ptr;
  60 public:
  61   AutoArrayPtr(T* ptr) : m_ptr(ptr) {


< prev index next >