mirror of
https://gitlab.winehq.org/wine/wine.git
synced 2025-08-29 10:43:55 +02:00
For a 32bit DLL, dbghelp exports both the 32bit and the 64bit variant of some APIs (eg. StackWalk, SymLoadModule...). For a 64bit DLL, only the 64bit variant is implemented and exported (the two names point to the same address in the export table). This patch: - uses the same function for both names (as native does) in .spec file for 64bit architecture - removes the 32bit variant from 64bit compilation, - adapts also the corresponding import:s in imagehlp from dbghelp. This mostly fixes 64bit apps, getting eg "StackWalk" address with GetProcAddress() and expecting a 64bit code path. (reported & tested by Stefan). Signed-off-by: Eric Pouech <epouech@codeweavers.com>
109 lines
5.2 KiB
Python
109 lines
5.2 KiB
Python
@ stdcall BindImage(str str str)
|
|
@ stdcall BindImageEx(long str str str ptr)
|
|
@ stdcall CheckSumMappedFile(ptr long ptr ptr)
|
|
@ stdcall -import EnumerateLoadedModules64(long ptr ptr)
|
|
@ stdcall -import EnumerateLoadedModules(long ptr ptr)
|
|
@ stdcall -import FindDebugInfoFile(str str ptr)
|
|
@ stdcall -import FindDebugInfoFileEx(str str ptr ptr ptr)
|
|
@ stdcall -import FindExecutableImage(str str str)
|
|
@ stdcall -import FindExecutableImageEx(str str ptr ptr ptr)
|
|
@ stub FindFileInPath
|
|
@ stub FindFileInSearchPath
|
|
@ stdcall GetImageConfigInformation(ptr ptr)
|
|
@ stdcall GetImageUnusedHeaderBytes(ptr ptr)
|
|
@ stdcall -import GetTimestampForLoadedLibrary(long)
|
|
@ stdcall ImageAddCertificate(long ptr ptr)
|
|
@ stdcall -import ImageDirectoryEntryToData(ptr long long ptr)
|
|
@ stdcall -import ImageDirectoryEntryToDataEx(ptr long long ptr ptr)
|
|
@ stdcall ImageEnumerateCertificates(long long ptr ptr long)
|
|
@ stdcall ImageGetCertificateData(long long ptr ptr)
|
|
@ stdcall ImageGetCertificateHeader(long long ptr)
|
|
@ stdcall ImageGetDigestStream(long long ptr long)
|
|
@ stdcall ImageLoad(str str)
|
|
@ stdcall -import ImageNtHeader(ptr) RtlImageNtHeader
|
|
@ stdcall ImageRemoveCertificate(long long)
|
|
@ stdcall -import ImageRvaToSection(ptr ptr long) RtlImageRvaToSection
|
|
@ stdcall -import ImageRvaToVa(ptr ptr long ptr) RtlImageRvaToVa
|
|
@ stdcall ImageUnload(ptr)
|
|
@ stdcall -import ImagehlpApiVersion()
|
|
@ stdcall -import ImagehlpApiVersionEx(ptr)
|
|
@ stdcall -import MakeSureDirectoryPathExists(str)
|
|
@ stdcall MapAndLoad(str str ptr long long)
|
|
@ stdcall -import -arch=win32 MapDebugInformation(long str str long)
|
|
@ stdcall MapFileAndCheckSumA(str ptr ptr)
|
|
@ stdcall MapFileAndCheckSumW(wstr ptr ptr)
|
|
@ stub MarkImageAsRunFromSwap
|
|
@ stub ReBaseImage64
|
|
@ stdcall ReBaseImage(str str long long long long ptr ptr ptr ptr long)
|
|
@ stdcall RemovePrivateCvSymbolic(ptr ptr ptr)
|
|
@ stub RemovePrivateCvSymbolicEx
|
|
@ stdcall RemoveRelocations(ptr)
|
|
@ stdcall -import SearchTreeForFile(str str ptr)
|
|
@ stdcall SetImageConfigInformation(ptr ptr)
|
|
@ stdcall SplitSymbols(str str str long)
|
|
@ stdcall -import StackWalk64(long long long ptr ptr ptr ptr ptr ptr)
|
|
@ stdcall -import StackWalk(long long long ptr ptr ptr ptr ptr ptr)
|
|
@ stdcall -import SymCleanup(long)
|
|
@ stdcall -import SymEnumSourceFiles(ptr int64 str ptr ptr)
|
|
@ stub SymEnumSym
|
|
@ stdcall -import SymEnumSymbols(ptr int64 str ptr ptr)
|
|
@ stdcall -import SymEnumTypes(ptr int64 ptr ptr)
|
|
@ stdcall -import SymEnumerateModules64(long ptr ptr)
|
|
@ stdcall -import SymEnumerateModules(long ptr ptr)
|
|
@ stdcall -import SymEnumerateSymbols64(long int64 ptr ptr)
|
|
@ stdcall -import SymEnumerateSymbols(long ptr ptr ptr)
|
|
@ stub SymEnumerateSymbolsW64
|
|
@ stub SymEnumerateSymbolsW
|
|
@ stdcall -import SymFindFileInPath(long str str ptr long long long ptr ptr ptr)
|
|
@ stdcall -import SymFromAddr(ptr int64 ptr ptr)
|
|
@ stdcall -import SymFromName(long str ptr)
|
|
@ stdcall -import SymFunctionTableAccess64(long int64)
|
|
@ stdcall -import SymFunctionTableAccess(long ptr)
|
|
@ stdcall -import SymGetLineFromAddr64(long int64 ptr ptr)
|
|
@ stdcall -import SymGetLineFromAddr(long ptr ptr ptr)
|
|
@ stub SymGetLineFromName64
|
|
@ stub SymGetLineFromName
|
|
@ stdcall -import SymGetLineNext64(long ptr)
|
|
@ stdcall -import SymGetLineNext(long ptr)
|
|
@ stdcall -import SymGetLinePrev64(long ptr)
|
|
@ stdcall -import SymGetLinePrev(long ptr)
|
|
@ stdcall -import SymGetModuleBase64(long int64)
|
|
@ stdcall -import SymGetModuleBase(long ptr)
|
|
@ stdcall -import SymGetModuleInfo64(long int64 ptr)
|
|
@ stdcall -import SymGetModuleInfo(long ptr ptr)
|
|
@ stdcall -import SymGetModuleInfoW64(long int64 ptr)
|
|
@ stdcall -import SymGetModuleInfoW(long ptr ptr)
|
|
@ stdcall -import SymGetOptions()
|
|
@ stdcall -import SymGetSearchPath(long ptr long)
|
|
@ stdcall -import SymGetSymFromAddr64(long int64 ptr ptr)
|
|
@ stdcall -import SymGetSymFromAddr(long ptr ptr ptr)
|
|
@ stdcall -import SymGetSymFromName64(long str ptr)
|
|
@ stdcall -import SymGetSymFromName(long str ptr)
|
|
@ stdcall -import SymGetSymNext64(long ptr)
|
|
@ stdcall -import SymGetSymNext(long ptr)
|
|
@ stdcall -import SymGetSymPrev64(long ptr)
|
|
@ stdcall -import SymGetSymPrev(long ptr)
|
|
@ stdcall -import SymGetTypeFromName(ptr int64 str ptr)
|
|
@ stdcall -import SymGetTypeInfo(ptr int64 long long ptr)
|
|
@ stdcall -import SymInitialize(long str long)
|
|
@ stdcall -import SymLoadModule64(long long str str int64 long)
|
|
@ stdcall -import SymLoadModule(long long str str ptr long)
|
|
@ stdcall -import SymMatchFileName(str str ptr ptr)
|
|
@ stdcall -import SymMatchString(str str long)
|
|
@ stdcall -import SymRegisterCallback64(long ptr int64)
|
|
@ stdcall -import SymRegisterCallback(long ptr ptr)
|
|
@ stdcall -import SymRegisterFunctionEntryCallback64(ptr ptr int64)
|
|
@ stdcall -import SymRegisterFunctionEntryCallback(ptr ptr ptr)
|
|
@ stdcall -import SymSetContext(long ptr ptr)
|
|
@ stdcall -import SymSetOptions(long)
|
|
@ stdcall -import SymSetSearchPath(long str)
|
|
@ stdcall -import SymUnDName64(ptr str long)
|
|
@ stdcall -import SymUnDName(ptr str long)
|
|
@ stdcall -import SymUnloadModule64(long int64)
|
|
@ stdcall -import SymUnloadModule(long ptr)
|
|
@ stdcall TouchFileTimes(long ptr)
|
|
@ stdcall -import UnDecorateSymbolName(str str long long)
|
|
@ stdcall UnMapAndLoad(ptr)
|
|
@ stdcall -import -arch=win32 UnmapDebugInformation(ptr)
|
|
@ stdcall UpdateDebugInfoFile(str str str ptr)
|
|
@ stdcall UpdateDebugInfoFileEx(str str str ptr long)
|