Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* GDB and Corefiles - When will this be fixed?
@ 1999-06-21  4:00 tesseract
  1999-06-22  4:00 ` Alex Rhomberg
  0 siblings, 1 reply; 2+ messages in thread
From: tesseract @ 1999-06-21  4:00 UTC (permalink / raw)




  It appears that GDB cannot read core files created on Alpha Linux.  Is
this a known problem that is being worked on, or am I just doing
something wrong?

GNU gdb 4.18
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-unknown-linux-gnu"...
Core was generated by `./mordor-505'.
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/libm.so.6.1...done.
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 ??


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: GDB and Corefiles - When will this be fixed?
  1999-06-21  4:00 GDB and Corefiles - When will this be fixed? tesseract
@ 1999-06-22  4:00 ` Alex Rhomberg
  0 siblings, 0 replies; 2+ messages in thread
From: Alex Rhomberg @ 1999-06-22  4:00 UTC (permalink / raw)
  To: tesseract

tesseract@my-deja.com wrote:
> 
>   It appears that GDB cannot read core files created on Alpha Linux.  Is
> this a known problem that is being worked on, or am I just doing
> something wrong?

In Alpha Linux 2.2, timeval in corefiles has two 64 bit values. This
breaks gdb which expects two ints. Glibc 2.1 also uses 16 byte timevals,
breaking the old ping.
The solution is to compile gdb under glibc-devel-2.1 (Not sure about
that, but gdb from RH 6.0 works).
If you want to stay glibc2.0 only, inserting

struct timeval {
  long tv_sec;
  long tv_usec;
};
#define _STRUCT_TIMEVAL

before all the includes in bfd/elfcode.h (in the gdb sources) worked for
me.

When gdb is changed, old (2.0) coredumps are no longer readable.

HTH
- Alex



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-06-22  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-06-21  4:00 GDB and Corefiles - When will this be fixed? tesseract
1999-06-22  4:00 ` Alex Rhomberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox