From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28285 invoked by alias); 12 Oct 2009 21:55:24 -0000 Received: (qmail 28273 invoked by uid 22791); 12 Oct 2009 21:55:23 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from troutmask.apl.washington.edu (HELO troutmask.apl.washington.edu) (128.208.78.105) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 12 Oct 2009 21:55:20 +0000 Received: from troutmask.apl.washington.edu (localhost.apl.washington.edu [127.0.0.1]) by troutmask.apl.washington.edu (8.14.3/8.14.3) with ESMTP id n9CLtIpt045092 for ; Mon, 12 Oct 2009 14:55:18 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.14.3/8.14.3/Submit) id n9CLtInQ045091 for gdb-patches@sourceware.org; Mon, 12 Oct 2009 14:55:18 -0700 (PDT) (envelope-from sgk) Date: Mon, 12 Oct 2009 21:55:00 -0000 From: Steve Kargl To: gdb-patches@sourceware.org Subject: [PATCH] Fix building gdb-7.0 on x86_64-*-freebsd Message-ID: <20091012215518.GA45050@troutmask.apl.washington.edu> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="SUOF0GtieIMvvwua" Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-10/txt/msg00252.txt.bz2 --SUOF0GtieIMvvwua Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 211 The attach patch allows gdb-7.0 (and 6.8) to build on x86_64-*-freebsd. Revision 189903 of FreeBSD's sys/amd64/include/pcb.h removed the pcb_fs, pcb_gs, pcb_ds, and pcb_es members of the structure. -- Steve --SUOF0GtieIMvvwua Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="a.diff" Content-length: 746 --- amd64fbsd-nat.c.orig 2009-10-12 14:38:56.000000000 -0700 +++ amd64fbsd-nat.c 2009-10-12 14:40:13.000000000 -0700 @@ -95,6 +95,7 @@ #include #include +#include #include "bsd-kvm.h" @@ -123,10 +124,12 @@ regcache_raw_supply (regcache, 13, &pcb->pcb_r13); regcache_raw_supply (regcache, 14, &pcb->pcb_r14); regcache_raw_supply (regcache, 15, &pcb->pcb_r15); +#if (__FreeBSD_version < 900000) regcache_raw_supply (regcache, AMD64_DS_REGNUM, &pcb->pcb_ds); regcache_raw_supply (regcache, AMD64_ES_REGNUM, &pcb->pcb_es); regcache_raw_supply (regcache, AMD64_FS_REGNUM, &pcb->pcb_fs); regcache_raw_supply (regcache, AMD64_GS_REGNUM, &pcb->pcb_gs); +#endif return 1; } --SUOF0GtieIMvvwua--