There's more...

A GNU debugger is pre-installed in this case, but it may not be in your real target system. If it is Debian-based, you can install it by running the following command:

# apt install gdb gdb-multiarch

In other Linux-based systems, different commands to install GDB are required. In many cases, you will need to build it from source code and install it manually, similarly to the hello application we have built and tested as part of the recipes in this chapter.

In this recipe, we only learned how to run an application using GDB, which is a complex tool with lots of commands, techniques, and best practices. We will discuss some of them in the Chapter 5Debugging, Logging, and Profiling.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.44.23