定位Oops的具体代码行

来源:互联网 发布:macbook软件没法删除 编辑:程序博客网 时间:2024/05/16 09:21

Reference: http://blog.csdn.net/unbutun/article/details/4730227


[Not clean up]

1: objdump xxx.ko -D > xxx_dump

2: find the code line in the dump file

e.g.: 

0>[  111.318529] EIP: [<dfe9c176>] XXX_set_fmt+0x5e6/0x13b0 [XXX] SS:ESP 0068:d1b77b6c
<0>[  111.318570] CR2: 0000000000000000
<4>[  111.318582] ---[ end trace 41dcbe3e377ff615 ]---

3: using gdb

$gdb xxx.o

$ b *0x123456 //code line


gdb will print up the source file line


原创粉丝点击