From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23158 invoked by alias); 9 Mar 2005 15:06:17 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 23043 invoked from network); 9 Mar 2005 15:06:10 -0000 Received: from unknown (HELO e1.ny.us.ibm.com) (32.97.182.141) by sourceware.org with SMTP; 9 Mar 2005 15:06:10 -0000 Received: from d01relay02.pok.ibm.com (d01relay02.pok.ibm.com [9.56.227.234]) by e1.ny.us.ibm.com (8.12.11/8.12.11) with ESMTP id j29F6Adf024634 for ; Wed, 9 Mar 2005 10:06:10 -0500 Received: from d01av02.pok.ibm.com (d01av02.pok.ibm.com [9.56.224.216]) by d01relay02.pok.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id j29F69nA075028 for ; Wed, 9 Mar 2005 10:06:09 -0500 Received: from d01av02.pok.ibm.com (loopback [127.0.0.1]) by d01av02.pok.ibm.com (8.12.11/8.12.11) with ESMTP id j29F68gt024669 for ; Wed, 9 Mar 2005 10:06:09 -0500 Received: from soprano.in.ibm.com ([9.182.62.148]) by d01av02.pok.ibm.com (8.12.11/8.12.11) with ESMTP id j29F5vMa024251; Wed, 9 Mar 2005 10:06:08 -0500 Received: by soprano.in.ibm.com (Postfix, from userid 500) id 7F9DD7C51A; Wed, 9 Mar 2005 20:36:45 +0530 (IST) Date: Wed, 09 Mar 2005 15:06:00 -0000 From: Dipankar Sarma To: "Eric W. Biederman" Cc: Vivek Goyal , Andrew Morton , gdb , Dave Anderson , lkml , fastboot Subject: Re: [Fastboot] Re: Query: Kdump: Core Image ELF Format Message-ID: <20050309150644.GA4663@in.ibm.com> Reply-To: dipankar@in.ibm.com References: <1110286210.4195.27.camel@wks126478wss.in.ibm.com> <1110350629.31878.7.camel@wks126478wss.in.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-SW-Source: 2005-03/txt/msg00085.txt.bz2 On Wed, Mar 09, 2005 at 07:17:49AM -0700, Eric W. Biederman wrote: > Vivek Goyal writes: > > > On Tue, 2005-03-08 at 11:00 -0700, Eric W. Biederman wrote: > > > > This also requires, setting the kernel virtual addresses while preparing > > the headers. KVA for linearly mapped region is known in advance and can > > be filled at header creation time and gdb can directly operate upon this > > region. > > I have no problems decorating the ELF header you are generating > in user space with virtual addresses assuming we can reliably > get that information. And before a kernel crashes looks like a reasonable > time to ask that question. I don't currently see where you could > derive that information. > > Beyond that I prefer a little command line tool that will do the > ELF64 to ELF32 conversion and possibly add in the kva mapping to > make the core dump usable with gdb. Doing it in a separate tool > means it is the developer who is doing the analysis who cares > not the user who is capturing the system core dump. Well, as a kernel developer, I am both :) For me, having to install half-a-dozen different command line tools to get and analyze a crash dump is a PITA, not to mention potential version mismatches. As someone who would like very much to use crash dump for debugging, I would much rather be able to force a dump and then use gdb for a quick debug. I agree that a customer would see a different situation. It would be nice if we can cater to both the kinds. Thanks Dipankar