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、看到可选的参数了吧。