[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

gdb - unknown file format



  Is it just me, or is the current gdb build really dysfunctional?

%flood[12]~> cat > love.c                                                 15:30
void main() { *(long *)0 = 0; }
%flood[13]~> make love                                                    15:30
gcc -O2 -pipe    love.c   -o love
love.c: In function `main':
love.c:1: warning: return type of `main' is not `int'
%flood[14]~> ./love                                                       15:30
zsh: segmentation fault (core dumped)  ./love
%flood[15]~> gdb love core                                                15:31
GNU gdb 4.17.m68k.objc.threads.hwwp.fpu.gnat
Copyright 1998 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 "alpha-debian-linux-gnu"...
Core was generated by `./love'.
Couldn't fetch registers from core file: File in wrong format
Couldn't fetch register set 2 from core file: File in wrong format
Reading symbols from /lib/libc.so.6.1...done.
Reading symbols from /lib/ld-linux.so.2...done.
Couldn't fetch registers from core file: File in wrong format
Couldn't fetch register set 2 from core file: File in wrong format
#0  0x0 in ?? ()
(gdb)

m.


Reply to: