|
# gdb a.out GNU gdb 6.7.1-debian Copyright (C) 2007 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> 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 "i486-linux-gnu"... Using host libthread_db library "/lib/i686/cmov/libthread_db.so.1". (gdb) r Starting program: /test/a.out
Program received signal SIGSEGV, Segmentation fault. 0xb7e92e67 in _IO_default_xsputn () from /lib/i686/cmov/libc.so.6 (gdb) b main Breakpoint 1 at 0x80483e2 (gdb) n Single stepping until exit from function _IO_default_xsputn, which has no line number information.
Program terminated with signal SIGSEGV, Segmentation fault. The program no longer exists. (gdb) n The program is not being run. (gdb) q
|