5.5. Displaying Variables
Using the GNU debugger, you can display environment variables as well as your program variables during the program execution. You can control display of some variables so that the value of these variables is displayed with each command. Using this feature you can easily track changes taking place to these variables when you step through the program. You can also modify the program as well as environment variables. This section shows examples of how to carry out these tasks.
5.5.1. Displaying Program Variables
The following session uses the sum.c program that you already used earlier in this chapter. Go through the following gdb session and then see the discussion at the end of this session about actions taking place. ...
Get Linux Development Platform: Configuring, Using, and Maintaining a Complete Programming Environment, The now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.