debug.c 2.79 KB
Newer Older
1 2 3 4 5 6 7
/*
 *	IMAGEHLP library
 *
 *	Copyright 1998	Patrik Stridvall
 */

#include "winerror.h"
8
#include "winbase.h"
9
#include "windef.h"
10
#include "debugtools.h"
11 12
#include "imagehlp.h"

13
DEFAULT_DEBUG_CHANNEL(imagehlp);
14

15
/***********************************************************************
16
 *		FindDebugInfoFile (IMAGEHLP.@)
17
 */
18
HANDLE WINAPI FindDebugInfoFile(
19 20
  LPSTR FileName, LPSTR SymbolPath, LPSTR DebugFilePath)
{
21
  FIXME("(%s, %s, %s): stub\n",
22 23 24 25
    debugstr_a(FileName), debugstr_a(SymbolPath),
    debugstr_a(DebugFilePath)
  );
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
26
  return (HANDLE) NULL;
27 28 29
}

/***********************************************************************
30
 *		FindExecutableImage (IMAGEHLP.@)
31
 */
32
HANDLE WINAPI FindExecutableImage(
33 34
  LPSTR FileName, LPSTR SymbolPath, LPSTR ImageFilePath)
{
35
  FIXME("(%s, %s, %s): stub\n",
36 37 38 39
    debugstr_a(FileName), debugstr_a(SymbolPath),
    debugstr_a(ImageFilePath)
  );
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
40
  return (HANDLE) NULL;
41 42 43
}

/***********************************************************************
44
 *		MapDebugInformation (IMAGEHLP.@)
45
 */
46 47
PIMAGE_DEBUG_INFORMATION WINAPI MapDebugInformation(
  HANDLE FileHandle, LPSTR FileName,
48 49
  LPSTR SymbolPath, DWORD ImageBase)
{
50
  FIXME("(0x%08x, %s, %s, 0x%08lx): stub\n",
51 52 53 54 55 56 57
    FileHandle, FileName, SymbolPath, ImageBase
  );
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return NULL;
}

/***********************************************************************
58
 *		StackWalk (IMAGEHLP.@)
59
 */
60 61 62 63 64 65 66
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)
67
{
68
  FIXME(
69 70 71 72 73 74 75 76 77 78
    "(%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;
}

/***********************************************************************
79
 *		UnDecorateSymbolName (IMAGEHLP.@)
80
 */
81
DWORD WINAPI UnDecorateSymbolName(
82 83 84
  LPCSTR DecoratedName, LPSTR UnDecoratedName,
  DWORD UndecoratedLength, DWORD Flags)
{
85
  FIXME("(%s, %s, %ld, 0x%08lx): stub\n",
86 87 88 89 90 91 92 93
    debugstr_a(DecoratedName), debugstr_a(UnDecoratedName),
    UndecoratedLength, Flags
  );
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return 0;
}

/***********************************************************************
94
 *		UnmapDebugInformation (IMAGEHLP.@)
95
 */
96 97
BOOL WINAPI UnmapDebugInformation(
  PIMAGE_DEBUG_INFORMATION DebugInfo)
98
{
99
  FIXME("(%p): stub\n", DebugInfo);
100 101 102
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return FALSE;
}