Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
bingbingbingbing
mono
提交
13dabd15
M
mono
项目概览
bingbingbingbing
/
mono
与 Fork 源项目一致
从无法访问的项目Fork
通知
35
Star
0
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
mono
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
13dabd15
编写于
2月 10, 2011
作者:
L
Lucas Meijer
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
prefix global variables with mono_ prefix
上级
efae6c06
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
22 addition
and
22 deletion
+22
-22
mono/mini/exceptions-amd64.c
mono/mini/exceptions-amd64.c
+8
-8
mono/mini/exceptions-x86.c
mono/mini/exceptions-x86.c
+8
-8
mono/mini/mini-windows.c
mono/mini/mini-windows.c
+6
-6
未找到文件。
mono/mini/exceptions-amd64.c
浏览文件 @
13dabd15
...
@@ -38,9 +38,9 @@ static MonoW32ExceptionHandler fpe_handler;
...
@@ -38,9 +38,9 @@ static MonoW32ExceptionHandler fpe_handler;
static
MonoW32ExceptionHandler
ill_handler
;
static
MonoW32ExceptionHandler
ill_handler
;
static
MonoW32ExceptionHandler
segv_handler
;
static
MonoW32ExceptionHandler
segv_handler
;
LPTOP_LEVEL_EXCEPTION_FILTER
old_win_toplevel_exception_filter
;
LPTOP_LEVEL_EXCEPTION_FILTER
mono_
old_win_toplevel_exception_filter
;
guint64
win_chained_exception_filter_result
;
guint64
mono_
win_chained_exception_filter_result
;
gboolean
win_chained_exception_filter_didrun
;
gboolean
mono_
win_chained_exception_filter_didrun
;
#define W32_SEH_HANDLE_EX(_ex) \
#define W32_SEH_HANDLE_EX(_ex) \
if (_ex##_handler) _ex##_handler(0, ep, sctx)
if (_ex##_handler) _ex##_handler(0, ep, sctx)
...
@@ -56,7 +56,7 @@ LONG CALLBACK seh_handler(EXCEPTION_POINTERS* ep)
...
@@ -56,7 +56,7 @@ LONG CALLBACK seh_handler(EXCEPTION_POINTERS* ep)
MonoContext
*
sctx
;
MonoContext
*
sctx
;
LONG
res
;
LONG
res
;
win_chained_exception_filter_didrun
=
FALSE
;
mono_
win_chained_exception_filter_didrun
=
FALSE
;
res
=
EXCEPTION_CONTINUE_EXECUTION
;
res
=
EXCEPTION_CONTINUE_EXECUTION
;
er
=
ep
->
ExceptionRecord
;
er
=
ep
->
ExceptionRecord
;
...
@@ -117,20 +117,20 @@ LONG CALLBACK seh_handler(EXCEPTION_POINTERS* ep)
...
@@ -117,20 +117,20 @@ LONG CALLBACK seh_handler(EXCEPTION_POINTERS* ep)
g_free
(
sctx
);
g_free
(
sctx
);
if
(
win_chained_exception_filter_didrun
)
if
(
mono_
win_chained_exception_filter_didrun
)
res
=
win_chained_exception_filter_result
;
res
=
mono_
win_chained_exception_filter_result
;
return
res
;
return
res
;
}
}
void
win32_seh_init
()
void
win32_seh_init
()
{
{
old_win_toplevel_exception_filter
=
SetUnhandledExceptionFilter
(
seh_handler
);
mono_
old_win_toplevel_exception_filter
=
SetUnhandledExceptionFilter
(
seh_handler
);
}
}
void
win32_seh_cleanup
()
void
win32_seh_cleanup
()
{
{
if
(
old_win_toplevel_exception_filter
)
SetUnhandledExceptionFilter
(
old_win_toplevel_exception_filter
);
if
(
mono_old_win_toplevel_exception_filter
)
SetUnhandledExceptionFilter
(
mono_
old_win_toplevel_exception_filter
);
}
}
void
win32_seh_set_handler
(
int
type
,
MonoW32ExceptionHandler
handler
)
void
win32_seh_set_handler
(
int
type
,
MonoW32ExceptionHandler
handler
)
...
...
mono/mini/exceptions-x86.c
浏览文件 @
13dabd15
...
@@ -39,9 +39,9 @@ static MonoW32ExceptionHandler fpe_handler;
...
@@ -39,9 +39,9 @@ static MonoW32ExceptionHandler fpe_handler;
static
MonoW32ExceptionHandler
ill_handler
;
static
MonoW32ExceptionHandler
ill_handler
;
static
MonoW32ExceptionHandler
segv_handler
;
static
MonoW32ExceptionHandler
segv_handler
;
LPTOP_LEVEL_EXCEPTION_FILTER
old_win_toplevel_exception_filter
;
LPTOP_LEVEL_EXCEPTION_FILTER
mono_
old_win_toplevel_exception_filter
;
guint64
win_chained_exception_filter_result
;
guint64
mono_
win_chained_exception_filter_result
;
gboolean
win_chained_exception_filter_didrun
;
gboolean
mono_
win_chained_exception_filter_didrun
;
#ifndef PROCESS_CALLBACK_FILTER_ENABLED
#ifndef PROCESS_CALLBACK_FILTER_ENABLED
# define PROCESS_CALLBACK_FILTER_ENABLED 1
# define PROCESS_CALLBACK_FILTER_ENABLED 1
...
@@ -178,7 +178,7 @@ LONG CALLBACK seh_handler(EXCEPTION_POINTERS* ep)
...
@@ -178,7 +178,7 @@ LONG CALLBACK seh_handler(EXCEPTION_POINTERS* ep)
struct
sigcontext
*
sctx
;
struct
sigcontext
*
sctx
;
LONG
res
;
LONG
res
;
win_chained_exception_filter_didrun
=
FALSE
;
mono_
win_chained_exception_filter_didrun
=
FALSE
;
res
=
EXCEPTION_CONTINUE_EXECUTION
;
res
=
EXCEPTION_CONTINUE_EXECUTION
;
er
=
ep
->
ExceptionRecord
;
er
=
ep
->
ExceptionRecord
;
...
@@ -231,8 +231,8 @@ LONG CALLBACK seh_handler(EXCEPTION_POINTERS* ep)
...
@@ -231,8 +231,8 @@ LONG CALLBACK seh_handler(EXCEPTION_POINTERS* ep)
g_free
(
sctx
);
g_free
(
sctx
);
if
(
win_chained_exception_filter_didrun
)
if
(
mono_
win_chained_exception_filter_didrun
)
res
=
win_chained_exception_filter_result
;
res
=
mono_
win_chained_exception_filter_result
;
return
res
;
return
res
;
}
}
...
@@ -243,12 +243,12 @@ void win32_seh_init()
...
@@ -243,12 +243,12 @@ void win32_seh_init()
if
(
!
restore_stack
)
if
(
!
restore_stack
)
restore_stack
=
mono_win32_get_handle_stackoverflow
();
restore_stack
=
mono_win32_get_handle_stackoverflow
();
old_win_toplevel_exception_filter
=
SetUnhandledExceptionFilter
(
seh_handler
);
mono_
old_win_toplevel_exception_filter
=
SetUnhandledExceptionFilter
(
seh_handler
);
}
}
void
win32_seh_cleanup
()
void
win32_seh_cleanup
()
{
{
if
(
old_win_toplevel_exception_filter
)
SetUnhandledExceptionFilter
(
old_win_toplevel_exception_filter
);
if
(
mono_old_win_toplevel_exception_filter
)
SetUnhandledExceptionFilter
(
mono_
old_win_toplevel_exception_filter
);
}
}
void
win32_seh_set_handler
(
int
type
,
MonoW32ExceptionHandler
handler
)
void
win32_seh_set_handler
(
int
type
,
MonoW32ExceptionHandler
handler
)
...
...
mono/mini/mini-windows.c
浏览文件 @
13dabd15
...
@@ -50,9 +50,9 @@
...
@@ -50,9 +50,9 @@
#include "jit-icalls.h"
#include "jit-icalls.h"
extern
LPTOP_LEVEL_EXCEPTION_FILTER
old_win_toplevel_exception_filter
;
extern
LPTOP_LEVEL_EXCEPTION_FILTER
mono_
old_win_toplevel_exception_filter
;
extern
guint64
win_chained_exception_filter_result
;
extern
guint64
mono_
win_chained_exception_filter_result
;
extern
gboolean
win_chained_exception_filter_didrun
;
extern
gboolean
mono_
win_chained_exception_filter_didrun
;
void
void
mono_runtime_install_handlers
(
void
)
mono_runtime_install_handlers
(
void
)
...
@@ -88,9 +88,9 @@ SIG_HANDLER_SIGNATURE (mono_chain_signal)
...
@@ -88,9 +88,9 @@ SIG_HANDLER_SIGNATURE (mono_chain_signal)
int
signal
=
_dummy
;
int
signal
=
_dummy
;
GET_CONTEXT
;
GET_CONTEXT
;
if
(
old_win_toplevel_exception_filter
)
{
if
(
mono_
old_win_toplevel_exception_filter
)
{
win_chained_exception_filter_didrun
=
TRUE
;
mono_
win_chained_exception_filter_didrun
=
TRUE
;
win_chained_exception_filter_result
=
(
*
old_win_toplevel_exception_filter
)(
info
);
mono_win_chained_exception_filter_result
=
(
*
mono_
old_win_toplevel_exception_filter
)(
info
);
return
TRUE
;
return
TRUE
;
}
}
return
FALSE
;
return
FALSE
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录