From d07210c83c574f33424fccbe8b33d810cb694939 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Sun, 3 Aug 2008 08:38:59 +0000 Subject: [PATCH] Fixed rosapps build svn path=/trunk/; revision=35058 --- reactos/dll/win32/dbghelp/dbghelp.spec | 4 +- reactos/dll/win32/dbghelp/dbghelp_ros.diff | 50 ++++++++++++++++++++++ reactos/dll/win32/dbghelp/symbol.c | 24 +++++++++++ reactos/include/psdk/dbghelp.h | 3 +- 4 files changed, 77 insertions(+), 4 deletions(-) create mode 100644 reactos/dll/win32/dbghelp/dbghelp_ros.diff diff --git a/reactos/dll/win32/dbghelp/dbghelp.spec b/reactos/dll/win32/dbghelp/dbghelp.spec index b95a9e728bf..d304a2a86d4 100644 --- a/reactos/dll/win32/dbghelp/dbghelp.spec +++ b/reactos/dll/win32/dbghelp/dbghelp.spec @@ -40,8 +40,8 @@ @ stub SymEnumSym @ stdcall SymEnumSymbols(ptr double str ptr ptr) @ stdcall SymEnumSymbolsW(ptr double wstr ptr ptr) -@ stub SymEnumSymbolsForAddr -@ stub SymEnumSymbolsForAddrW +@ stdcall SymEnumSymbolsForAddr (ptr double ptr ptr) +@ stdcall SymEnumSymbolsForAddrW (ptr double ptr ptr) @ stdcall SymEnumTypes(ptr double ptr ptr) @ stdcall SymEnumTypesW(ptr double ptr ptr) @ stdcall SymEnumerateModules(long ptr ptr) diff --git a/reactos/dll/win32/dbghelp/dbghelp_ros.diff b/reactos/dll/win32/dbghelp/dbghelp_ros.diff new file mode 100644 index 00000000000..b3c91c1e4f5 --- /dev/null +++ b/reactos/dll/win32/dbghelp/dbghelp_ros.diff @@ -0,0 +1,50 @@ +Index: dbghelp.spec +=================================================================== +--- dbghelp.spec (revision 35049) ++++ dbghelp.spec (working copy) +@@ -40,8 +40,8 @@ + @ stub SymEnumSym + @ stdcall SymEnumSymbols(ptr double str ptr ptr) + @ stdcall SymEnumSymbolsW(ptr double wstr ptr ptr) +-@ stub SymEnumSymbolsForAddr +-@ stub SymEnumSymbolsForAddrW ++@ stdcall SymEnumSymbolsForAddr (ptr double ptr ptr) ++@ stdcall SymEnumSymbolsForAddrW (ptr double ptr ptr) + @ stdcall SymEnumTypes(ptr double ptr ptr) + @ stdcall SymEnumTypesW(ptr double ptr ptr) + @ stdcall SymEnumerateModules(long ptr ptr) +Index: symbol.c +=================================================================== +--- symbol.c (revision 35049) ++++ symbol.c (working copy) +@@ -1000,6 +1000,30 @@ + } + + /****************************************************************** ++ * SymEnumSymbolsForAddrW (DBGHELP.@) ++ * ++ */ ++BOOL WINAPI SymEnumSymbolsForAddrW(HANDLE hProcess, DWORD64 Address, ++ PSYM_ENUMERATESYMBOLS_CALLBACKW EnumSymbolsCallback, ++ PVOID UserContext) ++{ ++ UNIMPLEMENTED; ++ return FALSE; ++} ++ ++/****************************************************************** ++ * SymEnumSymbolsForAddr (DBGHELP.@) ++ * ++ */ ++BOOL WINAPI SymEnumSymbolsForAddr(HANDLE hProcess, DWORD64 Address, ++ PSYM_ENUMERATESYMBOLS_CALLBACK EnumSymbolsCallback, ++ PVOID UserContext) ++{ ++ UNIMPLEMENTED; ++ return FALSE; ++} ++ ++/****************************************************************** + * SymEnumSymbolsW (DBGHELP.@) + * + */ diff --git a/reactos/dll/win32/dbghelp/symbol.c b/reactos/dll/win32/dbghelp/symbol.c index f4f2d11644a..1d0bbf5d2da 100644 --- a/reactos/dll/win32/dbghelp/symbol.c +++ b/reactos/dll/win32/dbghelp/symbol.c @@ -999,6 +999,30 @@ static BOOL CALLBACK sym_enumW(PSYMBOL_INFO si, ULONG size, PVOID ctx) return (sew->cb)(sew->sym_info, size, sew->ctx); } +/****************************************************************** + * SymEnumSymbolsForAddrW (DBGHELP.@) + * + */ +BOOL WINAPI SymEnumSymbolsForAddrW(HANDLE hProcess, DWORD64 Address, + PSYM_ENUMERATESYMBOLS_CALLBACKW EnumSymbolsCallback, + PVOID UserContext) +{ + UNIMPLEMENTED; + return FALSE; +} + +/****************************************************************** + * SymEnumSymbolsForAddr (DBGHELP.@) + * + */ +BOOL WINAPI SymEnumSymbolsForAddr(HANDLE hProcess, DWORD64 Address, + PSYM_ENUMERATESYMBOLS_CALLBACK EnumSymbolsCallback, + PVOID UserContext) +{ + UNIMPLEMENTED; + return FALSE; +} + /****************************************************************** * SymEnumSymbolsW (DBGHELP.@) * diff --git a/reactos/include/psdk/dbghelp.h b/reactos/include/psdk/dbghelp.h index a67daf38905..c8bb33ca4fb 100644 --- a/reactos/include/psdk/dbghelp.h +++ b/reactos/include/psdk/dbghelp.h @@ -375,10 +375,9 @@ typedef struct _IMAGEHLP_DUPLICATE_SYMBOL64 #define SYMOPT_EXACT_SYMBOLS 0x00000400 #define SYMOPT_WILD_UNDERSCORE 0x00000800 #define SYMOPT_USE_DEFAULTS 0x00001000 -/* latest SDK defines: +/* latest SDK defines: */ #define SYMOPT_ALLOW_ABSOLUTE_SYMBOLS 0x00000800 #define SYMOPT_IGNORE_NT_SYMPATH 0x00001000 -*/ #define SYMOPT_INCLUDE_32BIT_MODULES 0x00002000 #define SYMOPT_PUBLICS_ONLY 0x00004000 #define SYMOPT_NO_PUBLICS 0x00008000