From owner-freebsd-current Wed Oct 30 4:36:40 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9B7CD37B401; Wed, 30 Oct 2002 04:36:38 -0800 (PST) Received: from grasshopper.iavmb.pl (grasshopper.iavmb.pl [217.153.79.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id CDE9843E75; Wed, 30 Oct 2002 04:36:37 -0800 (PST) (envelope-from beaker@iavision.com) Received: from localhost (localhost.iavmb.pl [127.0.0.1]) by grasshopper.iavmb.pl (Postfix) with ESMTP id 4BB473284D45; Wed, 30 Oct 2002 13:36:33 +0100 (CET) Received: by grasshopper.iavmb.pl (Postfix, from userid 1001) id 3AC883284D2B; Wed, 30 Oct 2002 13:36:32 +0100 (CET) From: beaker@hot.pl (Krzysztof =?iso-8859-2?q?J=EAdruczyk?=) Subject: Wine-2002.10.07 port on FreeBSD 5.0-current To: freebsd-current@FreeBSD.org Cc: gerald@FreeBSD.org Date: Wed, 30 Oct 2002 13:03:38 +0100 Message-ID: <86r8e8t86o.fsf@grasshopper.iavmb.pl> Lines: 56 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by AMaViS perl-11 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, Yesterday I tried to upgrade wine on my FreeBSD-current box. It didn't compile until I changed following in server/context_i386.c (looks like this is because of commit of 1.28 version of src/sys/i386/include/reg.h) --8<---------------cut here---------------start------------->8--- --- context_i386.c Wed Aug 14 22:59:03 2002 +++ /home/krzych/src/context_i386.c Wed Oct 30 02:24:23 2002 @@ -373,12 +373,12 @@ struct dbreg dbregs; if (ptrace( PTRACE_GETDBREGS, pid, (caddr_t) &dbregs, 0 ) =3D=3D -= 1) goto error; - context->Dr0 =3D dbregs.dr0; - context->Dr1 =3D dbregs.dr1; - context->Dr2 =3D dbregs.dr2; - context->Dr3 =3D dbregs.dr3; - context->Dr6 =3D dbregs.dr6; - context->Dr7 =3D dbregs.dr7; + context->Dr0 =3D dbregs.dr[0]; + context->Dr1 =3D dbregs.dr[1]; + context->Dr2 =3D dbregs.dr[2]; + context->Dr3 =3D dbregs.dr[3]; + context->Dr6 =3D dbregs.dr[6]; + context->Dr7 =3D dbregs.dr[7]; #endif } if (flags & CONTEXT_FLOATING_POINT) @@ -437,14 +437,14 @@ { #ifdef PTRACE_SETDBREGS struct dbreg dbregs; - dbregs.dr0 =3D context->Dr0; - dbregs.dr1 =3D context->Dr1; - dbregs.dr2 =3D context->Dr2; - dbregs.dr3 =3D context->Dr3; - dbregs.dr4 =3D 0; - dbregs.dr5 =3D 0; - dbregs.dr6 =3D context->Dr6; - dbregs.dr7 =3D context->Dr7; + dbregs.dr[0] =3D context->Dr0; + dbregs.dr[1] =3D context->Dr1; + dbregs.dr[2] =3D context->Dr2; + dbregs.dr[3] =3D context->Dr3; + dbregs.dr[4] =3D 0; + dbregs.dr[5] =3D 0; + dbregs.dr[6] =3D context->Dr6; + dbregs.dr[7] =3D context->Dr7; if (ptrace( PTRACE_SETDBREGS, pid, (caddr_t) &dbregs, 0 ) =3D=3D -= 1) goto error; #endif --8<---------------cut here---------------end--------------->8--- --=20 Best Regards, Krzysztof J=EAdruczyk To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message