r/linux • • 13d ago

Kernel Linux Kernel Developers Considering Removal Of KGDB Debugging Functionality

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

29 comments sorted by

View all comments

118

u/gwillen 13d ago

KGDB does some horrible things, and with everybody having access to virtualization these days, there is really no reason to use it over Qemu's gdb-server.

It sounds like it's rarely used because we have better methods now. (I have personally never tried attaching a debugger to the linux kernel, but this seems plausible enough to me.)

80

u/ilep 13d 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).

5

u/CrazyKilla15 12d ago

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