From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7348 invoked by alias); 5 Jan 2002 03:28:47 -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 7305 invoked from network); 5 Jan 2002 03:28:40 -0000 Received: from unknown (HELO cygnus.com) (205.180.230.5) by sources.redhat.com with SMTP; 5 Jan 2002 03:28:40 -0000 Received: from redhat.com (reddwarf.cygnus.com [205.180.231.12]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id TAA12117; Fri, 4 Jan 2002 19:28:30 -0800 (PST) Message-ID: <3C3671C2.253B6799@redhat.com> Date: Fri, 04 Jan 2002 19:28:00 -0000 From: Michael Snyder Organization: Red Hat, Inc. X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2-2smp i686) X-Accept-Language: en MIME-Version: 1.0 To: thorpej@wasabisystems.com CC: Mark Kettenis , gdb-patches@sourceware.cygnus.com Subject: Re: [patch] Overhaul i386nbsd-nat.c, add support for XMM + ELF core files References: <20020104160746.H9599@dr-evil.shagadelic.org> <20020104190350.K9599@dr-evil.shagadelic.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-01/txt/msg00061.txt.bz2 Jason R Thorpe wrote: > > On Sat, Jan 05, 2002 at 01:39:52AM +0100, Mark Kettenis wrote: > > > Is there any chance that I can convince you to make NetBSD use > > i386bsd-nat.c instead of i386nbsd-nat.c? NetBSD is close enough to > > FreeBSD and OpenBSD to be able to use the same basic functionality on > > all of them. > > Alright, I did this; it wasn't quite as nasty as I thought it'd be. > > OK to commit? > > [ for gdb/ChangeLog ] > 2002-01-04 Jason Thorpe > > * acconfig.h (HAVE_PT_GETXMMREGS): New. > * config.in: Regenerate. > * configure.in: Update copyright years. > Add test for PT_GETXMMREGS supplied by . > * configure: Regenerate. > * i386bsd-nat.c: Update copyright years. > (fill_gregset): Use regcache_collect. Are you concerned about threads? regcache_collect is not thread-aware. > (fetch_inferior_registers): Only fetch integer registers > if requested to do so. Add support for XMM registers > using PT_GETXMMREGS. > (store_inferior_registers): Only store integer registers > if requested to do so. Add support for XMM registers > using PT_SETXMMREGS. > * i386nbsd-nat.c (fetch_inferior_registers): Remove. > (store_inferior_registers): Remove. > (fetch_core_registers): Use supply_gregset and i387_supply_fsave. > (fetch_elfcore_registers): New function. > (i386nbsd_elfcore_fns): New. > (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns. > * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and > i386bsd-nat.o. > * config/i386/nbsdelf.mh (NATDEPFILES): Likewise. > * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o. > * config/i386/nbsdelf.mt (TDEPFILES): Likewise. > * config/i386/tm-nbsd.h: Update copyright years. > (HAVE_SSE_REGS): Define. > (IN_SIGTRAMP): Define as i386bsd_in_sigtramp. > (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start. > (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end. > (SIGCONTEXT_PC_OFFSET): Remove. > (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc. > > -- > -- Jason R. Thorpe > > ------------------------------------------------------------------------ > Name: JRT-patch3 > JRT-patch3 Type: Plain Text (text/plain) > Description: patch3