From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7496 invoked by alias); 8 Jul 2003 14:45:18 -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 7479 invoked from network); 8 Jul 2003 14:45:12 -0000 Received: from unknown (HELO walton.kettenis.dyndns.org) (62.163.169.212) by sources.redhat.com with SMTP; 8 Jul 2003 14:45:12 -0000 Received: from elgar.kettenis.dyndns.org (elgar.kettenis.dyndns.org [192.168.0.2]) by walton.kettenis.dyndns.org (8.12.6p2/8.12.5) with ESMTP id h68EjC8E000650; Tue, 8 Jul 2003 16:45:12 +0200 (CEST) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: from elgar.kettenis.dyndns.org (localhost [127.0.0.1]) by elgar.kettenis.dyndns.org (8.12.6p2/8.12.6) with ESMTP id h68EjBZb000506; Tue, 8 Jul 2003 16:45:11 +0200 (CEST) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: (from kettenis@localhost) by elgar.kettenis.dyndns.org (8.12.6p2/8.12.6/Submit) id h68EjBWJ000503; Tue, 8 Jul 2003 16:45:11 +0200 (CEST) Date: Tue, 08 Jul 2003 14:45:00 -0000 Message-Id: <200307081445.h68EjBWJ000503@elgar.kettenis.dyndns.org> From: Mark Kettenis To: mludvig@suse.cz CC: gdb@sources.redhat.com In-reply-to: <3F0ABC85.1080700@suse.cz> (message from Michal Ludvig on Tue, 08 Jul 2003 14:43:49 +0200) Subject: Re: Analyzing AMD64 corefiles on i386 References: <3F0ABC85.1080700@suse.cz> X-SW-Source: 2003-07/txt/msg00086.txt.bz2 Date: Tue, 08 Jul 2003 14:43:49 +0200 From: Michal Ludvig Hi, what must be done to enable reading of AMD64 corefiles in a gdb running on i386 with --target=amd64? The necessary support for corefiles needs to be added to x86-64-linux-tdep.c. Take a look at i386nbsd-tdep.c for an example. You'll need to create a `struct core_fns' together with the necessary support functions, and register it with add_core_fns. Note that for the support functions you can't rely on definitions in header files and such since this is target code. You'll also need to drop core-regset.o from NATDEPFILES in x86-64-linux.mh. Success! Mark