Qemu 调试内核 出错 Remote 'g' packet reply is too long:

在使用Qemu调试内核时遇到'Remote 'g' packet reply is too long'的错误。尝试了不同版本的Qemu和gdb未果。文章提到-QEMU的'-S'参数可能导致问题,但不采用此方法。最终通过修改gdb源码解决了问题,主要修改了处理buf_len超过限制时的代码。Qemu版本为2.1.2,gdb为7.8,内核为2.6.31.4。
摘要由CSDN通过智能技术生成

按照博客http://blog.csdn.net/sunnybeike/article/details/6648815Qemu 调试内核,

qemu的启动方式如下,

qemu-system-x86_64 -kernel bzImage -hda linux-0.2.img -append "root=/dev/hda" -S


在弹出的qemu中,按住Ctrl+Alt+2,进入Qemu控制端,然后输入 gdbserver

然后,另起一个端口,输入

gdb vmlinux

 出现如下错误:

Remote 'g' packet reply is too long: 28636081ffffffff6cca69010000000000fc090000000000685f5481fffffffff9774a81ffffffff36636081ffffffffb85f5481ffffffffa05f5481ffffffff00800001000000000000000000000000985f5481ffffffffd03101000000000000000000000000000000000000000000000000000000000000000000000000006a925d81ffffffff4600000010000000180000001800000018000000180000001800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007f0300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值