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
af22daf7
Commit
af22daf7
authored
Aug 28, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Add support for unwinding the signal stack on x86_64.
parent
ec078110
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
signal_x86_64.c
dlls/ntdll/signal_x86_64.c
+20
-2
No files found.
dlls/ntdll/signal_x86_64.c
View file @
af22daf7
...
...
@@ -976,6 +976,17 @@ static inline void *get_signal_stack(void)
}
/***********************************************************************
* is_inside_signal_stack
*
* Check if pointer is inside the signal stack.
*/
static
inline
int
is_inside_signal_stack
(
void
*
ptr
)
{
return
((
char
*
)
ptr
>=
(
char
*
)
get_signal_stack
()
&&
(
char
*
)
ptr
<
(
char
*
)
get_signal_stack
()
+
signal_stack_size
);
}
/***********************************************************************
* save_context
*
* Set the register values from a sigcontext.
...
...
@@ -1316,8 +1327,7 @@ static EXCEPTION_RECORD *setup_exception( ucontext_t *sigcontext, raise_func fun
/* stack sanity checks */
if
((
char
*
)
stack
>=
(
char
*
)
get_signal_stack
()
&&
(
char
*
)
stack
<
(
char
*
)
get_signal_stack
()
+
signal_stack_size
)
if
(
is_inside_signal_stack
(
stack
))
{
ERR
(
"nested exception on signal stack in thread %04x eip %016lx esp %016lx stack %p-%p
\n
"
,
GetCurrentThreadId
(),
RIP_sig
(
sigcontext
),
RSP_sig
(
sigcontext
),
...
...
@@ -2424,6 +2434,14 @@ void WINAPI RtlUnwindEx( ULONG64 end_frame, ULONG64 target_ip, EXCEPTION_RECORD
if
(
!
dispatch
.
EstablisherFrame
)
break
;
if
(
is_inside_signal_stack
(
(
void
*
)
dispatch
.
EstablisherFrame
))
{
TRACE
(
"frame %lx is inside signal stack (%p-%p)
\n
"
,
dispatch
.
EstablisherFrame
,
get_signal_stack
(),
(
char
*
)
get_signal_stack
()
+
signal_stack_size
);
context
=
new_context
;
continue
;
}
if
((
dispatch
.
EstablisherFrame
&
7
)
||
dispatch
.
EstablisherFrame
<
(
ULONG64
)
NtCurrentTeb
()
->
Tib
.
StackLimit
||
dispatch
.
EstablisherFrame
>
(
ULONG64
)
NtCurrentTeb
()
->
Tib
.
StackBase
)
...
...
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