(0)rama:~/tmp% gdb bug
GDB is free software and you are welcome to 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.
GDB 4.16 (i586-unknown-linux), Copyright 1996 Free Software
Foundation, Inc...
(gdb) break main
Breakpoint 1 at 0x804840b: file bug.c, line 3.
(gdb) run
Starting program: /home/romano/tmp/bug
warning: Unable to find dynamic linker breakpoint function.
warning: GDB will be unable to debug shared library initializers
warning: and track explicitly loaded dynamic code.
Breakpoint 1, main () at bug.c:3
3 void (*f)(void) = x;
-- ----------------------------------------------------------------------- |Dr. Romano Giannetti | Electronic Engineer | From: address may be | |romano @ iet.unipi.it | University of Pisa | mangled to avoid spam.| -----------------------------------------------------------------------