[Bug 22883] New: implement dbghelp.SymMatchStringA/W (needed by "Debugging Tools for Windows")

wine-bugs at winehq.org wine-bugs at winehq.org
Wed May 26 04:01:16 CDT 2010


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 at winehq.org
        ReportedBy: focht at 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

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list