I was remote debugging a loadable kernel module, with
kgdb enabled on target and
gdb-multiarch on a host,
kdb wasn’t enabled though.
The flow is like this:
- The target was booted with kgdb driver registered, after bootup, cmd
echo g >/proc/sysrq-triggerwas issued and target rendered control and got halted.
- Ran gdb from host, a breakpoint for the module was set then control was returned back to target.
- Ran application on target which led the module ran and hit the breakpoint, target got halted and gave control to host gdb.
- Checking on the host gdb with some debugging info, however the target got rebooted by itself after 30sec to 1min from the point it got halted.
Anyone saw the same thing during remote debugging? I was expecting the target could get hang in there until host gdb gives back control though. Looks like something else got timed out and made kernel rebooted? Any idea about the cause?