Ha hosszú a parancs kimenete:
(gdb) set logging on
Copying output to gdb.txt.(gdb) info sh # vagy amit gondolunk
(gdb) set logging off