Remove (POINTER)NULL casts.
[wine] / dlls / imagehlp / debug.c
1 /*
2  *      IMAGEHLP library
3  *
4  *      Copyright 1998  Patrik Stridvall
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  */
20
21 #include "winerror.h"
22 #include "winbase.h"
23 #include "windef.h"
24 #include "wine/debug.h"
25 #include "imagehlp.h"
26
27 WINE_DEFAULT_DEBUG_CHANNEL(imagehlp);
28
29 /***********************************************************************
30  *              FindDebugInfoFile (IMAGEHLP.@)
31  */
32 HANDLE WINAPI FindDebugInfoFile(
33   LPSTR FileName, LPSTR SymbolPath, LPSTR DebugFilePath)
34 {
35   FIXME("(%s, %s, %s): stub\n",
36     debugstr_a(FileName), debugstr_a(SymbolPath),
37     debugstr_a(DebugFilePath)
38   );
39   SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
40   return NULL;
41 }
42
43 /***********************************************************************
44  *              FindExecutableImage (IMAGEHLP.@)
45  */
46 HANDLE WINAPI FindExecutableImage(
47   LPSTR FileName, LPSTR SymbolPath, LPSTR ImageFilePath)
48 {
49   FIXME("(%s, %s, %s): stub\n",
50     debugstr_a(FileName), debugstr_a(SymbolPath),
51     debugstr_a(ImageFilePath)
52   );
53   SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
54   return NULL;
55 }
56
57 /***********************************************************************
58  *              MapDebugInformation (IMAGEHLP.@)
59  */
60 PIMAGE_DEBUG_INFORMATION WINAPI MapDebugInformation(
61   HANDLE FileHandle, LPSTR FileName,
62   LPSTR SymbolPath, DWORD ImageBase)
63 {
64   FIXME("(%p, %s, %s, 0x%08lx): stub\n",
65     FileHandle, FileName, SymbolPath, ImageBase
66   );
67   SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
68   return NULL;
69 }
70
71 /***********************************************************************
72  *              StackWalk (IMAGEHLP.@)
73  */
74 BOOL WINAPI StackWalk(
75   DWORD MachineType, HANDLE hProcess, HANDLE hThread,
76   PSTACKFRAME StackFrame, PVOID ContextRecord,
77   PREAD_PROCESS_MEMORY_ROUTINE ReadMemoryRoutine,
78   PFUNCTION_TABLE_ACCESS_ROUTINE FunctionTableAccessRoutine,
79   PGET_MODULE_BASE_ROUTINE GetModuleBaseRoutine,
80   PTRANSLATE_ADDRESS_ROUTINE TranslateAddress)
81 {
82   FIXME(
83     "(%ld, %p, %p, %p, %p, %p, %p, %p, %p): stub\n",
84       MachineType, hProcess, hThread, StackFrame, ContextRecord,
85       ReadMemoryRoutine, FunctionTableAccessRoutine,
86       GetModuleBaseRoutine, TranslateAddress
87   );
88   SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
89   return FALSE;
90 }
91
92 /***********************************************************************
93  *              UnDecorateSymbolName (IMAGEHLP.@)
94  */
95 DWORD WINAPI UnDecorateSymbolName(
96   LPCSTR DecoratedName, LPSTR UnDecoratedName,
97   DWORD UndecoratedLength, DWORD Flags)
98 {
99   FIXME("(%s, %s, %ld, 0x%08lx): stub\n",
100     debugstr_a(DecoratedName), debugstr_a(UnDecoratedName),
101     UndecoratedLength, Flags
102   );
103   SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
104   return 0;
105 }
106
107 /***********************************************************************
108  *              UnmapDebugInformation (IMAGEHLP.@)
109  */
110 BOOL WINAPI UnmapDebugInformation(
111   PIMAGE_DEBUG_INFORMATION DebugInfo)
112 {
113   FIXME("(%p): stub\n", DebugInfo);
114   SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
115   return FALSE;
116 }