From owner-freebsd-emulation Sun Feb 15 20:57:17 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA27891 for freebsd-emulation-outgoing; Sun, 15 Feb 1998 20:57:17 -0800 (PST) (envelope-from owner-freebsd-emulation@FreeBSD.ORG) Received: from thelab.hub.org (slip-33.acadiau.ca [131.162.2.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA27857 for ; Sun, 15 Feb 1998 20:57:09 -0800 (PST) (envelope-from scrappy@hub.org) Received: from localhost (scrappy@localhost) by thelab.hub.org (8.8.8/8.8.2) with SMTP id AAA20424; Mon, 16 Feb 1998 00:56:52 -0400 (AST) X-Authentication-Warning: thelab.hub.org: scrappy owned process doing -bs Date: Mon, 16 Feb 1998 00:56:52 -0400 (AST) From: The Hermit Hacker To: Greg Lehey cc: emulation@FreeBSD.ORG Subject: Re: wine 980215 In-Reply-To: <19980216134825.02381@freebie.lemis.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, 16 Feb 1998, Greg Lehey wrote: > Could you go back into the core and try this, please: Gladly :) (gdb) list 134 GET_FS( fs ); 135 if (!fs) return NULL; 136 GET_DS( ds ); 137 if (fs == ds) return NULL; /* FIXME: should be an assert */ 138 /* Get the TEB self-pointer */ 139 __asm__( ".byte 0x64\n\tmovl (%1),%0" 140 : "=r" (teb) : "r" (&((TEB *)0)->self) ); 141 return teb; 142 #else 143 if (!pCurrentThread) return NULL; (gdb) x/10i $eip 0x162835 : movl %fs:(%ecx),%eax 0x162838 : leave 0x162839 : ret 0x16283a : nop 0x16283b : nop 0x16283c : xorl %eax,%eax 0x16283e : leave 0x16283f : ret 0x162840 : movsb %ds:(%esi),%es:(%edi) 0x162841 : subl (%esi),%edx (gdb) i reg eax 0x27 39 ecx 0x18 24 edx 0x1f 31 ebx 0x20350000 540344320 esp 0xefbfd608 0xefbfd608 ebp 0xefbfd608 0xefbfd608 esi 0x10 16 edi 0x20350070 540344432 eip 0x162835 0x162835 eflags 0x10283 66179 cs 0x1f 31 ss 0x27 39 ds 0x27 39 es 0x27 39 fs 0x1f 31 gs 0x27 39 (gdb) Marc G. Fournier Systems Administrator @ hub.org primary: scrappy@hub.org secondary: scrappy@{freebsd|postgresql}.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message