Burning Water

内核运行时若出现panic,可以根据EIT的值用GDB来定位出错代码: 例如我的出错代码的EIT的值为0x80cf7c00+0x6f,,可以在GDB下用b或l方式来定位代码。

yin123@yin:~/work/XXXXX$ gdb ./android/out/target/product/Your_Image_Name/obj/kernel/vmlinuxGNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2) 7.4-2012.04Copyright (C) 2012 Free Software Foundation, Inc.License GPLv3+: GNU GPL version 3 or later <.org/licenses/gpl.html>This is free software: you are free to change and redistribute it.There is NO WARRANTY, to the extent permitted by law. Type for details.This GDB was configured as “x86_64-linux-gnu”.For bug reporting instructions, please see:<.launchpad.net/gdb-linaro/>…Reading symbols from /home/yin123/work/XXXXX/android/out/target/product/Your_Image_Name/obj/kernel/vmlinux…done.(gdb) b *0x80cf7c6fBreakpoint 1 at 0x80cf7c6f: file /home/yin123/work/XXXXX/linux-3.10/drivers/cpufreq/yyyyy.c, line 123.(gdb) l *oc_thread+0x6f0x80cf7c6f is in oc_thread (/home/yin123/work/XXXXX/linux-3.10/drivers/cpufreq/yyyyy.c:123).warning: Source file is more recent than executable.sscanf(buf, get_data_from_sysfs(FILE_PATH, buf)sscanf(buf, if (tmp_runtime <= old_runtime)127{

愚者用肉体监视心灵,智者用心灵监视肉体

Burning Water

相关文章:

你感兴趣的文章:

标签云: