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
3938478a
Commit
3938478a
authored
Mar 11, 2024
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Implement RtlWalkFrameChain on ARM.
parent
37ded738
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
signal_arm.c
dlls/ntdll/signal_arm.c
+32
-0
No files found.
dlls/ntdll/signal_arm.c
View file @
3938478a
...
...
@@ -571,6 +571,38 @@ void WINAPI RtlUnwindEx( PVOID end_frame, PVOID target_ip, EXCEPTION_RECORD *rec
}
/*************************************************************************
* RtlWalkFrameChain (NTDLL.@)
*/
ULONG
WINAPI
RtlWalkFrameChain
(
void
**
buffer
,
ULONG
count
,
ULONG
flags
)
{
UNWIND_HISTORY_TABLE
table
;
RUNTIME_FUNCTION
*
func
;
PEXCEPTION_ROUTINE
handler
;
ULONG_PTR
pc
,
frame
,
base
;
CONTEXT
context
;
void
*
data
;
ULONG
i
,
skip
=
flags
>>
8
,
num_entries
=
0
;
RtlCaptureContext
(
&
context
);
for
(
i
=
0
;
i
<
count
;
i
++
)
{
pc
=
context
.
Pc
;
if
(
context
.
ContextFlags
&
CONTEXT_UNWOUND_TO_CALL
)
pc
-=
2
;
func
=
RtlLookupFunctionEntry
(
pc
,
&
base
,
&
table
);
if
(
RtlVirtualUnwind2
(
UNW_FLAG_NHANDLER
,
base
,
pc
,
func
,
&
context
,
NULL
,
&
data
,
&
frame
,
NULL
,
NULL
,
NULL
,
&
handler
,
0
))
break
;
if
(
!
context
.
Pc
)
break
;
if
(
!
frame
||
!
is_valid_frame
(
frame
))
break
;
if
(
context
.
Sp
==
(
ULONG_PTR
)
NtCurrentTeb
()
->
Tib
.
StackBase
)
break
;
if
(
i
>=
skip
)
buffer
[
num_entries
++
]
=
(
void
*
)
context
.
Pc
;
}
return
num_entries
;
}
extern
LONG
__C_ExecuteExceptionFilter
(
PEXCEPTION_POINTERS
ptrs
,
PVOID
frame
,
PEXCEPTION_FILTER
filter
,
PUCHAR
nonvolatile
);
...
...
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