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
22c39932
Commit
22c39932
authored
Feb 13, 2013
by
André Hentschel
Committed by
Alexandre Julliard
Feb 13, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Implement RtlUnwind for ARM.
parent
d4b2d48f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
2 deletions
+53
-2
signal_arm.c
dlls/ntdll/signal_arm.c
+53
-2
No files found.
dlls/ntdll/signal_arm.c
View file @
22c39932
...
...
@@ -916,9 +916,60 @@ void __wine_enter_vm86( CONTEXT *context )
/***********************************************************************
* RtlUnwind (NTDLL.@)
*/
void
WINAPI
RtlUnwind
(
PVOID
pEndFrame
,
PVOID
targetIp
,
PEXCEPTION_RECORD
pRecord
,
PVOID
retval
)
void
WINAPI
RtlUnwind
(
void
*
endframe
,
void
*
target_ip
,
EXCEPTION_RECORD
*
rec
,
void
*
retval
)
{
FIXME
(
"Not implemented on ARM
\n
"
);
CONTEXT
context
;
EXCEPTION_RECORD
record
;
EXCEPTION_REGISTRATION_RECORD
*
frame
,
*
dispatch
;
DWORD
res
;
RtlCaptureContext
(
&
context
);
context
.
R0
=
(
DWORD
)
retval
;
/* build an exception record, if we do not have one */
if
(
!
rec
)
{
record
.
ExceptionCode
=
STATUS_UNWIND
;
record
.
ExceptionFlags
=
0
;
record
.
ExceptionRecord
=
NULL
;
record
.
ExceptionAddress
=
(
void
*
)
context
.
Pc
;
record
.
NumberParameters
=
0
;
rec
=
&
record
;
}
rec
->
ExceptionFlags
|=
EH_UNWINDING
|
(
endframe
?
0
:
EH_EXIT_UNWIND
);
TRACE
(
"code=%x flags=%x
\n
"
,
rec
->
ExceptionCode
,
rec
->
ExceptionFlags
);
/* get chain of exception frames */
frame
=
NtCurrentTeb
()
->
Tib
.
ExceptionList
;
while
((
frame
!=
(
EXCEPTION_REGISTRATION_RECORD
*
)
~
0UL
)
&&
(
frame
!=
endframe
))
{
/* Check frame address */
if
(
endframe
&&
((
void
*
)
frame
>
endframe
))
raise_status
(
STATUS_INVALID_UNWIND_TARGET
,
rec
);
if
(
!
is_valid_frame
(
frame
))
raise_status
(
STATUS_BAD_STACK
,
rec
);
/* Call handler */
TRACE
(
"calling handler at %p code=%x flags=%x
\n
"
,
frame
->
Handler
,
rec
->
ExceptionCode
,
rec
->
ExceptionFlags
);
res
=
frame
->
Handler
(
rec
,
frame
,
&
context
,
&
dispatch
);
TRACE
(
"handler at %p returned %x
\n
"
,
frame
->
Handler
,
res
);
switch
(
res
)
{
case
ExceptionContinueSearch
:
break
;
case
ExceptionCollidedUnwind
:
frame
=
dispatch
;
break
;
default
:
raise_status
(
STATUS_INVALID_DISPOSITION
,
rec
);
break
;
}
frame
=
__wine_pop_frame
(
frame
);
}
}
/*******************************************************************
...
...
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