内核运行时若出现panic,可以根据EIT的值用GDB来定位出错代码:
例如我的出错代码的EIT的值为0x80cf7c00+0x6f,可以在GDB下用b或l方式来定位代码。
yin123@yin:~/work/XXXXX$ gdb ./android/out/target/product/Your_Image_Name/obj/kernel/vmlinux
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2) 7.4-2012.04
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRA