网站首页 美食营养 游戏数码 手工爱好 生活家居 健康养生 运动户外 职场理财 情感交际 母婴教育 时尚美容

gdb调试64位程序错误

时间:2024-11-01 17:02:24

1、最近在搭建Eclipse+Qemu陴鲰芹茯+Gdb来调试Kernel时,我将Kernel配置为64位的,这在gdb7.6.1会在remote连接时出现如下错误:

2、Remote 'g'packet reply is too long: d85f8780ffffffff88……

3、省略号后面还有一长串16进制数,解决方法是在连接(例:(gdb) target remote localhost:1234)上gdb server后设置架构:

4、(gdb) set architecture i386:x86-64:intel

5、该设置的参数可通过如下命令查看:

6、(gdb) set architecture

7、上述命令执行后会返回如下内容:

8、Requires an argument. Valid arguments are i386, i386:x86-64, i386:x64幻腾寂埒-32, i8086, i386:intel, i386:x86-64:intel, i386:x64-32:intel, auto.

9、看到可选的参数了吧。

© 2025 小知经验
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com