I want to use GNU DDD (gdb graphic shell) to debug Linux kernel, that is running (in some distro) inside qemu.
I have vmlinux image outside of Qemu, and launch Qemu with -s -S
, so it acts like gdbserver (stops at start and waits for debuging commands).
Now, how to connect DDD to that gdbserver using local vmlinux image?
Should I just open image and tell gdb 'target remote'?
You basically answered your own question - yes, use target remote gdb command in ddd to connect:
$ gdb qemuKernelFile
(gdb) target remote localhost:1234