I'm debugging the Linux kernel through GDB + KGDB + two virtual machines + serial ports.
If we use GDB to debug a normal program, we can just press Ctrl+C to break the execution of the program.
However, when I connect GDB to a remote KGDB stub, I cannot break the remote machine anyway, except that I use the following command on the REMOTE machine:
echo g > /proc/sysrq-trigger
How to break the REMOTE debugged Linux kernel from the LOCAL machine?