the display command
Originally written by
- To have a variable displayed every time you get the gdb prompt,
- 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.