1998-10-11 19:04:17 +02:00
|
|
|
/*
|
|
|
|
* IMAGEHLP library
|
|
|
|
*
|
|
|
|
* Copyright 1998 Patrik Stridvall
|
2002-03-10 00:29:33 +01:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library 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
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
1998-10-11 19:04:17 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#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"
|
2002-03-10 00:29:33 +01:00
|
|
|
#include "wine/debug.h"
|
1998-10-11 19:04:17 +02:00
|
|
|
#include "imagehlp.h"
|
|
|
|
|
2002-03-10 00:29:33 +01:00
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(imagehlp);
|
1999-04-19 16:56:29 +02:00
|
|
|
|
1998-10-11 19:04:17 +02:00
|
|
|
/***********************************************************************
|
2000-03-28 22:22:59 +02:00
|
|
|
* FindDebugInfoFile (IMAGEHLP.@)
|
1998-10-11 19:04:17 +02:00
|
|
|
*/
|
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);
|
2003-01-15 00:43:41 +01:00
|
|
|
return NULL;
|
1998-10-11 19:04:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
2000-03-28 22:22:59 +02:00
|
|
|
* FindExecutableImage (IMAGEHLP.@)
|
1998-10-11 19:04:17 +02:00
|
|
|
*/
|
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);
|
2003-01-15 00:43:41 +01:00
|
|
|
return NULL;
|
1998-10-11 19:04:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
2000-03-28 22:22:59 +02:00
|
|
|
* MapDebugInformation (IMAGEHLP.@)
|
1998-10-11 19:04:17 +02:00
|
|
|
*/
|
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)
|
|
|
|
{
|
2002-10-22 02:45:27 +02:00
|
|
|
FIXME("(%p, %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;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
2000-03-28 22:22:59 +02:00
|
|
|
* StackWalk (IMAGEHLP.@)
|
1998-10-11 19:04:17 +02:00
|
|
|
*/
|
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(
|
2002-10-22 02:45:27 +02:00
|
|
|
"(%ld, %p, %p, %p, %p, %p, %p, %p, %p): stub\n",
|
1998-10-11 19:04:17 +02:00
|
|
|
MachineType, hProcess, hThread, StackFrame, ContextRecord,
|
|
|
|
ReadMemoryRoutine, FunctionTableAccessRoutine,
|
|
|
|
GetModuleBaseRoutine, TranslateAddress
|
|
|
|
);
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
2000-03-28 22:22:59 +02:00
|
|
|
* UnDecorateSymbolName (IMAGEHLP.@)
|
1998-10-11 19:04:17 +02:00
|
|
|
*/
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
2000-03-28 22:22:59 +02:00
|
|
|
* UnmapDebugInformation (IMAGEHLP.@)
|
1998-10-11 19:04:17 +02:00
|
|
|
*/
|
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;
|
|
|
|
}
|