3 ms·
Yes, GDB might not be that great for application developers. But GDB is a mighty powerful tool that you can use to debug in various environments. You can use G
by exDM69 14y ago
Yes, GDB might not be that great for application developers. But GDB is a mighty powerful tool that you can use to debug in various environments.
You can use GDB with a regular user space application or attach it to a dead process with a core file. Or you can plug it to QEMU to debug a bootloader or a kernel image in emulation. Or you can use remote debugging over the network or over the serial port. It's possible to add GDB stubs and run your custom kernel image running on bare metal, debugging via serial connection. You can debug a program running on a microcontroller like Arduino. You can even use it to debug Windows applications remotely from the comfort of your Linux desktop. In my day job and my hacking hobbies I have used all of the ways of using GDB I mentioned in this paragraph.
So yeah, GDB is not a pretty source level debugger like Visual Studio or Eclipse, the versatility comes at a price.
LLVM Project's LLDB debugger may make application debugging less painful in the future.