Christian Groessler (email@example.com)
Sat, 2 Jan 1999 12:05:32 +0100
Thanks for the hints, Richard, especially that the struct timeval has
So my initial assumption that some data structures have changed in newer
kernels was right, but my try to fix it with a simple recompile of gdb
The recompilataion (on RH 5.2) used also the old definition of struct
(with int members) instead of the new (with long members), because (I found
that) there are 2 types of struct timeval on the system: The C lib's and
The C lib's which was used by the compilation had the int members, whereas
the core dump contains a elf_prstatus with a struct with long members.
I managed with a quick hack to build a gdb which understands the new core
dumps. (I simply copied /usr/include/sys/procfs.h to the gdb directory,
it to have the big timevals, and changed bfd/elfcore.h to use this file).
I'm a little bit scared that there are 2 different definitions of struct
I followed the select() call, as it uses a struct timeval parameter, but it
works, because the lib doesn't use the native linux select() syscall, but
OSF compatibility syscall (which needs a small (int members) timeval).
I don't know of other syscalls using struct timeval, if someone knows one,
please tell me, I want to check this out.
So gdb should be modified to understand old and new core dumps
But I have to admit, I couldn't quite follow your instructions on what to
On 31/12/98 23:26:30 Richard Henderson wrote:
>On Thu, Dec 31, 1998 at 05:43:22PM -0000, Peter Rye wrote:
>> 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.
>You'll be modifying elf_backend_data in bfd/elf-bfd.h, and elfxx-target.h
>to make what is currently elfcore_grok_prstatus switched on the target.
I assume you mean changing one of the functions in elf_backend_data (Which
Or adding a new one?
And I didn't find "elfcore_grok_prstatus" anywhere....
>You'll copy that function to elf64-alpha.c and tweek it to handle two
>different prstatus_t layouts.
How would I distinguish between the two?
-- To unsubscribe: send e-mail to firstname.lastname@example.org with 'unsubscribe' as the subject. Do not send it to email@example.com
This archive was generated by hypermail 2.0b3 on Sun Jan 24 1999 - 14:47:46 PST