gdb a.out
GNU gdb 5.3-22mdk (Mandrake Linux)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i586-mandrake-linux-gnu"...
(gdb) run
Starting program: /home/grochat/sources_free_pascal/exo_opengl/a.out
Program received signal SIGSEGV, Segmentation fault.
0x40161975 in glutInit () from /usr/X11R6/lib/libglut.so.3
(gdb) where
#0 0x40161975 in glutInit () from /usr/X11R6/lib/libglut.so.3
#1 0xbffff898 in ?? ()
#2 0x402be7f7 in __libc_start_main () from /lib/i686/libc.so.6
(gdb)
Partager