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
f127448d
Commit
f127448d
authored
Mar 11, 2024
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Implement RtlWalkFrameChain on x86-64.
parent
6d8b4e66
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
0 deletions
+31
-0
signal_x86_64.c
dlls/ntdll/signal_x86_64.c
+30
-0
rtlsupportapi.h
include/rtlsupportapi.h
+1
-0
No files found.
dlls/ntdll/signal_x86_64.c
View file @
f127448d
...
...
@@ -958,6 +958,36 @@ __ASM_GLOBAL_FUNC( RtlRaiseException,
"call "
__ASM_NAME
(
"RtlRaiseStatus"
)
/* does not return */
);
/*************************************************************************
* RtlWalkFrameChain (NTDLL.@)
*/
ULONG
WINAPI
RtlWalkFrameChain
(
void
**
buffer
,
ULONG
count
,
ULONG
flags
)
{
UNWIND_HISTORY_TABLE
table
;
RUNTIME_FUNCTION
*
func
;
PEXCEPTION_ROUTINE
handler
;
ULONG_PTR
frame
,
base
;
CONTEXT
context
;
void
*
data
;
ULONG
i
,
skip
=
flags
>>
8
,
num_entries
=
0
;
RtlCaptureContext
(
&
context
);
for
(
i
=
0
;
i
<
count
;
i
++
)
{
func
=
RtlLookupFunctionEntry
(
context
.
Rip
,
&
base
,
&
table
);
if
(
RtlVirtualUnwind2
(
UNW_FLAG_NHANDLER
,
base
,
context
.
Rip
,
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
;
}
static
inline
ULONG
hash_pointers
(
void
**
ptrs
,
ULONG
count
)
{
/* Based on MurmurHash2, which is in the public domain */
...
...
include/rtlsupportapi.h
View file @
f127448d
...
...
@@ -28,6 +28,7 @@ NTSYSAPI void WINAPI RtlRaiseException(EXCEPTION_RECORD*);
NTSYSAPI
void
CDECL
RtlRestoreContext
(
CONTEXT
*
,
EXCEPTION_RECORD
*
);
NTSYSAPI
void
WINAPI
RtlUnwind
(
void
*
,
void
*
,
EXCEPTION_RECORD
*
,
void
*
);
NTSYSAPI
void
*
WINAPI
RtlPcToFileHeader
(
void
*
,
void
**
);
NTSYSAPI
ULONG
WINAPI
RtlWalkFrameChain
(
void
**
,
ULONG
,
ULONG
);
#ifndef __i386__
...
...
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