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

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

Post by Lindsay Jac » Wed, 14 Oct 1998 04:00:00



We have been having problems recently getting a copy of gdb 4.17 to work
under solaris 2.4 on a sparc20.  Using gcc 2.7.2.3, which seems to compile
correctly, and copies of gdb both built from source and also a prebuilt
binary downloaded from Sunfreeware.com, I am unable to read any core file.  
The message I always get is:

core: not in executable format: File format not recognized

I am beginning to think that the problem lies not with the build of gdb,
but more with the configuration of gcc.  Can anyone help me?  I have run
out of ideas about the cause of this.....

thanks

Lindsay Jack


Dept. of Elec. and Elec. Eng.,  tel : +44 (0)141 548 2205 (direct line)  
University of Strathclyde,      fax : +44 (0)141 552 2487 Glasgow G1 1XQ,
Scotland, U.K.

 
 
 

1. libc_psr.so.1 not in executable format, using GDB under Solaris?

When I try to use GNU 'gdb' debugger on code produced by g++ under Solaris,
I get the following error message, when I run the program:

  "/usr/platform/SUNW,Ultra-2/lib/libc_psr.so.1": not in executable format:
  File format not recognized.

The 'file' command shows the following:

  > file /usr/platform/SUNW,Ultra-2/lib/libc_psr.so.1

  /usr/platform/SUNW,Ultra-2/lib/libc_psr.so.1:   ELF 32-bit MSB dynamic lib
  SPARC32PLUS Version 1, V8+ Required, UltraSPARC1 Extensions Required,
  dynamically linked, not stripped

ldd shows that my program uses the following libraries:

   libm.so.1 =>     /opt/SUNWspro/lib/libm.so.1
   libc.so.1 =>     /usr/lib/libc.so.1
   libdl.so.1 =>    /usr/lib/libdl.so.1

The program is in C++ and the machine is a SPARC Ultra-2.

Any help would be appreciated.


Thanks

Jon Brumfitt

2. setup over ftp on a notebook

3. ld:/usr/lib/libdbm.a: file format not recognized; !!!!

4. DNS

5. ar: File format not recognized?

6. Xerox printer XJ4c

7. Help: GDB failing with kernel 2: - core file in wrong format?

8. kernel_thread() & thread starting

9. gdb and Core file format

10. Help: GDB failing with kernel 2: - core file in wrong format?

11. gdb format error in linux core files

12. gdb: core file in wrong format

13. Convert vc file format to Lotus 1-2-3 file format?