Follow the instructions from the practical session page: https://github.com/chaphe/se-tools
Tutorial from A GDB Tutorial with Examples
Tutorial from Using Valgrind to Find Memory Leaks and Invalid Memory Use
Tutorial from [A Simple Make Tutorial] (http://mrbook.org/blog/tutorials/make/)
A list of programs demonstrating the different kind of bus are available in the exercises directory.
Try the different debugging tools on every example to see how they behave and find the bugs.
Run the following command to download all the exercises:
git clone https://github.com/chaphe/se-tools.git se-tools
-
You can compile each program manually using
gccoricc. You are encouraged to try both to see how differently they behave. Example:gcc program.c -o program. Add any additional parameter you might need. -
Some program required additional options to be compiled. They are indicated in comment at the beginning of each source file.