the display command
- To have a variable displayed every time you get the gdb prompt,
'display <variable>
- This will stop working as soon as the variable moves out of scope.
- Use 'display' to get a list of auto-displayed variables.
- Use 'undisplay <number>' to stop the given auto-display.
- Use 'undisplay' to stop all auto-displays.
- Note: you can 'display <expression>', just like with print.
Originally written by
guy keren