< prev index next >

hotspot/src/os/windows/vm/decoder_windows.hpp

Print this page




   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  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 #ifndef OS_WINDOWS_VM_DECODER_WINDOWS_HPP
  26 #define OS_WINDOWS_VM_DECIDER_WINDOWS_HPP
  27 
  28 #include <windows.h>



  29 #include <imagehlp.h>
  30 
  31 #include "utilities/decoder.hpp"
  32 
  33 // functions needed for decoding symbols
  34 typedef DWORD (WINAPI *pfn_SymSetOptions)(DWORD);
  35 typedef BOOL  (WINAPI *pfn_SymInitialize)(HANDLE, PCTSTR, BOOL);
  36 typedef BOOL  (WINAPI *pfn_SymGetSymFromAddr64)(HANDLE, DWORD64, PDWORD64, PIMAGEHLP_SYMBOL64);
  37 typedef DWORD (WINAPI *pfn_UndecorateSymbolName)(const char*, char*, DWORD, DWORD);
  38 typedef BOOL  (WINAPI *pfn_SymSetSearchPath)(HANDLE, PCTSTR);
  39 typedef BOOL  (WINAPI *pfn_SymGetSearchPath)(HANDLE, PTSTR, int);
  40 
  41 #ifdef AMD64
  42 typedef BOOL  (WINAPI *pfn_StackWalk64)(DWORD MachineType,
  43                                         HANDLE hProcess,
  44                                         HANDLE hThread,
  45                                         LPSTACKFRAME64 StackFrame,
  46                                         PVOID ContextRecord,
  47                                         PREAD_PROCESS_MEMORY_ROUTINE64 ReadMemoryRoutine,
  48                                         PFUNCTION_TABLE_ACCESS_ROUTINE64 FunctionTableAccessRoutine,




   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  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 #ifndef OS_WINDOWS_VM_DECODER_WINDOWS_HPP
  26 #define OS_WINDOWS_VM_DECIDER_WINDOWS_HPP
  27 
  28 #include <windows.h>
  29 #if _MSC_VER >= 1900
  30 #pragma warning( disable : 4091 ) // typedef ignored on left when no variable is declared
  31 #endif
  32 #include <imagehlp.h>
  33 
  34 #include "utilities/decoder.hpp"
  35 
  36 // functions needed for decoding symbols
  37 typedef DWORD (WINAPI *pfn_SymSetOptions)(DWORD);
  38 typedef BOOL  (WINAPI *pfn_SymInitialize)(HANDLE, PCTSTR, BOOL);
  39 typedef BOOL  (WINAPI *pfn_SymGetSymFromAddr64)(HANDLE, DWORD64, PDWORD64, PIMAGEHLP_SYMBOL64);
  40 typedef DWORD (WINAPI *pfn_UndecorateSymbolName)(const char*, char*, DWORD, DWORD);
  41 typedef BOOL  (WINAPI *pfn_SymSetSearchPath)(HANDLE, PCTSTR);
  42 typedef BOOL  (WINAPI *pfn_SymGetSearchPath)(HANDLE, PTSTR, int);
  43 
  44 #ifdef AMD64
  45 typedef BOOL  (WINAPI *pfn_StackWalk64)(DWORD MachineType,
  46                                         HANDLE hProcess,
  47                                         HANDLE hThread,
  48                                         LPSTACKFRAME64 StackFrame,
  49                                         PVOID ContextRecord,
  50                                         PREAD_PROCESS_MEMORY_ROUTINE64 ReadMemoryRoutine,
  51                                         PFUNCTION_TABLE_ACCESS_ROUTINE64 FunctionTableAccessRoutine,


< prev index next >