From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11445 invoked by alias); 11 Oct 2003 22:26:23 -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 11438 invoked from network); 11 Oct 2003 22:26:22 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 11 Oct 2003 22:26:22 -0000 Received: from drow by nevyn.them.org with local (Exim 4.24 #1 (Debian)) id 1A8SBq-0001ut-9z; Sat, 11 Oct 2003 18:26:22 -0400 Date: Sat, 11 Oct 2003 22:26:00 -0000 From: Daniel Jacobowitz To: Mark Kettenis Cc: gdb@sources.redhat.com Subject: Re: [RFC] Core files and the architecture vector Message-ID: <20031011222622.GB7209@nevyn.them.org> Mail-Followup-To: Mark Kettenis , gdb@sources.redhat.com References: <200310112207.h9BM7WW0010332@elgar.kettenis.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200310112207.h9BM7WW0010332@elgar.kettenis.dyndns.org> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-10/txt/msg00186.txt.bz2 I'll respond to the rest of your message later but... On Sun, Oct 12, 2003 at 12:07:32AM +0200, Mark Kettenis wrote: > Let me elaborate on the second point. When a 32-bit executable > running on FreeBSD/amd64 or GNU/Linux x86-64 dumps, it produces an > 64-bit ELF core file. To be able to make any sense out of this core > file, we'll need the 64-bit register set definitions that are provided > by the regset_from_core_section method from the 64-bit architecture I still don't think this bit makes much sense. The process sees only 32-bit registers; the core should contain only 32-bit registers. Intuitively at least. On the other hand, on MIPS64 (and x86-64?) a 32-bit process can actually access 64-bit registers. It's forbidden to and the context switching won't cope right, but it can be done anyway. Do we see 32-bit or 64-bit registers from ptrace when debugging such a process? -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer