- 論壇徽章:
- 0
|
hi,
我嘗試用qemu/kgdb調(diào)試內(nèi)核。
1)開發(fā)機(jī)上編譯內(nèi)核
1)用qemu裝了一臺(tái)虛擬機(jī),并安裝新編譯的內(nèi)核
3)在一終端使用qemu-system-x86_64 -hda xxx.img -m 1024 -boot c -serial tcp:localhost:1234,server命令啟動(dòng)虛擬機(jī),終端輸出如下:
QEMU waiting for connection on: tcp:127.0.0.1:1234,server
4)在另一終端,進(jìn)入gdb,使用target remote localhost:1234命令連接qemu虛擬機(jī),終端輸出如下:
(gdb) target remote localhost:1234
Remote debugging using localhost:1234
Ignoring packet error, continuing...
warning: unrecognized item "timeout" in "qSupported" response
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Malformed response to offset query, timeout
(gdb)
同時(shí)qemu虛擬機(jī)進(jìn)入grub界面
請問我漏了什么么? |
|