decoder_windows.cpp revision 3924
1941N/A * or visit www.oracle.com if you need additional information or have any
1941N/A#include "precompiled.hpp"
1941N/A#include "decoder_windows.hpp"
1941N/A _can_decode_in_vm = false;
1941N/A pfn_SymSetOptions _pfnSymSetOptions = (pfn_SymSetOptions)::GetProcAddress(handle, "SymSetOptions");
1941N/A pfn_SymInitialize _pfnSymInitialize = (pfn_SymInitialize)::GetProcAddress(handle, "SymInitialize");
1941N/A _pfnSymGetSymFromAddr64 = (pfn_SymGetSymFromAddr64)::GetProcAddress(handle, "SymGetSymFromAddr64");
1941N/A _pfnUndecorateSymbolName = (pfn_UndecorateSymbolName)GetProcAddress(handle, "UnDecorateSymbolName");
1941N/A if (_pfnSymSetOptions == NULL || _pfnSymInitialize == NULL || _pfnSymGetSymFromAddr64 == NULL) {
1941N/Abool WindowsDecoder::decode(address addr, char *buf, int buflen, int* offset, const char* modulepath) {
1941N/A if (_pfnSymGetSymFromAddr64(::GetCurrentProcess(), (DWORD64)addr, &displacement, pSymbol)) {