From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24632 invoked by alias); 27 May 2002 18:12:03 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 24625 invoked from network); 27 May 2002 18:12:03 -0000 Received: from unknown (HELO dr-evil.shagadelic.org) (208.176.2.162) by sources.redhat.com with SMTP; 27 May 2002 18:12:03 -0000 Received: by dr-evil.shagadelic.org (Postfix, from userid 7518) id 465849869; Mon, 27 May 2002 11:11:57 -0700 (PDT) Date: Mon, 27 May 2002 11:27:00 -0000 From: Jason R Thorpe To: Michal Ludvig Cc: GDB Patches Subject: Re: [RFC] x86-64 targeted gdb and corefiles Message-ID: <20020527111157.A22765@dr-evil.shagadelic.org> Mail-Followup-To: Jason R Thorpe , Michal Ludvig , GDB Patches References: <3CF24B2A.3070305@suse.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3CF24B2A.3070305@suse.cz>; from mludvig@suse.cz on Mon, May 27, 2002 at 05:05:14PM +0200 Organization: Wasabi Systems, Inc. X-SW-Source: 2002-05/txt/msg00944.txt.bz2 On Mon, May 27, 2002 at 05:05:14PM +0200, Michal Ludvig wrote: > Hi all, > this patch allows reading of coredumps on non-native gdb configured for > x86-64 target. It works pretty well in this form, but I had to modify > gregset.h, what is unwise. I know I have to move the modifications > somewhere else, but ... where? Can someone give me an advice, please? Take a look at e.g. mipsnbsd-nat.c and mipsnbsd-tdep.c (I'm slowly making all NetBSD configurations fully cross-debug'able, and MIPS and SH are good examples of my strategy). As far as I'm concerned, it's simply not appropriate to be using generic "regset" routines, because the names of those routines inherently make them impossible to use for cross-debugging, especially in a truly multi-arch environment (or even one as simple as "32-bit code running on x86-64"). -- -- Jason R. Thorpe