Skip to Content
Linux Kernel Debugging
book

Linux Kernel Debugging

by Kaiwan N. Billimoria
August 2022
Intermediate to advanced
638 pages
13h 58m
English
Packt Publishing
Content preview from Linux Kernel Debugging

Chapter 11: Using Kernel GDB (KGDB)

What if we could set breakpoints (even hardware break/watchpoints) on the kernel's or a module's code, single-stepping through it, viewing variables, and examining memory, as we easily do for application-space processes with the really well-known debugger GNU Debugger (GDB)? Well, that's exactly what Kernel GDB (KGDB) allows – it's a source-level debug tool for the Linux kernel (and modules)!

In this chapter, we're going to cover the following main topics:

  • Conceptually understanding how KGDB works
  • Setting up an ARM target system and kernel for KGDB
  • Debugging the kernel with KGDB
  • Debugging kernel modules with KGDB
  • [K]GDB – a few tips and tricks

Technical requirements

With a few additions (which follow), ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Linux Kernel Programming

Linux Kernel Programming

Kaiwan N. Billimoria
Understanding the Linux Kernel, 3rd Edition

Understanding the Linux Kernel, 3rd Edition

Daniel P. Bovet, Marco Cesati

Publisher Resources

ISBN: 9781801075039Supplemental Content