http://bugs.winehq.org/show_bug.cgi?id=22883
Summary: implement dbghelp.SymMatchStringA/W (needed by "Debugging Tools for Windows") Product: Wine Version: 1.2-rc1 Platform: x86 URL: http://www.microsoft.com/whdc/devtools/debugging/defau lt.mspx OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: dbghelp AssignedTo: wine-bugs@winehq.org ReportedBy: focht@gmx.net
Hello,
while writing some scripts for cdb from "Debugging Tools for Windows" toolsuite, the following insufficiency is encountered:
--- snip --- ... wine: Call from 0x7b835a02 to unimplemented function dbghelp.dll.SymMatchStringW, aborting wine: Unimplemented function dbghelp.dll.SymMatchStringW called at address 0x7b835a02 (thread 0034), starting debugger... --- snip ---
Native dbghelp works around.
It seems there is already an ansi version "SymMatchString" present and exported (without "A" suffix).
--- snip dlls/dbghelp/symbol.c ---
/****************************************************************** * SymMatchString (DBGHELP.@) * */ BOOL WINAPI SymMatchString(PCSTR string, PCSTR re, BOOL _case) { regex_t preg; BOOL ret;
TRACE("%s %s %c\n", string, re, _case ? 'Y' : 'N');
compile_regex(re, -1, &preg, _case); ret = match_regexp(&preg, string); regfree(&preg); return ret; } ... --- snip dlls/dbghelp/symbol.c ---
--- snip dlls/dbghelp/dbghelp.spec --- ... @ stdcall SymMatchString(str str long) @ stub SymMatchStringA @ stub SymMatchStringW ... --- snip dlls/dbghelp/dbghelp.spec ---
SymMatchStringA -> SymMatchString
It would be nice if the wide character variant SymMatchStringW() could be also supported. AFAIK standard POSIX.2 regex lib doesn't support wide character interface, you have to convert to multibyte string and use ansi version.
Regards