From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 21284 invoked from network); 31 Dec 1998 22:43:01 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 31 Dec 1998 22:43:01 -0000 Received: from cygnus.com (runyon.cygnus.com [205.180.230.5]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id RAA24633 for ; Thu, 31 Dec 1998 17:26:32 -0500 Received: from dot.cygnus.com (dot.cygnus.com [205.180.230.224]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id OAA23066; Thu, 31 Dec 1998 14:26:30 -0800 (PST) Received: (rth@localhost) by dot.cygnus.com (8.8.7/8.6.4) id OAA13947; Thu, 31 Dec 1998 14:26:30 -0800 Message-ID: <19981231142630.B13914@dot.cygnus.com> Date: Thu, 31 Dec 1998 14:26:30 -0800 From: Richard Henderson To: Peter Rye , rth@cygnus.com Cc: axp-list@redhat.com Subject: Re: gdb cannot read core dumps on newer kernels Reply-To: Richard Henderson References: <412566EA.005F3748.00@saturn.aladdin.de> <19981230131306.B32319@dot.cygnus.com> <19981231174322.8587.qmail@picu-sgh.demon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1 In-Reply-To: <19981231174322.8587.qmail@picu-sgh.demon.co.uk>; from Peter Rye on Thu, Dec 31, 1998 at 05:43:22PM -0000 On Thu, Dec 31, 1998 at 05:43:22PM -0000, Peter Rye wrote: > Unfortunately I cannot find "elf_prstatus" in the source for gdb... It isn't. It's in ; I forget the exact path by which this gets pulled in. This is fairly losing, and just the way it's "always been done". > 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. You'll copy that function to elf64-alpha.c and tweek it to handle two different prstatus_t layouts. r~