If you are copying multiple lines and want to paste to a running Gdb, here is one method:
Create a Gdb script file with your commands
print var1 print var2 finish next
Source it from Gdb
source ~/path/to/your/file.gdb