From: Alex Rhomberg <rhomberg@ife.ee.ethz.ch>
To: tesseract@my-deja.com
Subject: Re: GDB and Corefiles - When will this be fixed?
Date: 1999/06/22 [thread overview]
Message-ID: <376F89F9.1892A644@ife.ee.ethz.ch> (raw)
In-Reply-To: 7klgvq$b44$1@nnrp1.deja.com
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
prev parent reply other threads:[~1999-06-22 4:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-06-21 4:00 GDB and Corefiles - When will this be fixed? tesseract
1999-06-22 4:00 ` Alex Rhomberg [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox