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

gdb not recognizing core file format



Hi,

I'm trying to use gdb to get a stack trace on a program
that is dumping core without success.  Is this a known
problem or am I doing something wrong?  The program
is compiled with g++ using -g.

Here is the output from file and gdb:

core: ELF 32-bit MSB core file, (signal 11), SPARC, version 1 (SYSV),
from 'test'

Script started on Tue Nov 27 20:05:45 2001
reif@moe:~/flt$ !gd
gdb test core
GNU gdb 5.0.90-cvs (MI_OUT)
Copyright 2001 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 "sparc-linux"...

warning: "/home/reif/flt/core": no core file handler recognizes format,
using default
Core was generated by `./test ../testfiles/0.flt'.
Program terminated with signal 11, Segmentation fault.
Couldn't read input and local registers from core file
Reading symbols from /usr/lib/libstdc++-libc6.2-2.so.3...done.
Loaded symbols for /usr/lib/libstdc++-libc6.2-2.so.3
Reading symbols from /lib/libm.so.6...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Couldn't read input and local registers from core file
#0  0x00000004 in ?? ()
(gdb) bt
#0  0x00000004 in ?? ()
Cannot access memory at address 0x3b
(gdb) quit
reif@moe:~/flt$ exit
exit

Script done on Tue Nov 27 20:06:09 2001

Thanks,

Bob.




Reply to: