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
9999c59c
Commit
9999c59c
authored
Mar 20, 2018
by
Piotr Caban
Committed by
Alexandre Julliard
Mar 20, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ucrtbase: Add __processing_throw implementation.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f82af4d2
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
21 additions
and
5 deletions
+21
-5
api-ms-win-crt-private-l1-1-0.spec
...win-crt-private-l1-1-0/api-ms-win-crt-private-l1-1-0.spec
+1
-1
except.c
dlls/msvcrt/except.c
+9
-0
except_i386.c
dlls/msvcrt/except_i386.c
+4
-2
except_x86_64.c
dlls/msvcrt/except_x86_64.c
+4
-0
msvcrt.h
dlls/msvcrt/msvcrt.h
+1
-0
ucrtbase.spec
dlls/ucrtbase/ucrtbase.spec
+1
-1
vcruntime140.spec
dlls/vcruntime140/vcruntime140.spec
+1
-1
No files found.
dlls/api-ms-win-crt-private-l1-1-0/api-ms-win-crt-private-l1-1-0.spec
View file @
9999c59c
...
...
@@ -40,7 +40,7 @@
@ stub __intrinsic_abnormal_termination
@ cdecl -arch=i386,x86_64,arm,arm64 -norelay __intrinsic_setjmp(ptr) ucrtbase.__intrinsic_setjmp
@ cdecl -arch=x86_64,arm64 -norelay __intrinsic_setjmpex(ptr ptr) ucrtbase.__intrinsic_setjmpex
@
stub
__processing_throw
@
cdecl __processing_throw() ucrtbase.
__processing_throw
@ stub __report_gsfailure
@ cdecl __std_exception_copy(ptr ptr) ucrtbase.__std_exception_copy
@ cdecl __std_exception_destroy(ptr) ucrtbase.__std_exception_destroy
...
...
dlls/msvcrt/except.c
View file @
9999c59c
...
...
@@ -528,4 +528,13 @@ void** CDECL __current_exception_context(void)
return
(
void
**
)
&
msvcrt_get_thread_data
()
->
ctx_record
;
}
/*********************************************************************
* __processing_throw (UCRTBASE.@)
*/
int
*
CDECL
__processing_throw
(
void
)
{
TRACE
(
"()
\n
"
);
return
&
msvcrt_get_thread_data
()
->
processing_throw
;
}
#endif
/* _MSVCR_VER>=140 */
dlls/msvcrt/except_i386.c
View file @
9999c59c
...
...
@@ -412,8 +412,9 @@ static inline void call_catch_block( PEXCEPTION_RECORD rec, CONTEXT *context,
struct
catch_func_nested_frame
nested_frame
;
int
trylevel
=
frame
->
trylevel
;
DWORD
save_esp
=
((
DWORD
*
)
frame
)[
-
1
];
thread_data_t
*
data
;
thread_data_t
*
data
=
msvcrt_get_thread_data
()
;
data
->
processing_throw
++
;
for
(
i
=
0
;
i
<
descr
->
tryblock_count
;
i
++
)
{
const
tryblock_info
*
tryblock
=
&
descr
->
tryblock
[
i
];
...
...
@@ -456,11 +457,11 @@ static inline void call_catch_block( PEXCEPTION_RECORD rec, CONTEXT *context,
cxx_local_unwind
(
frame
,
descr
,
tryblock
->
start_level
);
frame
->
trylevel
=
tryblock
->
end_level
+
1
;
data
=
msvcrt_get_thread_data
();
nested_frame
.
frame_info
.
rec
=
data
->
exc_record
;
nested_frame
.
frame_info
.
context
=
data
->
ctx_record
;
data
->
exc_record
=
rec
;
data
->
ctx_record
=
context
;
data
->
processing_throw
--
;
/* call the catch block */
TRACE
(
"calling catch block %p addr %p ebp %p
\n
"
,
...
...
@@ -483,6 +484,7 @@ static inline void call_catch_block( PEXCEPTION_RECORD rec, CONTEXT *context,
continue_after_catch
(
frame
,
addr
);
}
}
data
->
processing_throw
--
;
}
/*********************************************************************
...
...
dlls/msvcrt/except_x86_64.c
View file @
9999c59c
...
...
@@ -363,6 +363,7 @@ static void* WINAPI call_catch_block(EXCEPTION_RECORD *rec)
ctx
.
rethrow
=
FALSE
;
__CxxRegisterExceptionObject
(
&
ep
,
&
ctx
.
frame_info
);
msvcrt_get_thread_data
()
->
processing_throw
--
;
__TRY
{
__TRY
...
...
@@ -410,12 +411,14 @@ static inline void find_catch_block(EXCEPTION_RECORD *rec, CONTEXT *context,
ULONG64
exc_base
=
(
rec
->
NumberParameters
==
4
?
rec
->
ExceptionInformation
[
3
]
:
0
);
int
trylevel
=
ip_to_state
(
rva_to_ptr
(
descr
->
ipmap
,
dispatch
->
ImageBase
),
descr
->
ipmap_count
,
dispatch
->
ControlPc
-
dispatch
->
ImageBase
);
thread_data_t
*
data
=
msvcrt_get_thread_data
();
const
tryblock_info
*
in_catch
;
EXCEPTION_RECORD
catch_record
;
CONTEXT
ctx
;
UINT
i
,
j
;
INT
*
unwind_help
;
data
->
processing_throw
++
;
for
(
i
=
descr
->
tryblock_count
;
i
>
0
;
i
--
)
{
in_catch
=
rva_to_ptr
(
descr
->
tryblock
,
dispatch
->
ImageBase
);
...
...
@@ -494,6 +497,7 @@ static inline void find_catch_block(EXCEPTION_RECORD *rec, CONTEXT *context,
}
TRACE
(
"no matching catch block found
\n
"
);
data
->
processing_throw
--
;
}
static
LONG
CALLBACK
se_translation_filter
(
EXCEPTION_POINTERS
*
ep
,
void
*
c
)
...
...
dlls/msvcrt/msvcrt.h
View file @
9999c59c
...
...
@@ -260,6 +260,7 @@ struct __thread_data {
int
unk7
;
EXCEPTION_RECORD
*
exc_record
;
CONTEXT
*
ctx_record
;
int
processing_throw
;
frame_info
*
frame_info_head
;
void
*
unk8
[
6
];
LCID
cached_lcid
;
...
...
dlls/ucrtbase/ucrtbase.spec
View file @
9999c59c
...
...
@@ -135,7 +135,7 @@
@ cdecl __p__wenviron() MSVCRT___p__wenviron
@ cdecl __p__wpgmptr() MSVCRT___p__wpgmptr
@ cdecl __pctype_func() MSVCRT___pctype_func
@
stub __processing_throw
@
cdecl __processing_throw()
@ stub __pwctype_func
@ cdecl __pxcptinfoptrs() MSVCRT___pxcptinfoptrs
@ stub __report_gsfailure
...
...
dlls/vcruntime140/vcruntime140.spec
View file @
9999c59c
...
...
@@ -34,7 +34,7 @@
@ cdecl __current_exception_context() ucrtbase.__current_exception_context
@ cdecl -arch=i386,x86_64,arm,arm64 -norelay __intrinsic_setjmp(ptr) ucrtbase.__intrinsic_setjmp
@ cdecl -arch=x86_64,arm64 -norelay __intrinsic_setjmpex(ptr ptr) ucrtbase.__intrinsic_setjmpex
@
stub
__processing_throw
@
cdecl __processing_throw() ucrtbase.
__processing_throw
@ stub __report_gsfailure
@ cdecl __std_exception_copy(ptr ptr) ucrtbase.__std_exception_copy
@ cdecl __std_exception_destroy(ptr) ucrtbase.__std_exception_destroy
...
...
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