GDB:lx-symbols未定义的命令 [英] GDB: lx-symbols undefined command

查看:537
本文介绍了GDB:lx-symbols未定义的命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遵循以下指南:
https:/ /www.kernel.org/doc/Documentation/gdb-kernel-debugging.txt



当我尝试使用以下命令加载模块符号时:
(gdb)lx-symbols

gdb表示该命令未定义。我如何将这些helper命令添加到gdb中?



gdb info:gdb-7.6.1-51.el7.x86-64在Centos 7.0上

解决方案

您必须获取最新的内核源代码(可能是4.0-rc4)或者将补丁。基本上看看你是否有 script / gdb / 目录,比如这个在你的内核源代码中。因为那是你获得这些脚本的地方。

然后你按照 gdb-kernel-debugging.txtrel =nofollow> https://www.kernel.org/doc/Documentation/gdb-kernel-debugging.txt


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) lx-symbols

gdb says that the command is undefined. How do I add these helper command to gdb?

gdb info: gdb-7.6.1-51.el7.x86-64 on Centos 7.0

解决方案

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/gdb-kernel-debugging.txt

这篇关于GDB:lx-symbols未定义的命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆