【问题标题】:Linux Kernel Remote Debugging using KGDB : GDB does not recognize functions?Linux Kernel Remote Debugging using KGDB: GDB 不识别函数?
【发布时间】:2014-11-17 00:44:22
【问题描述】:

我用调试信息和 KGDB 交叉编译了 arm 的内核源代码。

当我在主机中运行 gdb 时:

$ arm-linux-gnueabihf-gdb vmlinux

...

Reading symbols from vmlinux... done.

(gdb) target remote /dev/ttyUSB0

Remote debugging unsing /dev/ttyUSB0

**0xc0080480 in ?? ()**

当我尝试在函数中设置断点时,GDB 说 它无法识别该功能。例如:

(gdb) b panic
**Function "panic" not defined**

请帮忙!!

【问题讨论】:

    标签: linux debugging gdb kernel kgdb


    【解决方案1】:

    您是否使用了正确的 vmlinux 文件?检查一下,您可以在 vmlinux 文件上使用readelf -s 命令来检查您的符号是否已在其中定义。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-21
      • 2022-07-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-05-12
      • 2018-08-24
      相关资源
      最近更新 更多