新建一个终端 $gdb-multiarch // 进入gdb (gdb)file user/_uthread // 符号表定位 (gdb)target remote localhost:26000 (gdb)b main 再建一个终端 $make qemu-gdb $uthread 就可以调试了