远程“g"数据包回复太长 [英] Remote 'g' packet reply is too long

查看:22
本文介绍了远程“g"数据包回复太长的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 kvm vm 调试 Linux 内核.我收到一条错误消息远程 'g' 数据包回复太长".我的主机是 64 位的,我的 vm 也是.

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.

我的步骤:

  1. 使用自定义 -kernel、-initrd 和 -append 选项启动 VM.
  2. 启动 gdb
  3. 执行设置架构 i386:x86-64:intel"
  4. 执行add-symbol-file linux-3.0/vmlinux"
  5. 执行show arch"以验证其仍然是i386:x86-64:intel"
  6. 执行目标远程 localhost:1234"
  7. 执行继续"
  8. 按 Ctrl+C,我收到上述消息.

有人遇到过这个问题吗?

Has anyone faced this problem?

推荐答案

gdb 不适用于在运行时在指令集之间切换的 cpu.等待内核离开 early boot 后再连接,不要使用 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屋!

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