Рет қаралды 315,093
We demonstrate how to use GDB to debug a C program.
Files for this demonstration are available here: github.com/cbourke/ComputerScienceI/tree/master/hacks/hack-debugging
0:00 GDB
0:15 Introduction
0:48 Getting started
1:21 GDB commands
1:35 Demonstration
2:32 Infinite loop
6:10 Infinite loop 2
10:10 Infinite loop 3
11:56 Incorrect sum
16:18 Invalid CLAs
19:10 Seg fault
21:09 Seg fault 2