网上搜到的很多关于qemu debug的文章很多,也很详细。
我遇到问题是不支持架构
(gdb) target remote localhost:26000
Remote debugging using localhost:26000
warning: Architecture rejected target-supplied description
warning: No executable has been specified and target does not support
determining executable automatically. Try using the "file" command.
Truncated register 37 in remote 'g' packet
- 先指定断点,然后连接
- 首先
set architecture i386:x86-64
,然后remote localhost