/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
#include "precompiled.hpp"
#include "decoder_windows.hpp"
_can_decode_in_vm = false;
initialize();
}
if (!handle) {
return;
}
_pfnUndecorateSymbolName = (pfn_UndecorateSymbolName)::GetProcAddress(handle, "UnDecorateSymbolName");
::FreeLibrary(handle);
return;
}
::FreeLibrary(handle);
return;
}
// set pdb search paths
paths[0] = '\0';
} else {
// available spaces in path buffer
}
tmp_path[0] = '\0';
// append the path where jvm.dll is located
dwSize --;
}
}
}
// path
char *p = Arguments::get_java_home();
}
// see if it exists or not
// if the directory exists
if (dwAttrib != INVALID_FILE_ATTRIBUTES &&
(dwAttrib & FILE_ATTRIBUTE_DIRECTORY)) {
// tmp_path should have the same length as java_home_len, since we only
// replaced 'jre' with 'bin'
}
}
}
}
// find out if jvm.dll contains private symbols, by decoding
// current function and comparing the result
}
}
}
void WindowsDecoder::uninitialize() {
if (_dbghelp_handle != NULL) {
}
}
bool WindowsDecoder::can_decode_C_frame_in_vm() const {
return (!has_error() && _can_decode_in_vm);
}
bool WindowsDecoder::decode(address addr, char *buf, int buflen, int* offset, const char* modulepath) {
if (_pfnSymGetSymFromAddr64 != NULL) {
}
}
return true;
}
}
return false;
}
return _pfnUndecorateSymbolName != NULL &&
}