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
3418bf6c
Commit
3418bf6c
authored
Mar 11, 2024
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Implement RtlWalkFrameChain on ARM64EC.
parent
6184f74e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
signal_arm64ec.c
dlls/ntdll/signal_arm64ec.c
+32
-0
No files found.
dlls/ntdll/signal_arm64ec.c
View file @
3418bf6c
...
...
@@ -1995,6 +1995,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
.
Rip
;
if
((
context
.
ContextFlags
&
CONTEXT_UNWOUND_TO_CALL
)
&&
RtlIsEcCode
(
pc
))
pc
-=
4
;
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
.
Rip
)
break
;
if
(
!
frame
||
!
is_valid_frame
(
frame
))
break
;
if
(
context
.
Rsp
==
(
ULONG_PTR
)
NtCurrentTeb
()
->
Tib
.
StackBase
)
break
;
if
(
i
>=
skip
)
buffer
[
num_entries
++
]
=
(
void
*
)
context
.
Rip
;
}
return
num_entries
;
}
/*******************************************************************
* __C_specific_handler (NTDLL.@)
*/
...
...
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