Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Turbo码先生
redis
提交
eea8c7a4
R
redis
项目概览
Turbo码先生
/
redis
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
redis
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
eea8c7a4
编写于
1月 20, 2012
作者:
A
antirez
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
added support to dump registers on crash on Linux x64
上级
d4d20859
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
29 addition
and
1 deletion
+29
-1
src/debug.c
src/debug.c
+28
-1
src/redis.h
src/redis.h
+1
-0
未找到文件。
src/debug.c
浏览文件 @
eea8c7a4
...
...
@@ -498,7 +498,34 @@ void logRegisters(ucontext_t *uc) {
#elif defined(__i386__)
return
(
void
*
)
uc
->
uc_mcontext
.
gregs
[
14
];
/* Linux 32 */
#elif defined(__X86_64__) || defined(__x86_64__)
return
(
void
*
)
uc
->
uc_mcontext
.
gregs
[
16
];
/* Linux 64 */
redisLog
(
REDIS_WARNING
,
"
\n
"
"RAX:%p RBX:%p RCX:%p RDX:%p
\n
"
"RDI:%p RSI:%p RBP:%p RSP:%p
\n
"
"R8:%p R9:%p R10:%p R11:%p
\n
"
"R12:%p R13:%p R14:%p R15:%p
\n
"
"RIP:%p EFL:%p CSGSFS:%p"
,
uc
->
uc_mcontext
.
gregs
[
13
],
uc
->
uc_mcontext
.
gregs
[
11
],
uc
->
uc_mcontext
.
gregs
[
14
],
uc
->
uc_mcontext
.
gregs
[
12
],
uc
->
uc_mcontext
.
gregs
[
8
],
uc
->
uc_mcontext
.
gregs
[
9
],
uc
->
uc_mcontext
.
gregs
[
10
],
uc
->
uc_mcontext
.
gregs
[
15
],
uc
->
uc_mcontext
.
gregs
[
0
],
uc
->
uc_mcontext
.
gregs
[
1
],
uc
->
uc_mcontext
.
gregs
[
2
],
uc
->
uc_mcontext
.
gregs
[
3
],
uc
->
uc_mcontext
.
gregs
[
4
],
uc
->
uc_mcontext
.
gregs
[
5
],
uc
->
uc_mcontext
.
gregs
[
6
],
uc
->
uc_mcontext
.
gregs
[
7
],
uc
->
uc_mcontext
.
gregs
[
16
],
uc
->
uc_mcontext
.
gregs
[
17
],
uc
->
uc_mcontext
.
gregs
[
18
]
);
logStackContent
((
void
**
)
uc
->
uc_mcontext
.
gregs
[
15
]);
#else
redisLog
(
REDIS_WARNING
,
" Dumping of registers not supported for this OS/arch"
);
...
...
src/redis.h
浏览文件 @
eea8c7a4
...
...
@@ -20,6 +20,7 @@
#include <syslog.h>
#include <netinet/in.h>
#include <lua.h>
#include <signal.h>
#include "ae.h"
/* Event driven programming library */
#include "sds.h"
/* Dynamic safe strings */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录