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
ed6aa17d
Commit
ed6aa17d
authored
Aug 21, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Simplify stack layout in __crtCapturePreviousContext().
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
451c8592
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
13 deletions
+8
-13
except_x86_64.c
dlls/msvcrt/except_x86_64.c
+8
-13
No files found.
dlls/msvcrt/except_x86_64.c
View file @
ed6aa17d
...
...
@@ -732,9 +732,6 @@ void __cdecl get_prev_context(CONTEXT *ctx, DWORD64 rip)
TRACE
(
"(%p)
\n
"
,
ctx
);
ctx
->
Rip
=
rip
;
ctx
->
Rsp
+=
3
*
8
;
/* Rip, Rcx, return address */
rf
=
RtlLookupFunctionEntry
(
ctx
->
Rip
,
&
image_base
,
NULL
);
if
(
!
rf
)
{
FIXME
(
"RtlLookupFunctionEntry failed
\n
"
);
...
...
@@ -746,16 +743,14 @@ void __cdecl get_prev_context(CONTEXT *ctx, DWORD64 rip)
}
__ASM_GLOBAL_FUNC
(
__crtCapturePreviousContext
,
"pushq (%rsp)
\n\t
"
/* save Rip */
__ASM_CFI
(
".cfi_adjust_cfa_offset 8
\n\t
"
)
"pushq %rcx
\n\t
"
__ASM_CFI
(
".cfi_adjust_cfa_offset 8
\n\t
"
)
"call "
__ASM_NAME
(
"RtlCaptureContext"
)
"
\n\t
"
"popq %rcx
\n\t
"
__ASM_CFI
(
".cfi_adjust_cfa_offset -8
\n\t
"
)
"popq %rdx
\n\t
"
__ASM_CFI
(
".cfi_adjust_cfa_offset -8
\n\t
"
)
"jmp "
__ASM_NAME
(
"get_prev_context"
)
);
"movq %rcx,8(%rsp)
\n\t
"
"call "
__ASM_NAME
(
"RtlCaptureContext"
)
"
\n\t
"
"movq 8(%rsp),%rcx
\n\t
"
/* context */
"leaq 8(%rsp),%rax
\n\t
"
"movq %rax,0x98(%rcx)
\n\t
"
/* context->Rsp */
"movq (%rsp),%rax
\n\t
"
"movq %rax,0xf8(%rcx)
\n\t
"
/* context->Rip */
"jmp "
__ASM_NAME
(
"get_prev_context"
)
)
#endif
#endif
/* __x86_64__ */
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