lkml.org 
[lkml]   [1996]   [Jul]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: magic file entry to understand core dumps
Date
From
>>>>> "A" == Andrew C Esh <andrewes@cnt.com> writes:

A> Problem 1: "gdb" has trouble reading things from ELF core files,
A> and reports errors.

There were some problems with gdb loading core files. They were fixed
on a version released with Linux libc. I'm checking now if the GNU
4.16 has the patches merged in yet, but I do know there's a 4.16
binary on tsx-11 which you can use.

A> Solution 2: Add an entry to /etc/magic to allow "file" to decode an
A> ELF core file. This may not be possible, if "file" is too simple to
A> deal with the complexities of finding the executable name.

I am not sure that it is possible. I know that there isn't a simple
offset into the core file like there was in a.out... you might be able
to use an indirect offset, but I don't know enough about the core
format to do it.

--
Alan Shutko <ats@hubert.wustl.edu> - The Few, the Proud, the Remaining.
Old immortals never die. They...they just don't!


\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.135 / U:6.656 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site