To issue a command to gdb without affecting certain aspects of the state which is seen by users, prefix it with ‘server ’. This means that this command will not affect the command history, nor will it affect gdb's notion of which command to repeat if <RET> is pressed on a line by itself.
The server prefix does not affect the recording of values into the value
history; to print a value without recording it into the value history,
use the output
command instead of the print
command.