Re: gdb cannot read core dumps on newer kernels


Peter Rye (prye@picu-sgh.demon.co.uk)
31 Dec 1998 17:43:22 -0000


>>>>> "Richard" == Richard Henderson <rth@cygnus.com> writes:

Richard> On Wed, Dec 30, 1998 at 06:16:06PM +0100, Christian Groessler
Richard> wrote:
>> I also tried recompiling gdb, but it doesn't work either. Does
>> anybody have an idea on how to fix this?

Richard> GDB needs to be taught that elf_prstatus can be one of two
Richard> sizes; mid 2.1 struct timeval was changed to be POSIX
Richard> compliant. Everything but this was handled with new syscall
Richard> numbers.

Thanks for the information. Although I didn't post the original question,
this problem has been something that I have tried in vain to solve for a
while now.

Unfortunately I cannot find "elf_prstatus" in the source for gdb, although
there are plenty of references to "prstatus" in both elfcore.h and
elf-bfd.h, as well as references to "bfd_prstatus" in elfcore.h. There are
also references to "prstatus_t" in the configure file.

I presume that this is a relatively easy thing to fix if you have a few
more clues about programming development tools than I do. If possible, I
wonder if you would mind expanding a little on which files need to be
patched etc.

Thanks very much.

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com



This archive was generated by hypermail 2.0b3 on Sun Jan 24 1999 - 14:47:46 PST