远程 'g' 数据包回复太长 [英] Remote 'g' packet reply is too long
本文介绍了远程 'g' 数据包回复太长的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用 kvm vm 调试 Linux 内核.我收到一条错误消息远程‘g’数据包回复太长".我的主机是 64 位的,我的虚拟机也是.
I am trying to debug Linux kernel with kvm vm. I am getting an error message "Remote 'g' packet reply is too long". My host is 64-bit and so is my vm.
我的步骤:
- 使用自定义 -kernel、-initrd 和 -append 选项启动 VM.
- 启动 gdb
- 执行设置架构 i386:x86-64:intel"
- 执行add-symbol-file linux-3.0/vmlinux"
- 执行show arch"以验证其仍然是i386:x86-64:intel"
- 执行目标远程本地主机:1234"
- 执行继续"
- 按 Ctrl+C,我收到上述消息.
有人遇到过这个问题吗?
Has anyone faced this problem?
推荐答案
gdb 不适用于在运行时在指令集之间切换的 CPU.在连接之前等待内核离开早期引导,并且不要使用 qemu 的 -S
标志.
gdb doesn't work well against a cpu that switches between instruction sets at runtime. Wait for the kernel to leave early boot before connecting, and don't use qemu's -S
flag.
这篇关于远程 'g' 数据包回复太长的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文