The debugger is a very powerful instrument at your disposal. It allows executing programs step by step and monitoring their state, including register values and memory contents. In this book we are using the debugger called gdb. This appendix is an introduction aimed to ease your first steps with it.
Debugging is a process of finding bugs and studying program behavior. In order to do that, we usually perform single steps observing a part of the program’s state that is of interest to us. We can also run the program until a certain condition is met or a position in code is reached. Such position ...