From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7047 invoked by alias); 27 May 2002 21:59:43 -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 7040 invoked from network); 27 May 2002 21:59:40 -0000 Received: from unknown (HELO walton.kettenis.dyndns.org) (213.93.114.42) by sources.redhat.com with SMTP; 27 May 2002 21:59:40 -0000 Received: from elgar.kettenis.dyndns.org (elgar.kettenis.dyndns.org [192.168.0.2]) by walton.kettenis.dyndns.org (8.11.6/8.11.6) with ESMTP id g4RLxdI01272; Mon, 27 May 2002 23:59:39 +0200 (CEST) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: (from kettenis@localhost) by elgar.kettenis.dyndns.org (8.11.6/8.11.6) id g4RLxcT00644; Mon, 27 May 2002 23:59:38 +0200 (CEST) (envelope-from kettenis) From: Mark Kettenis Message-Id: <200205272159.g4RLxcT00644@elgar.kettenis.dyndns.org> To: Michal Ludvig Cc: GDB Patches Subject: Re: [RFC] x86-64 targeted gdb and corefiles Date: Mon, 27 May 2002 15:00:00 -0000 In-Reply-To: Michal Ludvig's message of "Mon, 27 May 2002 17:05:14 +0200" X-SW-Source: 2002-05/txt/msg00954.txt.bz2 Michal Ludvig writes: > 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 how this is done for various NetBSD targets (sh, alpha, i386). Basically, get rid of the elf_gregset_t type and adapt the functions that "parse" the register set to handle a "raw" buffer. Since all registers are of the same size, that shouldn't be too complicated. Mark