go@storhaugen:~/src/luit$ gdb --args luit ssh test@localhost GNU gdb (GDB) 7.0.1-ubuntu Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /home/go/src/luit/luit...done. (gdb) run Starting program: /home/go/src/luit/luit ssh test@localhost Warning: couldn't find charset data for locale en_US.UTF-8; using ISO 8859-1. test@localhost's password: Linux storhaugen 2.6.32-12-generic #16-Ubuntu SMP Thu Jan 28 07:47:05 UTC 2010 x86_64 For official documentation, please visit: * http://help.ubuntu.com/ 93 packages can be updated. 0 updates are security updates. Last login: Tue Feb 2 13:50:35 2010 from localhost test@storhaugen:~$ exit logout Connection to localhost closed. Program received signal SIGTERM, Terminated. 0x00007ffff73e0b88 in poll () from /lib/libc.so.6 (gdb) backtrace full #0 0x00007ffff73e0b88 in poll () from /lib/libc.so.6 No symbol table info available. #1 0x00000000004062d9 in waitForInput (fd1=, fd2=) at sys.c:100 pfd = {{fd = 0, events = 1, revents = 0}, {fd = 5, events = 1, revents = 16}} ret = rc = #2 0x0000000000403905 in parent (pid=, pty=5) at luit.c:573 buf = "\r\nlogout\r\nConnection to localhost closed.\r\r\nu SMP Thu Jan 28 07:47:05 UTC 2010 x86_64\r\n\r\nFor official documentation, please visit:\r\n * http://help.ubuntu.com/\r\n\r\n93 packages can be updated.\r\n0 updates"... rc = 0 #3 0x0000000000404052 in condom (argc=, argv=0x6165f0) at luit.c:518 pty = 5 line = 0x618760 "\033]a" val = path = child_argv = 0x6165f0 rc = #4 main (argc=, argv=0x6165f0) at luit.c:407 rc = i = l = (gdb) quit A debugging session is active. Inferior 1 [process 10234] will be killed. Quit anyway? (y or n) y go@storhaugen:~/src/luit$