From: Alex Rhomberg <rhomberg@ife.ee.ethz.ch>
Subject: Re: gdb and 2.2 core dumps (Was: Real programmers can read core dumps?)
Date: 1999/05/12 [thread overview]
Message-ID: <37395708.A25AEDD@ife.ee.ethz.ch> (raw)
In-Reply-To: 7ha9l7$vqk$1@nntp6.atl.mindspring.net
Marshall G. Gates wrote:
>
> You are correct, there was mention of a patch for gdb, but I can't find my
> copy of it anywhere. I did not download it and apply it. Much to my
> dismay.
>
> Oh well. If anyone has it, or has a link to it. Please post it.
The problem is, that 2.0 kernels write the timeval with int (32 bit)
fields, while 2.1/2.2 kernels write seconds and usecs as long. Nobody
(me included) wants to fix gdb so that it knows both types of core
files.
I used the following hack to make gdb read kernel 2.2 core files. It
can't read cores generated by 2.0 anymore
in the gdb sources:
in bfd/elfcode.h insert
struct timeval {
long tv_sec;
long tv_usec;
};
#define _STRUCT_TIMEVAL
right between the comments and #include "bfd.h"
This did the trick for me with both gdb-4.18 and 4.17
Hope this helps
- Alex
prev parent reply other threads:[~1999-05-12 4:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-05-11 4:00 Real programmers can read core dumps? Takeyasu Wakabayashi
1999-05-11 4:00 ` Marshall G. Gates
1999-05-12 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