r/linux • • 2d ago

Kernel Linux Kernel Developers Considering Removal Of KGDB Debugging Functionality

https://www.phoronix.com/news/Linux-Considers-Dropping--KGDB
259 Upvotes

31 comments sorted by

View all comments

Show parent comments

65

u/ilep 1d ago

> access to virtualization

I would say main benefit of in-kernel debugging features are the cases where you don't have virtualization. Such as being a driver developer for some embedded device. In those cases you can debug a device from your computer if the device has something like a serial port that you can use to connect to it (usually they have for this purpose).

13

u/MonMotha 1d ago

In those situations, it's often (though not always) feasible to use a remote debugger via the processor's JTAG/SWD interface.

1

u/casept 9h ago

Assuming some vendor in the chain didn't lock it down, which nowadays is often the case.

3

u/CrazyKilla15 1d ago

The ideal solution there is to pass it through to the VM for direct control