Sometimes,I would need to get the gdb output.In the shell,I could use script command to extract text.Whats the equivalent in gdb?
ps: I tried shell script,but after hitted return, I was in the shell and lost the shell prompt and could not run command any more,moreover I could not use ctrl+c or ctrl+\ to exit.I'll need to force kill the /bin/login tty2 to exit!
thanks.