Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
208e701a
Commit
208e701a
authored
May 10, 2006
by
Eric Pouech
Committed by
Alexandre Julliard
May 11, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Implemented SymEnumSymbolsW.
parent
96efcbc4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
1 deletion
+51
-1
dbghelp.spec
dlls/dbghelp/dbghelp.spec
+1
-1
symbol.c
dlls/dbghelp/symbol.c
+47
-0
dbghelp.h
include/dbghelp.h
+3
-0
No files found.
dlls/dbghelp/dbghelp.spec
View file @
208e701a
...
...
@@ -39,7 +39,7 @@
@ stub SymEnumSourceFilesW
@ stub SymEnumSym
@ stdcall SymEnumSymbols(ptr double str ptr ptr)
@ st
ub SymEnumSymbolsW
@ st
dcall SymEnumSymbolsW(ptr double wstr ptr ptr)
@ stub SymEnumSymbolsForAddr
@ stub SymEnumSymbolsForAddrW
@ stdcall SymEnumTypes(ptr double ptr ptr)
...
...
dlls/dbghelp/symbol.c
View file @
208e701a
...
...
@@ -902,6 +902,53 @@ BOOL WINAPI SymEnumSymbols(HANDLE hProcess, ULONG64 BaseOfDll, PCSTR Mask,
return
sym_enum
(
hProcess
,
BaseOfDll
,
Mask
,
&
se
);
}
struct
sym_enumW
{
PSYM_ENUMERATESYMBOLS_CALLBACKW
cb
;
void
*
ctx
;
PSYMBOL_INFOW
sym_info
;
char
buffer
[
sizeof
(
SYMBOL_INFOW
)
+
MAX_SYM_NAME
];
};
static
BOOL
CALLBACK
sym_enumW
(
PSYMBOL_INFO
si
,
ULONG
size
,
PVOID
ctx
)
{
struct
sym_enumW
*
sew
=
ctx
;
copy_symbolW
(
sew
->
sym_info
,
si
);
return
(
sew
->
cb
)(
sew
->
sym_info
,
size
,
sew
->
ctx
);
}
/******************************************************************
* SymEnumSymbolsW (DBGHELP.@)
*
*/
BOOL
WINAPI
SymEnumSymbolsW
(
HANDLE
hProcess
,
ULONG64
BaseOfDll
,
PCWSTR
Mask
,
PSYM_ENUMERATESYMBOLS_CALLBACKW
EnumSymbolsCallback
,
PVOID
UserContext
)
{
struct
sym_enumW
sew
;
BOOL
ret
=
FALSE
;
char
*
maskA
=
NULL
;
sew
.
ctx
=
UserContext
;
sew
.
cb
=
EnumSymbolsCallback
;
sew
.
sym_info
=
(
PSYMBOL_INFOW
)
sew
.
buffer
;
if
(
Mask
)
{
unsigned
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
Mask
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
maskA
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
if
(
!
maskA
)
return
FALSE
;
WideCharToMultiByte
(
CP_ACP
,
0
,
Mask
,
-
1
,
maskA
,
len
,
NULL
,
NULL
);
}
ret
=
SymEnumSymbols
(
hProcess
,
BaseOfDll
,
maskA
,
sym_enumW
,
&
sew
);
HeapFree
(
GetProcessHeap
(),
0
,
maskA
);
return
ret
;
}
struct
sym_enumerate
{
void
*
ctx
;
...
...
include/dbghelp.h
View file @
208e701a
...
...
@@ -907,6 +907,7 @@ typedef struct _TI_FINDCHILDREN_PARAMS
BOOL
WINAPI
SymGetTypeInfo
(
HANDLE
,
DWORD64
,
ULONG
,
IMAGEHLP_SYMBOL_TYPE_INFO
,
PVOID
);
typedef
BOOL
(
CALLBACK
*
PSYM_ENUMERATESYMBOLS_CALLBACK
)(
PSYMBOL_INFO
,
ULONG
,
PVOID
);
typedef
BOOL
(
CALLBACK
*
PSYM_ENUMERATESYMBOLS_CALLBACKW
)(
PSYMBOL_INFOW
,
ULONG
,
PVOID
);
BOOL
WINAPI
SymEnumTypes
(
HANDLE
,
ULONG64
,
PSYM_ENUMERATESYMBOLS_CALLBACK
,
PVOID
);
BOOL
WINAPI
SymFromAddr
(
HANDLE
,
DWORD64
,
DWORD64
*
,
SYMBOL_INFO
*
);
BOOL
WINAPI
SymFromAddrW
(
HANDLE
,
DWORD64
,
DWORD64
*
,
SYMBOL_INFOW
*
);
...
...
@@ -923,6 +924,8 @@ BOOL WINAPI SymGetSymPrev(HANDLE, PIMAGEHLP_SYMBOL);
BOOL
WINAPI
SymGetSymPrev64
(
HANDLE
,
PIMAGEHLP_SYMBOL64
);
BOOL
WINAPI
SymEnumSymbols
(
HANDLE
,
ULONG64
,
PCSTR
,
PSYM_ENUMERATESYMBOLS_CALLBACK
,
PVOID
);
BOOL
WINAPI
SymEnumSymbolsW
(
HANDLE
,
ULONG64
,
PCWSTR
,
PSYM_ENUMERATESYMBOLS_CALLBACKW
,
PVOID
);
typedef
BOOL
(
CALLBACK
*
PSYM_ENUMSYMBOLS_CALLBACK
)(
PSTR
,
DWORD
,
ULONG
,
PVOID
);
BOOL
WINAPI
SymEnumerateSymbols
(
HANDLE
,
DWORD
,
PSYM_ENUMSYMBOLS_CALLBACK
,
PVOID
);
typedef
BOOL
(
CALLBACK
*
PSYM_ENUMSYMBOLS_CALLBACK64
)(
PSTR
,
DWORD64
,
ULONG
,
PVOID
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment