* Real programmers can read core dumps?
@ 1999-05-11 4:00 Takeyasu Wakabayashi
1999-05-11 4:00 ` Marshall G. Gates
0 siblings, 1 reply; 3+ messages in thread
From: Takeyasu Wakabayashi @ 1999-05-11 4:00 UTC (permalink / raw)
I'm not even a programmer myself, but if the
statement is true, all Linux/Alpha programmers
must be real programmers, since all versions of
gdb, including the latest 4.18, can't debug core.
Whenever I try to debug core, I get following
messages from gdb:
Core was generated by `./abort'.
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/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 ?? ()
I have faint recollection that there had been
discussions on the matter in this news group
several times. But I couldn't find any patches
against gdb enabling core debugging.
If anyone know how to enable core debugging with gdb,
please let me know.
--
Takeyasu Wakabayashi,
Faculty of Economics, Toyama University
twakaba@eco.toyama-u.ac.jp
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Real programmers can read core dumps?
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 ` gdb and 2.2 core dumps (Was: Real programmers can read core dumps?) Alex Rhomberg
0 siblings, 1 reply; 3+ messages in thread
From: Marshall G. Gates @ 1999-05-11 4:00 UTC (permalink / raw)
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.
Thanks in advance
Marshall
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: gdb and 2.2 core dumps (Was: Real programmers can read core dumps?)
1999-05-11 4:00 ` Marshall G. Gates
@ 1999-05-12 4:00 ` Alex Rhomberg
0 siblings, 0 replies; 3+ messages in thread
From: Alex Rhomberg @ 1999-05-12 4:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1999-05-12 4:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` gdb and 2.2 core dumps (Was: Real programmers can read core dumps?) Alex Rhomberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox