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
5c8b22f3
Commit
5c8b22f3
authored
Jul 25, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
Jul 26, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Implement SymGetSymFromAddr64.
parent
68249c10
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
1 deletion
+29
-1
dbghelp.spec
dlls/dbghelp/dbghelp.spec
+1
-1
symbol.c
dlls/dbghelp/symbol.c
+28
-0
No files found.
dlls/dbghelp/dbghelp.spec
View file @
5c8b22f3
...
...
@@ -99,7 +99,7 @@
@ stub SymGetSourceVarFromToken
@ stub SymGetSourceVarFromTokenW
@ stdcall SymGetSymFromAddr(long long ptr ptr)
@ st
ub SymGetSymFromAddr64
@ st
dcall SymGetSymFromAddr64(long long long ptr ptr)
@ stdcall SymGetSymFromName(long str ptr)
@ stub SymGetSymFromName64
@ stdcall SymGetSymNext(long ptr)
...
...
dlls/dbghelp/symbol.c
View file @
5c8b22f3
...
...
@@ -1046,6 +1046,34 @@ BOOL WINAPI SymGetSymFromAddr(HANDLE hProcess, DWORD Address,
return
TRUE
;
}
/******************************************************************
* SymGetSymFromAddr64 (DBGHELP.@)
*
*/
BOOL
WINAPI
SymGetSymFromAddr64
(
HANDLE
hProcess
,
DWORD64
Address
,
PDWORD64
Displacement
,
PIMAGEHLP_SYMBOL64
Symbol
)
{
char
buffer
[
sizeof
(
SYMBOL_INFO
)
+
MAX_SYM_NAME
];
SYMBOL_INFO
*
si
=
(
SYMBOL_INFO
*
)
buffer
;
size_t
len
;
DWORD64
Displacement64
;
if
(
Symbol
->
SizeOfStruct
<
sizeof
(
*
Symbol
))
return
FALSE
;
si
->
SizeOfStruct
=
sizeof
(
*
si
);
si
->
MaxNameLen
=
MAX_SYM_NAME
;
if
(
!
SymFromAddr
(
hProcess
,
Address
,
&
Displacement64
,
si
))
return
FALSE
;
if
(
Displacement
)
*
Displacement
=
Displacement64
;
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
;
}
static
BOOL
find_name
(
struct
process
*
pcs
,
struct
module
*
module
,
const
char
*
name
,
SYMBOL_INFO
*
symbol
)
{
...
...
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