使用gdb加载内核符号表 arm-eabi-gdb out/target/product/msm8625/obj/KERNEL_OBJ/vmlinux
在内核的.config里面要打开 DEBUG_INFO和DEBUG_VM
定位故障代码 (gdb) l * qrd7627a_add_io_devices+0x100 0xc07cd05c is in qrd7627a_add_io_devices (/home/yejialong/GH700C/kernel/arch/arm/mach-msm/msm8x25/goso-msm7627a-io.c:1851). 1846 } else if (machine_is_msm8625q_skud() || machine_is_msm8625q_evbd()) {
1847 #ifndef CONFIG_CALA02 1848 platform_device_register(&pmic_mpp_leds_pdev_skud); 1849 #endif 1850 /* enable the skud flash and torch by gpio leds driver */ 1851 platform_device_register(&gpio_flash_skud); 1852
|