enable¶
Enable breakpoint commands.
enable [SUBCOMMAND [ARGS]]
Handle the enable breakpoint commands.
- enable breakpoints – Enable disabled breakpoints
- enable delete – Enable breakpoints and delete when hit
- enable display – Enable some expressions to be displayed when program stops
- enable pretty-printer – Enable the specified pretty-printer
Type “help enable” followed by target subcommand name for full documentation. Command name abbreviations are allowed if unambiguous.
enable breakpoints – Enable disabled breakpoints¶
Enable disabled breakpoints.
enable [breakpoints [BREAKPOINTID[ BREAKPOINTID..]]
- BREAKPOINTID is the id of a breakpoint
Give breakpoint numbers (separated by spaces) as arguments. This is used to cancel the effect of the “disable” command. May be abbreviated to simply “enable”. If no argument is specified, the command affects all the breakpoints.
enable delete – Enable breakpoints and delete when hit¶
Enable breakpoints and delete when hit.
enable delete [BREAKPOINTID[ BREAKPOINTID..]]
- BREAKPOINTID is the id of a breakpoint
Give breakpoint numbers (separated by spaces) as arguments. If a breakpoint is hit while enabled in this fashion, it is deleted. If no argument is specified, the command affects all the breakpoints.
enable display – Enable some expressions to be displayed when program stops¶
Enable some expressions to be displayed when program stops.
enable display [DISPLAYEXPID[ DISPLAYEXPID..]]
- DISPLAYEXPID is the id of a display expression
Arguments are the code numbers of the expressions to resume displaying. No argument means enable all automatic-display expressions. Do “info display” to see current list of code numbers.
enable pretty-printer – Enable the specified pretty-printer¶
Enable the specified pretty-printer.
enable pretty-printer [OBJ-REGEXP [NAME-REGEXP]]
- OBJ-REGEXP – is a regular expression matching the objects to examine. Objects are “global”, the program space’s file, and the objfiles within that program space.
- NAME-REGEXP – matches the name of the pretty-printer. Printer and sub-printer names are semi-column separated.
Examples:
- enable pretty-printer
- enable pretty-printer object.o
- enable pretty-printer .* myprinter;mysubprinter.*
- enable pretty-printer global myprinter;mysubprinter.*
- enable pretty-printer object.o myprinter;mysubprinter.*