1998-10-11 19:04:17 +02:00
|
|
|
/*
|
|
|
|
* IMAGEHLP library
|
|
|
|
*
|
|
|
|
* Copyright 1998 Patrik Stridvall
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "winerror.h"
|
1999-02-17 14:51:06 +01:00
|
|
|
#include "winbase.h"
|
1999-03-14 17:35:05 +01:00
|
|
|
#include "windef.h"
|
1999-05-14 10:17:14 +02:00
|
|
|
#include "debugtools.h"
|
1998-10-11 19:04:17 +02:00
|
|
|
#include "imagehlp.h"
|
|
|
|
|
1999-04-19 16:56:29 +02:00
|
|
|
DEFAULT_DEBUG_CHANNEL(imagehlp)
|
|
|
|
|
1998-10-11 19:04:17 +02:00
|
|
|
/***********************************************************************
|
|
|
|
* FindDebugInfoFile32 (IMAGEHLP.5)
|
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
HANDLE WINAPI FindDebugInfoFile(
|
1998-10-11 19:04:17 +02:00
|
|
|
LPSTR FileName, LPSTR SymbolPath, LPSTR DebugFilePath)
|
|
|
|
{
|
1999-05-14 10:17:14 +02:00
|
|
|
FIXME("(%s, %s, %s): stub\n",
|
1998-10-11 19:04:17 +02:00
|
|
|
debugstr_a(FileName), debugstr_a(SymbolPath),
|
|
|
|
debugstr_a(DebugFilePath)
|
|
|
|
);
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
1999-02-26 12:11:13 +01:00
|
|
|
return (HANDLE) NULL;
|
1998-10-11 19:04:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* FindExecutableImage32 (IMAGEHLP.6)
|
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
HANDLE WINAPI FindExecutableImage(
|
1998-10-11 19:04:17 +02:00
|
|
|
LPSTR FileName, LPSTR SymbolPath, LPSTR ImageFilePath)
|
|
|
|
{
|
1999-05-14 10:17:14 +02:00
|
|
|
FIXME("(%s, %s, %s): stub\n",
|
1998-10-11 19:04:17 +02:00
|
|
|
debugstr_a(FileName), debugstr_a(SymbolPath),
|
|
|
|
debugstr_a(ImageFilePath)
|
|
|
|
);
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
1999-02-26 12:11:13 +01:00
|
|
|
return (HANDLE) NULL;
|
1998-10-11 19:04:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* MapDebugInformation32 (IMAGEHLP.26)
|
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
PIMAGE_DEBUG_INFORMATION WINAPI MapDebugInformation(
|
|
|
|
HANDLE FileHandle, LPSTR FileName,
|
1998-10-11 19:04:17 +02:00
|
|
|
LPSTR SymbolPath, DWORD ImageBase)
|
|
|
|
{
|
1999-05-14 10:17:14 +02:00
|
|
|
FIXME("(0x%08x, %s, %s, 0x%08lx): stub\n",
|
1998-10-11 19:04:17 +02:00
|
|
|
FileHandle, FileName, SymbolPath, ImageBase
|
|
|
|
);
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* StackWalk32 (IMAGEHLP.36)
|
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
BOOL WINAPI StackWalk(
|
|
|
|
DWORD MachineType, HANDLE hProcess, HANDLE hThread,
|
|
|
|
PSTACKFRAME StackFrame, PVOID ContextRecord,
|
|
|
|
PREAD_PROCESS_MEMORY_ROUTINE ReadMemoryRoutine,
|
|
|
|
PFUNCTION_TABLE_ACCESS_ROUTINE FunctionTableAccessRoutine,
|
|
|
|
PGET_MODULE_BASE_ROUTINE GetModuleBaseRoutine,
|
|
|
|
PTRANSLATE_ADDRESS_ROUTINE TranslateAddress)
|
1998-10-11 19:04:17 +02:00
|
|
|
{
|
1999-05-14 10:17:14 +02:00
|
|
|
FIXME(
|
1998-10-11 19:04:17 +02:00
|
|
|
"(%ld, 0x%08x, 0x%08x, %p, %p, %p, %p, %p, %p): stub\n",
|
|
|
|
MachineType, hProcess, hThread, StackFrame, ContextRecord,
|
|
|
|
ReadMemoryRoutine, FunctionTableAccessRoutine,
|
|
|
|
GetModuleBaseRoutine, TranslateAddress
|
|
|
|
);
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* UnDecorateSymbolName32 (IMAGEHLP.57)
|
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
DWORD WINAPI UnDecorateSymbolName(
|
1998-10-11 19:04:17 +02:00
|
|
|
LPCSTR DecoratedName, LPSTR UnDecoratedName,
|
|
|
|
DWORD UndecoratedLength, DWORD Flags)
|
|
|
|
{
|
1999-05-14 10:17:14 +02:00
|
|
|
FIXME("(%s, %s, %ld, 0x%08lx): stub\n",
|
1998-10-11 19:04:17 +02:00
|
|
|
debugstr_a(DecoratedName), debugstr_a(UnDecoratedName),
|
|
|
|
UndecoratedLength, Flags
|
|
|
|
);
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* UnmapDebugInformation32 (IMAGEHLP.59)
|
|
|
|
*/
|
|
|
|
|
1999-02-26 12:11:13 +01:00
|
|
|
BOOL WINAPI UnmapDebugInformation(
|
|
|
|
PIMAGE_DEBUG_INFORMATION DebugInfo)
|
1998-10-11 19:04:17 +02:00
|
|
|
{
|
1999-05-14 10:17:14 +02:00
|
|
|
FIXME("(%p): stub\n", DebugInfo);
|
1998-10-11 19:04:17 +02:00
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return FALSE;
|
|
|
|
}
|