ne as the command, e.g.: compile print i Alternatively, you can type a multiline expression by invoking this command with no argument. GDB will then prompt for the expression interactively; type a line containing "end" to indicate the end of the expression. EXPR may be preceded with /FMT, where FMT is a format letter but no count or size letter (see "x" command).