Debugging Embedded Devices Using GDB
Offered By: Linux Foundation via YouTube
Course Description
Overview
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
Tags
Related Courses
Arm assembly for HackersUdemy Advanced Debugging with GDB
Write your own Operating System via YouTube Hackaday Supercon 2022 - Charles Lohr - Assembly in 2022 - Yes! We Still Use it and Here's Why
Hackaday via YouTube Raspberry Pi Pico and RP2040 - The Deep Dive
Hackaday via YouTube ARM Assembly and Shellcode Basics - Workshop
44CON Information Security Conference via YouTube