From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,34342f3457f630e1 X-Google-Attributes: gid111c93,public From: Alex Rhomberg Subject: Re: GDB and Corefiles - When will this be fixed? Date: 1999/06/22 Message-ID: <376F89F9.1892A644@ife.ee.ethz.ch>#1/1 X-Deja-AN: 492498323 Content-Transfer-Encoding: 7bit References: <7klgvq$b44$1@nnrp1.deja.com> To: tesseract@my-deja.com Content-Type: text/plain; charset=us-ascii X-Trace: 22 Jun 1999 15:04:57 +0100, beethoven.ee.ethz.ch Organization: Electronics Lab, ETH Zurich, Switzerland MIME-Version: 1.0 Newsgroups: comp.os.linux.alpha 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