GDB: lx-symbols undefined command

后端 未结 2 1831
北恋
北恋 2021-01-12 22:00

I am following the guide below: https://www.kernel.org/doc/Documentation/gdb-kernel-debugging.txt

When I try to load the module symbols using the command below: (gdb

相关标签:
2条回答
  • 2021-01-12 22:16

    add-auto-load-safe-path

    Usage:

    gdb -ex add-auto-load-safe-path /path/to/linux/kernel/source/root
    

    Now the GDB scripts are automatically loaded, and lx-symbols is available.

    Here is a minimal fully automated Buildroot + QEMU example with detailed instructions.

    0 讨论(0)
  • 2021-01-12 22:25

    You have to get the latest kernel sources (may be 4.0-rc4) or backport the patch. Basically see if you have script/gdb/ directory like this in your kernel sources. Because that is where you get these scripts.

    Then you follow the steps mentioned in https://www.kernel.org/doc/Documentation/dev-tools/gdb-kernel-debugging.rst

    0 讨论(0)
提交回复
热议问题