Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
329c22f3
Commit
329c22f3
authored
Apr 23, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Add a few more 64-bit symbol functions.
parent
08347365
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
57 additions
and
8 deletions
+57
-8
dbghelp.spec
dlls/dbghelp/dbghelp.spec
+4
-4
symbol.c
dlls/dbghelp/symbol.c
+53
-4
No files found.
dlls/dbghelp/dbghelp.spec
View file @
329c22f3
...
...
@@ -118,11 +118,11 @@
@ stdcall SymGetSymFromAddr(long long ptr ptr)
@ stdcall SymGetSymFromAddr64(long double ptr ptr)
@ stdcall SymGetSymFromName(long str ptr)
@ st
ub SymGetSymFromName64
@ st
dcall SymGetSymFromName64(long str ptr)
@ stdcall SymGetSymNext(long ptr)
@ st
ub SymGetSymNext64
@ st
dcall SymGetSymNext64(long ptr)
@ stdcall SymGetSymPrev(long ptr)
@ st
ub SymGetSymPrev64
@ st
dcall SymGetSymPrev64(long ptr)
@ stub SymGetSymbolFile
@ stub SymGetSymbolFileW
@ stdcall SymGetTypeFromName(ptr double str ptr)
...
...
@@ -180,7 +180,7 @@
# @ stub SymSetSymWithAddr64 no longer present ??
@ stub SymSetSymWithAddr64
@ stdcall SymUnDName(ptr str long)
@ st
ub SymUnDName64
@ st
dcall SymUnDName64(ptr str long)
@ stdcall SymUnloadModule(long long)
@ stdcall SymUnloadModule64(long double)
@ stdcall UnDecorateSymbolName(str str long long)
...
...
dlls/dbghelp/symbol.c
View file @
329c22f3
...
...
@@ -1350,6 +1350,28 @@ BOOL WINAPI SymFromName(HANDLE hProcess, PCSTR Name, PSYMBOL_INFO Symbol)
}
/***********************************************************************
* SymGetSymFromName64 (DBGHELP.@)
*/
BOOL
WINAPI
SymGetSymFromName64
(
HANDLE
hProcess
,
PCSTR
Name
,
PIMAGEHLP_SYMBOL64
Symbol
)
{
char
buffer
[
sizeof
(
SYMBOL_INFO
)
+
MAX_SYM_NAME
];
SYMBOL_INFO
*
si
=
(
SYMBOL_INFO
*
)
buffer
;
size_t
len
;
if
(
Symbol
->
SizeOfStruct
<
sizeof
(
*
Symbol
))
return
FALSE
;
si
->
SizeOfStruct
=
sizeof
(
*
si
);
si
->
MaxNameLen
=
MAX_SYM_NAME
;
if
(
!
SymFromName
(
hProcess
,
Name
,
si
))
return
FALSE
;
Symbol
->
Address
=
si
->
Address
;
Symbol
->
Size
=
si
->
Size
;
Symbol
->
Flags
=
si
->
Flags
;
len
=
min
(
Symbol
->
MaxNameLength
,
si
->
MaxNameLen
);
lstrcpynA
(
Symbol
->
Name
,
si
->
Name
,
len
);
return
TRUE
;
}
/***********************************************************************
* SymGetSymFromName (DBGHELP.@)
*/
BOOL
WINAPI
SymGetSymFromName
(
HANDLE
hProcess
,
PCSTR
Name
,
PIMAGEHLP_SYMBOL
Symbol
)
...
...
@@ -1407,9 +1429,9 @@ BOOL symt_fill_func_line_info(const struct module* module, const struct symt_fun
}
/***********************************************************************
* SymGetSymNext (DBGHELP.@)
* SymGetSymNext
64
(DBGHELP.@)
*/
BOOL
WINAPI
SymGetSymNext
(
HANDLE
hProcess
,
PIMAGEHLP_SYMBOL
Symbol
)
BOOL
WINAPI
SymGetSymNext
64
(
HANDLE
hProcess
,
PIMAGEHLP_SYMBOL64
Symbol
)
{
/* algo:
* get module from Symbol.Address
...
...
@@ -1423,9 +1445,28 @@ BOOL WINAPI SymGetSymNext(HANDLE hProcess, PIMAGEHLP_SYMBOL Symbol)
}
/***********************************************************************
* SymGetSym
Prev
(DBGHELP.@)
* SymGetSym
Next
(DBGHELP.@)
*/
BOOL
WINAPI
SymGetSymNext
(
HANDLE
hProcess
,
PIMAGEHLP_SYMBOL
Symbol
)
{
FIXME
(
"(%p, %p): stub
\n
"
,
hProcess
,
Symbol
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
FALSE
;
}
/***********************************************************************
* SymGetSymPrev64 (DBGHELP.@)
*/
BOOL
WINAPI
SymGetSymPrev64
(
HANDLE
hProcess
,
PIMAGEHLP_SYMBOL64
Symbol
)
{
FIXME
(
"(%p, %p): stub
\n
"
,
hProcess
,
Symbol
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
FALSE
;
}
/***********************************************************************
* SymGetSymPrev (DBGHELP.@)
*/
BOOL
WINAPI
SymGetSymPrev
(
HANDLE
hProcess
,
PIMAGEHLP_SYMBOL
Symbol
)
{
FIXME
(
"(%p, %p): stub
\n
"
,
hProcess
,
Symbol
);
...
...
@@ -1685,7 +1726,15 @@ PVOID WINAPI SymFunctionTableAccess64(HANDLE hProcess, DWORD64 AddrBase)
*/
BOOL
WINAPI
SymUnDName
(
PIMAGEHLP_SYMBOL
sym
,
PSTR
UnDecName
,
DWORD
UnDecNameLength
)
{
TRACE
(
"(%p %s %u)
\n
"
,
sym
,
UnDecName
,
UnDecNameLength
);
return
UnDecorateSymbolName
(
sym
->
Name
,
UnDecName
,
UnDecNameLength
,
UNDNAME_COMPLETE
)
!=
0
;
}
/***********************************************************************
* SymUnDName64 (DBGHELP.@)
*/
BOOL
WINAPI
SymUnDName64
(
PIMAGEHLP_SYMBOL64
sym
,
PSTR
UnDecName
,
DWORD
UnDecNameLength
)
{
return
UnDecorateSymbolName
(
sym
->
Name
,
UnDecName
,
UnDecNameLength
,
UNDNAME_COMPLETE
)
!=
0
;
}
...
...
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