2.1.64: debugging is broken

Steffen Zahn (zahn@berlin.snafu.de)
Sat, 15 Nov 1997 12:28:18 +0100


Hello,

it seems that debugging programs with gdb does no longer work.

Linux 2.1.64 UP, gcc 2.7.2.1, gdb 4.14.

Regards
Steffen

int main()
{
int i;
i=9;
return i;
}

sz@zahn:~/c $ gcc -g x.c
sz@zahn:~/c $ ./a.out
sz@zahn:~/c $ gdb ./a.out
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.14 (i486-linux), Copyright 1995 Free Software Foundation, Inc...
(gdb) run
Starting program: /export/home/sz/c/./a.out
warning: stopped at unknown breakpoint while handling shared libraries

Program received signal SIGSEGV, Segmentation fault.
0x804835f in __setfpucw ()
(gdb) q
The program is running. Quit anyway (and kill it)? (y or n) y
sz@zahn:~/c $ gcc -g -static x.c
sz@zahn:~/c $ gdb ./a.out
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.14 (i486-linux), Copyright 1995 Free Software Foundation, Inc...
(gdb) run
Starting program: /export/home/sz/c/./a.out
warning: stopped at unknown breakpoint while handling shared libraries

Program received signal SIGSEGV, Segmentation fault.
0x804808f in _init ()
(gdb) q
The program is running. Quit anyway (and kill it)? (y or n) y

-- 
home email:  user@domain where domain=berlin.snafu.de, user=zahn
Use of my address for unsolicited commercial advertising is forbidden.
           "We had to destroy the net in order to save it."
                 "Where do you want to crash today?"