最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

Linux加載vmlinux調(diào)試

 更新時間:2019年02月01日 10:42:41   作者:碼農(nóng)-嵌入式Linux  
今天小編就為大家分享一篇關(guān)于Linux加載vmlinux調(diào)試,小編覺得內(nèi)容挺不錯的,現(xiàn)在分享給大家,具有很好的參考價值,需要的朋友一起跟隨小編來看看吧

使用gdb加載內(nèi)核符號表

arm-eabi-gdb out/target/product/msm8625/obj/KERNEL_OBJ/vmlinux

在內(nèi)核的.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      } else if (machine_is_msm8625q_skue()) {
1853           /* enable the skue flashlight by gpio leds driver */
1854          platform_device_register(&gpio_flash_skue);
1855      }

下面是mtk平臺加載的方法,但是不管哪個平臺都是差不多的,道理都是一樣的。

weiqifa@weiqifa-Inspiron-3847:~/weiqifa/tm100$ ./prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-gdb ./out/target/product/tm100/obj/KERNEL_OBJ/vmlinux
GNU gdb (GDB) 7.3.1-gg2
Copyright (C) 2011 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 WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=x86_64-linux-gnu --target=arm-linux-android".
For bug reporting instructions, please see:
<http://source.android.com/source/report-bugs.html>...
Reading symbols from /home/weiqifa/weiqifa/tm100/out/target/product/tm100/obj/KERNEL_OBJ/vmlinux...done.
(gdb)

rockchip rk3399調(diào)試vmlinux

./prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-addr2line -f -e kernel/vmlinux
weiqifa@dev:~/rk3399_7in1$ ./prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-addr2line -f -e kernel/vmlinux ffffff8008459f3c
rk_iommu_domain_free
/data/weiqifa/rk3399_7in1/kernel/drivers/iommu/rockchip-iommu.c:1005 (discriminator 2)
weiqifa@dev:~/rk3399_7in1$

RK平臺tombstone調(diào)試

./prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi-addr2line -e ./out/target/product/rk3399_mid/symbols/system/lib/libspeexresampler.so 0x00002d54
/proc/self/cwd/external/speex/libspeex/resample.c:376

arm-eabi-gdb  先用命令找到這個東西,然后在去找去找到vmlinux  還有就是我arm-eabi-4.7/ 這個版本才可以用,這個是我試出來的。

總結(jié)

以上就是這篇文章的全部內(nèi)容了,希望本文的內(nèi)容對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,謝謝大家對腳本之家的支持。如果你想了解更多相關(guān)內(nèi)容請查看下面相關(guān)鏈接

相關(guān)文章

最新評論

湟源县| 韶关市| 中方县| 潞西市| 新密市| 柘荣县| 蒙自县| 新巴尔虎左旗| 武汉市| 梓潼县| 东安县| 齐齐哈尔市| 武城县| 大名县| 宜春市| 富裕县| 措美县| 兰溪市| 仁化县| 广饶县| 宜宾市| 达孜县| 定南县| 上高县| 鄂州市| 芒康县| 芷江| 肃南| 新野县| 玉田县| 舞阳县| 衢州市| 巫山县| 南和县| 道真| 南投县| 阜新| 西乌珠穆沁旗| 汶上县| 荆门市| 万源市|