From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4085 invoked by alias); 5 Apr 2006 13:23:08 -0000 Received: (qmail 4076 invoked by uid 22791); 5 Apr 2006 13:23:08 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Wed, 05 Apr 2006 13:23:05 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1FR7yO-0007Y0-DL; Wed, 05 Apr 2006 09:23:00 -0400 Date: Wed, 05 Apr 2006 13:23:00 -0000 From: Daniel Jacobowitz To: Mark Kettenis Cc: "David S. Miller" , gdb@sources.redhat.com Subject: Re: core regs vs. proc-service regs mess Message-ID: <20060405132258.GA28872@nevyn.them.org> Mail-Followup-To: Mark Kettenis , "David S. Miller" , gdb@sources.redhat.com References: <20060405.000621.41243752.davem@davemloft.net> <12186.192.87.1.22.1144225521.squirrel@webmail.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <12186.192.87.1.22.1144225521.squirrel@webmail.xs4all.nl> User-Agent: Mutt/1.5.8i X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-04/txt/msg00034.txt.bz2 On Wed, Apr 05, 2006 at 10:25:21AM +0200, Mark Kettenis wrote: > > This is completely contradictory, and I don't have any idea how to > > cleanly resolve this outside of duplicating the entirety of > > linux_nat_make_corefile_notes() on Linux/Sparc which is silly. > > > > Daniel any ideas? :-) Maybe we can have a "linux_tdep" struct where we > > can place a "->to_fill_core_gregset()" type method or similar? > > What really should happen is to convert linux_nat_make_corefile_notes() to > use the regset_from_core_section() interface. Unfortunately that is quite > a bit of work since most Linux targets don't provide that interface yet. Shouldn't this be pretty simple: gdbarch_regset_from_core_section_p? -- Daniel Jacobowitz CodeSourcery