[Linux服务器] Linux加载vmlinux调试

1213 0
Honkers 2025-3-10 23:12:34 来自手机 | 显示全部楼层 |阅读模式

使用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        

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

中国红客联盟公众号

联系站长QQ:5520533

admin@chnhonker.com
Copyright © 2001-2026 Discuz Team. Powered by Discuz! X3.5 ( 粤ICP备13060014号 )|天天打卡 本站已运行