gdb with gcc and core files problems

gdb with gcc and core files problems

Post by Chris Jens » Mon, 14 Sep 1998 04:00:00



I am using:
gdb 4.15.1 (i486-slackware-linux)
gcc 2.7.2 (i486)

I can run my app from within gdb and debug normally.  Then I run my app
from the command line and it crashes, generating a core file.  When I try
and debug the crash using:
gdb my_app core
it gives the error:
Couldn't fetch registers from core file: File in wrong format

I have tried compiling with -g, -ggdb, -g -ggdb all to no avail.  I would
greatly appreciate help getting my core files to work.  If you need more
information please e-mail or post.


 
 
 

gdb with gcc and core files problems

Post by Stan Sheb » Mon, 14 Sep 1998 04:00:00



> I am using:
> gdb 4.15.1 (i486-slackware-linux)
> gcc 2.7.2 (i486)

> I can run my app from within gdb and debug normally.  Then I run my app
> from the command line and it crashes, generating a core file.  When I try
> and debug the crash using:
> gdb my_app core
> it gives the error:
> Couldn't fetch registers from core file: File in wrong format

GDB 4.15 is from some years ago.  This error message is symptomatic of
major version skew.  Try 4.17, available almost everywhere...

                                                        Stan Shebs
                                                        Cygnus Solutions


 
 
 

gdb with gcc and core files problems

Post by Chris Jens » Tue, 15 Sep 1998 04:00:00




: > I am using:
: > gdb 4.15.1 (i486-slackware-linux)
: > gcc 2.7.2 (i486)
: >
: GDB 4.15 is from some years ago.  This error message is symptomatic of
: major version skew.  Try 4.17, available almost everywhere...

Thank you! got it from sunsite, compiled and run from a local dir...works
like a champ.  Now if I can get my admin to install it in /usr/bin...

Chris J.

 
 
 

1. AIX 5.1 GCC G++ core file problems with GDB

This is with gdb 5.0 for rs6000-ibm-aix5.1. GDB seems to refuse
to recognize AIX GCC/G++ 2.9-aix51-020209 generated core
files. Found a work around using the older 4.3 core file defines.
This will allow gdb to load and examine the cores. Also it will debug
the main thread, but not allow me to access any other thread in the
core dump. Anyone seen this problem ?

Cheers
Randy Petersen
Interwoven
Sunnyvale Ca.

2. ftape

3. problems with gcc 2.7.2 , gdb 2.16 Solaris 2.5 and core file

4. Which backup Media (DAT)?

5. gdb problem (gdb 4.8, gcc 2.6.2)

6. Direct (Null) Serial TCP/IP

7. gdb problem with core file

8. SetUp Problem (kernel panic: freelist corrupted)

9. gdb: core file not in executable format: File format not recognized

10. GDB dumps core when given core?

11. GDB can't read core file

12. gdb won't recognize core dump files

13. gdb can't read core files