Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
0cb406ef
Commit
0cb406ef
authored
Jun 25, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Add call frame annotations in x86 assembly code.
parent
e1f0a0db
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
0 deletions
+18
-0
cppexcept.c
dlls/msvcrt/cppexcept.c
+8
-0
except.c
dlls/msvcrt/except.c
+5
-0
misc.c
dlls/msvcrt/misc.c
+5
-0
No files found.
dlls/msvcrt/cppexcept.c
View file @
0cb406ef
...
...
@@ -413,14 +413,22 @@ extern DWORD CDECL __CxxFrameHandler( PEXCEPTION_RECORD rec, EXCEPTION_REGISTRAT
PCONTEXT
context
,
EXCEPTION_REGISTRATION_RECORD
**
dispatch
);
__ASM_GLOBAL_FUNC
(
__CxxFrameHandler
,
"pushl $0
\n\t
"
/* nested_trylevel */
__ASM_CFI
(
".cfi_adjust_cfa_offset 4
\n\t
"
)
"pushl $0
\n\t
"
/* nested_frame */
__ASM_CFI
(
".cfi_adjust_cfa_offset 4
\n\t
"
)
"pushl %eax
\n\t
"
/* descr */
__ASM_CFI
(
".cfi_adjust_cfa_offset 4
\n\t
"
)
"pushl 28(%esp)
\n\t
"
/* dispatch */
__ASM_CFI
(
".cfi_adjust_cfa_offset 4
\n\t
"
)
"pushl 28(%esp)
\n\t
"
/* context */
__ASM_CFI
(
".cfi_adjust_cfa_offset 4
\n\t
"
)
"pushl 28(%esp)
\n\t
"
/* frame */
__ASM_CFI
(
".cfi_adjust_cfa_offset 4
\n\t
"
)
"pushl 28(%esp)
\n\t
"
/* rec */
__ASM_CFI
(
".cfi_adjust_cfa_offset 4
\n\t
"
)
"call "
__ASM_NAME
(
"cxx_frame_handler"
)
"
\n\t
"
"add $28,%esp
\n\t
"
__ASM_CFI
(
".cfi_adjust_cfa_offset -28
\n\t
"
)
"ret"
)
...
...
dlls/msvcrt/except.c
View file @
0cb406ef
...
...
@@ -117,14 +117,19 @@ static DWORD MSVCRT_nested_handler(PEXCEPTION_RECORD rec,
/* Provided for VC++ binary compatibility only */
__ASM_GLOBAL_FUNC
(
_EH_prolog
,
__ASM_CFI
(
".cfi_adjust_cfa_offset 4
\n\t
"
)
/* skip ret addr */
"pushl $-1
\n\t
"
__ASM_CFI
(
".cfi_adjust_cfa_offset 4
\n\t
"
)
"pushl %eax
\n\t
"
__ASM_CFI
(
".cfi_adjust_cfa_offset 4
\n\t
"
)
"pushl %fs:0
\n\t
"
__ASM_CFI
(
".cfi_adjust_cfa_offset 4
\n\t
"
)
"movl %esp, %fs:0
\n\t
"
"movl 12(%esp), %eax
\n\t
"
"movl %ebp, 12(%esp)
\n\t
"
"leal 12(%esp), %ebp
\n\t
"
"pushl %eax
\n\t
"
__ASM_CFI
(
".cfi_adjust_cfa_offset 4
\n\t
"
)
"ret"
)
static
void
msvcrt_local_unwind2
(
MSVCRT_EXCEPTION_FRAME
*
frame
,
int
trylevel
,
void
*
ebp
)
...
...
dlls/msvcrt/misc.c
View file @
0cb406ef
...
...
@@ -138,7 +138,10 @@ __ASM_GLOBAL_FUNC(_chkesp,
"jnz 1f
\n\t
"
"ret
\n
"
"1:
\t
pushl %ebp
\n\t
"
__ASM_CFI
(
".cfi_adjust_cfa_offset 4
\n\t
"
)
__ASM_CFI
(
".cfi_rel_offset %ebp,0
\n\t
"
)
"movl %esp,%ebp
\n\t
"
__ASM_CFI
(
".cfi_def_cfa_register %ebp
\n\t
"
)
"subl $12,%esp
\n\t
"
"pushl %eax
\n\t
"
"pushl %ecx
\n\t
"
...
...
@@ -148,6 +151,8 @@ __ASM_GLOBAL_FUNC(_chkesp,
"popl %ecx
\n\t
"
"popl %eax
\n\t
"
"leave
\n\t
"
__ASM_CFI
(
".cfi_def_cfa %esp,4
\n\t
"
)
__ASM_CFI
(
".cfi_same_value %ebp
\n\t
"
)
"ret"
)
void
CDECL
MSVCRT_chkesp_fail
(
void
)
...
...
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