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.
There may be a simpler solution, but you might be able to put together something using GDB macros: http://www.ibm.com/developerworks/aix/library/au-gdb.html