Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Linux Foundation

Debugging Embedded Devices Using GDB

Linux Foundation via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Learn how to effectively debug embedded devices using GDB in this comprehensive tutorial presented by Chris Simmonds from 2net Ltd. Explore the intricacies of native and cross-compilation, discover how to obtain and utilize toolchains, and gain hands-on experience with the Raspberry Pi 3B. Delve into remote debugging techniques, master the art of setting breakpoints and controlling execution, and learn to display and manipulate variables. Understand the power of GDB command files and custom commands, and explore graphical front-ends like DDD. Gain insights into advanced debugging concepts such as watchpoints, stack frames, and backtracing. By the end of this 1 hour and 36 minute session, acquire the skills necessary to efficiently troubleshoot and optimize embedded systems using GDB.

Syllabus

Intro
License
Objectives
Resources
The Raspberry Pi 3B
Native vs cross compiling
Getting a toolchain
Toolchain prefix for 32-bit ARM toolchains
Toolchain sysroot
The Yocto Project SDK
Finding the sysroot of a Yocto Project tool
The tools
Demo time (1)
Preparing to debug 1/2
Remote debugging
Setting sysroot
Command-line debugging Development host
Breakpoints Add a breakpoint
Controlling execution
Displaying and changing variables
GDB command files
Defining a new command
DDD: Data Display Debugger
Other front ends for GDB
watchpoints Break when a variable changes
stack frames and back trace Each function has a stack frame which contains the local (auto) variables

Taught by

Linux Foundation

Reviews

Start your review of Debugging Embedded Devices Using GDB

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.