Skip to Main Content
Mastering Embedded Linux Programming - Third Edition
book

Mastering Embedded Linux Programming - Third Edition

by Frank Vasquez, Chris Simmonds
May 2021
Intermediate to advanced content levelIntermediate to advanced
758 pages
16h 17m
English
Packt Publishing
Content preview from Mastering Embedded Linux Programming - Third Edition

Chapter 19: Debugging with GDB

Bugs happen. Identifying and fixing them is part of the development process. There are many different techniques for finding and characterizing program defects, including static and dynamic analysis, code review, tracing, profiling, and interactive debugging. I will look at tracers and profilers in the next chapter, but here I want to concentrate on the traditional approach of watching code execution through a debugger, which in our case is the GNU Project Debugger (GDB). GDB is a powerful and flexible tool. You can use it to debug applications, examine the postmortem files (core files) that are created after a program crash, and even step through kernel code.

In this chapter, we will cover the following topics: ...

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

Mastering Embedded Linux Programming - Second Edition

Mastering Embedded Linux Programming - Second Edition

Chris Simmonds
Understanding the Linux Kernel, 3rd Edition

Understanding the Linux Kernel, 3rd Edition

Daniel P. Bovet, Marco Cesati

Publisher Resources

ISBN: 9781789530384Supplemental Content