qemu-system-i386 -s -S boot.bin 1. -s选项是-gdb tcp::1234的简写。这将在localhost:1234端口上打开一个gdbserver,并等待gdb连接。 -S选项相当于将断点打在CPU加电后要执行的第一条指令处,这通常是BIOS程序的第一条指令。 3 开始远程调试 打开另一个终端,启动gdb: gdb 1. 然后,在gdb中,使用下列命令...
点击工具栏中的绿色小虫子右边的箭头,选择Debug Configurations-->C/C++ Remote Application(双击)-->proiect选择你刚创建的project / C/C++ Application选择你的linux-4.4.19路径下的vmlinux。 / 选中 Disable auto build 点击select other换一个启动器 选择 GDB(DSF)Manual Remote Debugging... 点击debugger页签 ...
/ 选中 Disable auto build 点击select other换一个启动器 选择 GDB(DSF)Manual Remote Debugging... 点击debugger页签 stop on startup at 填写start_kernel,点击connection子页签,type选择TCP,hostname填写localhost,prort number填写1234 。此处标志为待填13.1。 点击apply close即可。 S11. 修复GDB问题 后面步骤...