I want to execute the very simple command
print var1, var2, var3, var4
in gdb to examine the values of the vars from time to time.
You can simply do this
print {var1,var2,var3,var4}
This will do the job.