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
925182b0
Commit
925182b0
authored
Oct 26, 2021
by
Eric Pouech
Committed by
Alexandre Julliard
Oct 27, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Implement SymSetScopeFromAddr() and SymSetScopeFromIndex().
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
066bb761
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
6 deletions
+20
-6
dbghelp.c
dlls/dbghelp/dbghelp.c
+20
-6
No files found.
dlls/dbghelp/dbghelp.c
View file @
925182b0
...
@@ -644,11 +644,18 @@ BOOL WINAPI SymSetContext(HANDLE hProcess, PIMAGEHLP_STACK_FRAME StackFrame,
...
@@ -644,11 +644,18 @@ BOOL WINAPI SymSetContext(HANDLE hProcess, PIMAGEHLP_STACK_FRAME StackFrame,
*/
*/
BOOL
WINAPI
SymSetScopeFromAddr
(
HANDLE
hProcess
,
ULONG64
addr
)
BOOL
WINAPI
SymSetScopeFromAddr
(
HANDLE
hProcess
,
ULONG64
addr
)
{
{
struct
process
*
pcs
;
struct
module_pair
pair
;
struct
symt_ht
*
sym
;
FIXME
(
"(%p %#I64x): stub
\n
"
,
hProcess
,
addr
);
TRACE
(
"(%p %#I64x)
\n
"
,
hProcess
,
addr
);
if
(
!
module_init_pair
(
&
pair
,
hProcess
,
addr
))
return
FALSE
;
if
((
sym
=
symt_find_nearest
(
pair
.
effective
,
addr
))
==
NULL
)
return
FALSE
;
if
(
sym
->
symt
.
tag
!=
SymTagFunction
)
return
FALSE
;
pair
.
pcs
->
localscope_pc
=
addr
;
pair
.
pcs
->
localscope_symt
=
&
sym
->
symt
;
if
(
!
(
pcs
=
process_find_by_handle
(
hProcess
)))
return
FALSE
;
return
TRUE
;
return
TRUE
;
}
}
...
@@ -657,11 +664,18 @@ BOOL WINAPI SymSetScopeFromAddr(HANDLE hProcess, ULONG64 addr)
...
@@ -657,11 +664,18 @@ BOOL WINAPI SymSetScopeFromAddr(HANDLE hProcess, ULONG64 addr)
*/
*/
BOOL
WINAPI
SymSetScopeFromIndex
(
HANDLE
hProcess
,
ULONG64
addr
,
DWORD
index
)
BOOL
WINAPI
SymSetScopeFromIndex
(
HANDLE
hProcess
,
ULONG64
addr
,
DWORD
index
)
{
{
struct
process
*
pcs
;
struct
module_pair
pair
;
struct
symt
*
sym
;
FIXME
(
"(%p %#I64x %u): stub
\n
"
,
hProcess
,
addr
,
index
);
TRACE
(
"(%p %#I64x %u)
\n
"
,
hProcess
,
addr
,
index
);
if
(
!
module_init_pair
(
&
pair
,
hProcess
,
addr
))
return
FALSE
;
sym
=
symt_index2ptr
(
pair
.
effective
,
index
);
if
(
!
symt_check_tag
(
sym
,
SymTagFunction
))
return
FALSE
;
pair
.
pcs
->
localscope_pc
=
((
struct
symt_function
*
)
sym
)
->
address
;
/* FIXME of FuncDebugStart when it exists? */
pair
.
pcs
->
localscope_symt
=
sym
;
if
(
!
(
pcs
=
process_find_by_handle
(
hProcess
)))
return
FALSE
;
return
TRUE
;
return
TRUE
;
}
}
...
...
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