For example, this is what a stack frame display looks like with set print address on: Can anyone tell me which command is used to display the source code when debugging through gdb Would be of great help. This page explains the display command The display command enables automatic displaying of certain expressions each time gdb stops at a breakpoint or after a step. Gdb provides the following ways to control how arrays, structures, and symbols are printed
These settings are useful for debugging programs in any language: Display the number of elements of a large array that gdb will print If the number is 0, then the printing is unlimited If gdb is printing a large array, it stops printing after it has printed the number of elements set by the set print elements command This limit also applies to the display of strings Setting the number of elements to zero means that the printing is unlimited.
Does anyone know how to save gdb settings (like set print pretty on or set print elements 0, both from here) I don't want to set my configuration every time that i will use gdb :/ i searched in
WATCH