From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19888 invoked by alias); 1 Aug 2007 00:27:05 -0000 Received: (qmail 19880 invoked by uid 22791); 1 Aug 2007 00:27:04 -0000 X-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DK_POLICY_SIGNSOME,FORGED_RCVD_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 01 Aug 2007 00:27:03 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.1/8.13.1) with ESMTP id l710QxOC013319; Tue, 31 Jul 2007 20:26:59 -0400 Received: from pobox.hsv.redhat.com (pobox.hsv.redhat.com [172.16.16.12]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l710Qxjg000732; Tue, 31 Jul 2007 20:26:59 -0400 Received: from localhost.localdomain (vpn-14-115.rdu.redhat.com [10.11.14.115]) by pobox.hsv.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id l710QvfK024466; Tue, 31 Jul 2007 20:26:58 -0400 Message-ID: <46AFD351.6030004@redhat.com> Date: Wed, 01 Aug 2007 00:27:00 -0000 From: Phil Muldoon User-Agent: Thunderbird 2.0.0.5 (X11/20070719) MIME-Version: 1.0 To: Mark Wielaard CC: frysk@sourceware.org Subject: Re: Make CoredumpAction use Task.getRegisterBanks() References: <1185814384.3674.36.camel@dijkstra.wildebeest.org> <46AE238B.5020204@redhat.com> <1185883408.3653.106.camel@dijkstra.wildebeest.org> In-Reply-To: <1185883408.3653.106.camel@dijkstra.wildebeest.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact frysk-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: frysk-owner@sourceware.org X-SW-Source: 2007-q3/txt/msg00254.txt.bz2 Mark Wielaard wrote: > > For ptrace/proc based Tasks there are basically 4 register banks (not > all of them used on all architectures) the Isa provides a mapping from > the actual register names to the bank and offset inside it. The four > banks are the regular registers (gotten through PTRACE_GETREGS), the > general floating point registers (gotten through PTRACE_GETFPREGS), the > extended floating point registers such like sse xmm registers (gotten > through PTRACE_getXFPREGS) and the other registers (gotten through the > start of USR memory space) that cover things like debug control > registers found by the Isa through the mapping in sys/user.h (some of > the other register banks are actually also contained in this one). > > Does this map somewhat to how core files handle the register banks, so > you can just dump/read these banks from them? > Pretty much other than General Purpose registers which needs to be accessed independently via getRegisterByName(). The the rest are just dumped wholesale into the notes, and in that instance accessed via task.getRegisterBanks(). I think, going forward access to the raw memory for each register bank, and also a getRegisterByName() function (which is the functionality we have now) is needed, and probably will be down the line. Regards Phil