From owner-freebsd-emulation Sun Sep 5 17: 5:35 1999 Delivered-To: freebsd-emulation@freebsd.org Received: from blaubaer.kn-bremen.de (blaubaer.kn-bremen.de [195.37.179.254]) by hub.freebsd.org (Postfix) with ESMTP id C6DB114D6F for ; Sun, 5 Sep 1999 17:04:18 -0700 (PDT) (envelope-from nox@saturn.kn-bremen.de) Received: from saturn.kn-bremen.de (uucp@localhost) by blaubaer.kn-bremen.de (8.9.1/8.9.1) with UUCP id BAA15093; Mon, 6 Sep 1999 01:59:07 +0200 Received: (from nox@localhost) by saturn.kn-bremen.de (8.9.3/8.8.5) id BAA17946; Mon, 6 Sep 1999 01:58:57 +0200 (MET DST) From: Juergen Lock Date: Mon, 6 Sep 1999 01:58:56 +0200 To: Marcus Meissner Cc: wine-devel@winehq.com, FreeBSD-emulation@FreeBSD.ORG Subject: Re: debugger, stepi, c(ontinue) from breakpoint... Message-ID: <19990906015856.A15839@saturn.kn-bremen.de> References: <19990904035542.A20689@saturn.kn-bremen.de> <19990904130203.A1206@jet.franken.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.7i In-Reply-To: <19990904130203.A1206@jet.franken.de> Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sat, Sep 04, 1999 at 01:02:03PM +0200, Marcus Meissner wrote: > On Sat, Sep 04, 1999 at 03:55:43AM +0200, Juergen Lock wrote: > > ...still don't work on FreeBSD (they loop endlessly, getting signalled > > again and again). Looks like this is another result of the missing > > TRAP_sig? If yes i could try to fix it, if someone could point me > > to a description of those constants in there? FreeBSD only has > > sc_trapno which comes straight from the hardware and is defined > > completely different... (see .) > > Hmm. Not sure about differently, but Linux also uses the one directly > passed from the x86 hardware. Your right of course, FreeBSD's sc_trapno constants are the ones that differ from what the hardware uses, where was i looking... > Could you just try to define TRAP_sig() > accordingly (if the code is passed up through the signal handler)? So i made a translation function, Index: include/sig_context.h =================================================================== RCS file: /home/wine/wine/include/sig_context.h,v retrieving revision 1.15 diff -u -u -r1.15 sig_context.h --- include/sig_context.h 1999/09/05 16:26:12 1.15 +++ include/sig_context.h 1999/09/05 22:41:26 @@ -171,6 +171,8 @@ #define EFL_sig(context) ((context)->sc_efl) /* FreeBSD, see i386/i386/traps.c::trap_pfault va->err kludge */ #define CR2_sig(context) ((context)->sc_err) +int xlatebsdtrapno(int t); +#define TRAP_sig(context) ((long)xlatebsdtrapno((context)->sc_trapno)) #endif Index: dlls/ntdll/exception.c =================================================================== RCS file: /home/wine/wine/dlls/ntdll/exception.c,v retrieving revision 1.11 diff -u -u -r1.11 exception.c --- dlls/ntdll/exception.c 1999/09/03 12:46:38 1.11 +++ dlls/ntdll/exception.c 1999/09/05 22:41:22 @@ -31,6 +31,34 @@ # define GET_IP(context) ((LPVOID)0) #endif /* __i386__ */ +#ifdef __FreeBSD__ +/* translate BSD's sigcontext sc_trapno for TRAP_sig */ +int xlatebsdtrapno(int t) +{ + switch (t) + { + case T_PRIVINFLT: return 6; + case T_BPTFLT: return 3; + case T_ARITHTRAP: return 16; + case T_PROTFLT: return 13; + case T_TRCTRAP: return 1; + case T_PAGEFLT: return 14; + case T_ALIGNFLT: return 17; + case T_DIVIDE: return 0; + case T_NMI: return 2; + case T_OFLOW: return 4; + case T_BOUND: return 5; + case T_DNA: return 7; + case T_FPOPFLT: return 9; + case T_TSSFLT: return 10; + case T_SEGNPFLT: return 11; + case T_STKFLT: return 12; + case T_RESERVED: return 15; + default: return 18; + } +} +#endif + /* Default hook for built-in debugger */ static DWORD default_hook( EXCEPTION_RECORD *rec, CONTEXT *ctx, BOOL first ) { but i also had to patch this before it started working, Index: i386/i386/trap.c =================================================================== RCS file: /home/cvs/cvs/src/sys/i386/i386/trap.c,v retrieving revision 1.133.2.1 diff -u -u -r1.133.2.1 trap.c --- trap.c 1999/08/29 16:05:56 1.133.2.1 +++ trap.c 1999/09/05 01:56:02 @@ -57,6 +57,9 @@ #include #include #include +#include +#include +#include #include #include #ifdef KTRACE @@ -1135,9 +1181,12 @@ break; } - if ((frame.tf_eflags & PSL_T) && !(frame.tf_eflags & PSL_VM)) { + if ((frame.tf_eflags & PSL_T) && !(frame.tf_eflags & PSL_VM) && + *callp->sy_call != sigreturn && *callp->sy_call != linux_sigreturn) { /* Traced syscall. */ frame.tf_eflags &= ~PSL_T; + /* tell the signal handler this is a trace trap */ + frame.tf_trapno = T_TRCTRAP; trapsignal(p, SIGTRAP, 0); } (so wine must be the first program that handles SIGTAP for itself and sets the trace bit from a signal handler? :) I Cc'd this to -emulation, are any committers reading or should i also send-pr it?) now `si' works but sometimes(!) i still have to disable a breakpoint before it would step over it, shouldn't the debugger do this itself? the funny thing is it appears sometimes it does it and sometimes not! can anyone reproduce this on eg linux? (wine -debug different programs and see if `si' steps over the initial breakpoint, for me it depends on the program i chose if it does or not...) Oh and after some hacking i can now also read the taz archive CDs with wine, there's only one little problem with a scrollbar... Regards, -- Juergen Lock (remove dot foo from address to reply) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Tue Sep 7 11: 5:18 1999 Delivered-To: freebsd-emulation@freebsd.org Received: from vexpert.dbai.tuwien.ac.at (vexpert.dbai.tuwien.ac.at [128.130.111.12]) by hub.freebsd.org (Postfix) with ESMTP id 0943514DC6 for ; Tue, 7 Sep 1999 11:05:12 -0700 (PDT) (envelope-from pfeifer@dbai.tuwien.ac.at) Received: from markab (markab [128.130.111.33]) by vexpert.dbai.tuwien.ac.at (8.9.1/8.9.1) with ESMTP id UAA00488; Tue, 7 Sep 1999 20:03:47 +0200 (MET DST) Date: Tue, 7 Sep 1999 20:03:45 +0200 (MET DST) From: Gerald Pfeifer To: Bruce Evans Cc: emulation@freebsd.org, marcel@scc.nl Subject: Re: SIGBUS for threaded Linux binaries (glibc2.1) [PSL_AC related?] In-Reply-To: <199908242121.HAA08964@godzilla.zeta.org.au> 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 Wed, 25 Aug 1999, Bruce Evans wrote: > Alignment checking is almost unusable on i386's since compilers don't > support it. E.g., gcc generates a misaligned load and store for: Uh? First of all, for sure there are compilers for ia32 that do alignment checking and (later) EGCS version resp. GCC 2.95.x certainly do some stack alignment. Gerald -- Gerald "Jerry" pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Tue Sep 7 21:40: 9 1999 Delivered-To: freebsd-emulation@freebsd.org Received: from gidora.zeta.org.au (gidora.zeta.org.au [203.26.10.25]) by hub.freebsd.org (Postfix) with SMTP id C50D614F42 for ; Tue, 7 Sep 1999 21:40:03 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: (qmail 21930 invoked from network); 8 Sep 1999 04:39:26 -0000 Received: from d152.syd2.zeta.org.au (203.26.9.24) by gidora.zeta.org.au with SMTP; 8 Sep 1999 04:39:26 -0000 Date: Wed, 8 Sep 1999 14:39:21 +1000 (EST) From: Bruce Evans X-Sender: bde@alphplex.bde.org To: Gerald Pfeifer Cc: emulation@freebsd.org, marcel@scc.nl Subject: Re: SIGBUS for threaded Linux binaries (glibc2.1) [PSL_AC related?] In-Reply-To: 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 Tue, 7 Sep 1999, Gerald Pfeifer wrote: > On Wed, 25 Aug 1999, Bruce Evans wrote: > > Alignment checking is almost unusable on i386's since compilers don't > > support it. E.g., gcc generates a misaligned load and store for: > > Uh? First of all, for sure there are compilers for ia32 that do alignment > checking and (later) EGCS version resp. GCC 2.95.x certainly do some stack > alignment. "Some" != "enough for alignment checking to not find misaligned cases". Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Wed Sep 8 5: 3:32 1999 Delivered-To: freebsd-emulation@freebsd.org Received: from isds.duke.edu (davinci.isds.duke.edu [152.3.22.1]) by hub.freebsd.org (Postfix) with ESMTP id DD89B14ECC for ; Wed, 8 Sep 1999 05:03:29 -0700 (PDT) (envelope-from sto@stat.Duke.EDU) Received: from cayenne.isds.duke.edu (cayenne.isds.duke.edu [152.3.22.11]) by isds.duke.edu (8.8.8/8.8.8) with ESMTP id IAA18702 for ; Wed, 8 Sep 1999 08:02:58 -0400 (EDT) Received: (from sto@localhost) by cayenne.isds.duke.edu (8.8.8/8.8.8) id IAA03931 for freebsd-emulation@FreeBSD.ORG; Wed, 8 Sep 1999 08:02:58 -0400 (EDT) Message-ID: <19990908080258.R599@stat.Duke.EDU> Date: Wed, 8 Sep 1999 08:02:58 -0400 From: "Sean O'Connell" To: FreeBSD emulation Subject: rvplayer panics -current box Reply-To: "Sean O'Connell" Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2 X-Organization: Institute of Statistics and Decision Sciences Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi- I sent this note to -current, but I suppose that -emulation might be a more appropriate forum. This was -current as of last night (US EDT). Any clues? (I am using a RH-5.2- based /compat/linux but an early, previous to release of port, version). ----- Forwarded message from Sean O'Connell ----- Just cvsup'd and rebuilt world and new kernel. Rebooted and started playing around ... rvplayer caused a panic. panic: feed_root: count == 0 syncing disks... 4 2 done Reproducible, too :( ... the G2 player doesn't cause the panic, but doesn't do audio worth a hoot. Just playing a cd doesn't cause the panic .. Is this newpcm related or linux emu? Other linux apps seem to work acroread, staroffice5.0, wordperfect Sound card info.... >From dmesg: pcm0: at port 0x530-0x533,0x388-0x38b,0x220-0x22f irq 5 drq 0,1 on isa0 unknown0: at port 0x200-0x207 on isa0 unknown1: at port 0xf00-0xf07 on isa0 >From pnpinfo: Card assigned CSN #1 Vendor ID CSC0735 (0x3507630e), Serial Number 0xffffffff PnP Version 1.0, Vendor Version 1 Device Description: Crystal CS4236B Logical Device ID: CSC0000 0x0000630e #0 Vendor register funcs 00 Device Description: WSS/SB TAG Start DF Good Configuration I/O Range 0x530 .. 0x604, alignment 0xd4, len 0x4 [16-bit addr] I/O Range 0x388 .. 0x3a0, alignment 0x8, len 0x4 [16-bit addr] I/O Range 0x220 .. 0x280, alignment 0x20, len 0x10 [16-bit addr] IRQ: 5 7 10 11 - only one type (true/edge) DMA: channel(s) 0 1 3 8-bit, not a bus master, count by byte, , Type A DMA: channel(s) 0 1 3 8-bit, not a bus master, count by byte, , Type A -- ----------------------------------------------------------------------- Sean O'Connell Email: sean@stat.Duke.EDU Institute of Statistics and Decision Sciences Phone: (919) 684-5419 Duke University Fax: (919) 684-8594 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message ----- End forwarded message ----- -- ----------------------------------------------------------------------- Sean O'Connell Email: sean@stat.Duke.EDU Institute of Statistics and Decision Sciences Phone: (919) 684-5419 Duke University Fax: (919) 684-8594 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Wed Sep 8 11:30:47 1999 Delivered-To: freebsd-emulation@freebsd.org Received: from aries.ariesnetwork.net (aries.postnet.com [209.96.9.250]) by hub.freebsd.org (Postfix) with ESMTP id 60C8014BD0 for ; Wed, 8 Sep 1999 11:30:44 -0700 (PDT) (envelope-from aries@ariesnetwork.net) Received: from localhost (aries@localhost) by aries.ariesnetwork.net (8.9.3/8.8.8) with ESMTP id NAA22739 for ; Wed, 8 Sep 1999 13:32:29 -0500 (CDT) (envelope-from aries@ariesnetwork.net) Date: Wed, 8 Sep 1999 13:32:29 -0500 (CDT) From: Danny To: freebsd-emulation@freebsd.org Subject: Problem compiling wine 990731 on 3.2-stable 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 Hello. I'm running 3.2 stable, and am trying to compile Wine 990731. The reason I don't use a package or port is because they are only up to 9904??... Anyway, when I try to compile, I get the following message: make: don't know how to make build.o. Stop *** Error code 2 I got the same thing about makedep.o, but I manually compiled it and it worked. Any ideas? Thanks! Dan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Wed Sep 8 11:35:29 1999 Delivered-To: freebsd-emulation@freebsd.org Received: from lor.watermarkgroup.com (lor.watermarkgroup.com [207.202.73.33]) by hub.freebsd.org (Postfix) with ESMTP id C4C71150C4 for ; Wed, 8 Sep 1999 11:35:26 -0700 (PDT) (envelope-from luoqi@watermarkgroup.com) Received: (from luoqi@localhost) by lor.watermarkgroup.com (8.8.8/8.8.8) id OAA12069; Wed, 8 Sep 1999 14:33:57 -0400 (EDT) (envelope-from luoqi) Date: Wed, 8 Sep 1999 14:33:57 -0400 (EDT) From: Luoqi Chen Message-Id: <199909081833.OAA12069@lor.watermarkgroup.com> To: marcus@jet.franken.de, nox@jelal.kn-bremen.de Subject: Re: debugger, stepi, c(ontinue) from breakpoint... Cc: FreeBSD-emulation@FreeBSD.ORG, wine-devel@winehq.com Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > - if ((frame.tf_eflags & PSL_T) && !(frame.tf_eflags & PSL_VM)) { > + if ((frame.tf_eflags & PSL_T) && !(frame.tf_eflags & PSL_VM) && > + *callp->sy_call != sigreturn && *callp->sy_call != linux_sigreturn) { > /* Traced syscall. */ > frame.tf_eflags &= ~PSL_T; > + /* tell the signal handler this is a trace trap */ > + frame.tf_trapno = T_TRCTRAP; > trapsignal(p, SIGTRAP, 0); > } > > (so wine must be the first program that handles SIGTAP for itself and > sets the trace bit from a signal handler? :) I Cc'd this to -emulation, > are any committers reading or should i also send-pr it?) > It seems to me that SIGTRAP is signalled for either a breakpoint or the TF bit in eflags, so it is probably safe to assume it's a single step unless the trapno is T_BPTTRAP. -lq To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Wed Sep 8 12: 1:14 1999 Delivered-To: freebsd-emulation@freebsd.org Received: from lor.watermarkgroup.com (lor.watermarkgroup.com [207.202.73.33]) by hub.freebsd.org (Postfix) with ESMTP id 1F57614C99 for ; Wed, 8 Sep 1999 12:01:11 -0700 (PDT) (envelope-from luoqi@watermarkgroup.com) Received: (from luoqi@localhost) by lor.watermarkgroup.com (8.8.8/8.8.8) id OAA12437; Wed, 8 Sep 1999 14:58:09 -0400 (EDT) (envelope-from luoqi) Date: Wed, 8 Sep 1999 14:58:09 -0400 (EDT) From: Luoqi Chen Message-Id: <199909081858.OAA12437@lor.watermarkgroup.com> To: aries@ariesnetwork.net, freebsd-emulation@FreeBSD.ORG Subject: Re: Problem compiling wine 990731 on 3.2-stable Cc: wine-devel@winehq.com Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Hello. I'm running 3.2 stable, and am trying to compile Wine 990731. The > reason I don't use a package or port is because they are only up to > 9904??... Anyway, when I try to compile, I get the following message: > > make: don't know how to make build.o. Stop > *** Error code 2 > > I got the same thing about makedep.o, but I manually compiled it and it > worked. > > Any ideas? > > Thanks! > > Dan > Make doesn't know about suffixes like .c .o etc. It seems to me the problem lies in file Make.rules.in, change the line with empty .SUFFIXES: to something like SUFFIXES = .c .o .s .S .h .ln run configure again, make depend, then make. -lq To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Wed Sep 8 12:26:53 1999 Delivered-To: freebsd-emulation@freebsd.org Received: from aries.ariesnetwork.net (aries.postnet.com [209.96.9.250]) by hub.freebsd.org (Postfix) with ESMTP id CB28014FE7 for ; Wed, 8 Sep 1999 12:26:50 -0700 (PDT) (envelope-from aries@ariesnetwork.net) Received: from localhost (aries@localhost) by aries.ariesnetwork.net (8.9.3/8.8.8) with ESMTP id OAA35255; Wed, 8 Sep 1999 14:27:55 -0500 (CDT) (envelope-from aries@ariesnetwork.net) Date: Wed, 8 Sep 1999 14:27:54 -0500 (CDT) From: Danny To: Luoqi Chen Cc: freebsd-emulation@FreeBSD.ORG, wine-devel@winehq.com Subject: Re: Problem compiling wine 990731 on 3.2-stable In-Reply-To: <199909081858.OAA12437@lor.watermarkgroup.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 That fixed it, but now I get something different..... gcc -c -g -O2 -Wall -D__WINE__ -D_REENTRANT -I. -I. -I../include -I../include -I/usr/X11R6/include -o fnt2bdf.o fnt2bdf.c gcc -g -O2 -Wall -o fnt2bdf fnt2bdf.o /usr/lib/crt1.o: In function `_start': /usr/lib/crt1.o(.text+0x69): undefined reference to `main' *** Error code 1 Stop. *** Error code 1 Stop. Any ideas on that one? ;) On Wed, 8 Sep 1999, Luoqi Chen wrote: > > Hello. I'm running 3.2 stable, and am trying to compile Wine 990731. The > > reason I don't use a package or port is because they are only up to > > 9904??... Anyway, when I try to compile, I get the following message: > > > > make: don't know how to make build.o. Stop > > *** Error code 2 > > > > I got the same thing about makedep.o, but I manually compiled it and it > > worked. > > > > Any ideas? > > > > Thanks! > > > > Dan > > > Make doesn't know about suffixes like .c .o etc. It seems to me the problem > lies in file Make.rules.in, change the line with empty .SUFFIXES: to > something like > SUFFIXES = .c .o .s .S .h .ln > run configure again, make depend, then make. > > -lq > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Wed Sep 8 12:33:32 1999 Delivered-To: freebsd-emulation@freebsd.org Received: from garnet.sover.net (garnet.sover.net [209.198.87.53]) by hub.freebsd.org (Postfix) with ESMTP id 2748F151EE for ; Wed, 8 Sep 1999 12:33:28 -0700 (PDT) (envelope-from adams@digitalspark.net) Received: from nightfall.digitalspark.net (arc0a338.bf.sover.net [209.198.83.246]) by garnet.sover.net (8.9.3/8.9.3) with ESMTP id PAA27643; Wed, 8 Sep 1999 15:31:36 -0400 (EDT) Comments: SoVerNet Verification (on garnet.sover.net) nightfall.digitalspark.net from arc0a338.bf.sover.net [209.198.83.246] 209.198.83.246 Wed, 8 Sep 1999 15:31:36 -0400 (EDT) Date: Wed, 8 Sep 1999 15:35:10 +0000 (GMT) From: Adam Strohl To: Danny Cc: Luoqi Chen , freebsd-emulation@FreeBSD.ORG, wine-devel@winehq.com Subject: Re: Problem compiling wine 990731 on 3.2-stable In-Reply-To: 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 You really need to be using gmake, you'll just have less overall problems. - ----( Adam Strohl )------------------------------------------------ - - UNIX Operations/Systems http://www.digitalspark.net - - adams (at) digitalspark.net xxx.xxx.xxxx xxxxx - - ----------------------------------------( DigitalSpark.NET )------- - On Wed, 8 Sep 1999, Danny wrote: > That fixed it, but now I get something different..... > > gcc -c -g -O2 -Wall -D__WINE__ -D_REENTRANT -I. -I. -I../include > -I../include -I/usr/X11R6/include -o fnt2bdf.o fnt2bdf.c > gcc -g -O2 -Wall -o fnt2bdf fnt2bdf.o > /usr/lib/crt1.o: In function `_start': > /usr/lib/crt1.o(.text+0x69): undefined reference to `main' > *** Error code 1 > > Stop. > *** Error code 1 > > Stop. > > Any ideas on that one? ;) > > > On Wed, 8 Sep 1999, Luoqi Chen wrote: > > > > Hello. I'm running 3.2 stable, and am trying to compile Wine 990731. The > > > reason I don't use a package or port is because they are only up to > > > 9904??... Anyway, when I try to compile, I get the following message: > > > > > > make: don't know how to make build.o. Stop > > > *** Error code 2 > > > > > > I got the same thing about makedep.o, but I manually compiled it and it > > > worked. > > > > > > Any ideas? > > > > > > Thanks! > > > > > > Dan > > > > > Make doesn't know about suffixes like .c .o etc. It seems to me the problem > > lies in file Make.rules.in, change the line with empty .SUFFIXES: to > > something like > > SUFFIXES = .c .o .s .S .h .ln > > run configure again, make depend, then make. > > > > -lq > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-emulation" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Wed Sep 8 12:34:10 1999 Delivered-To: freebsd-emulation@freebsd.org Received: from zibbi.mikom.csir.co.za (zibbi.mikom.csir.co.za [146.64.24.58]) by hub.freebsd.org (Postfix) with ESMTP id F0303151EE for ; Wed, 8 Sep 1999 12:33:53 -0700 (PDT) (envelope-from jhay@zibbi.mikom.csir.co.za) Received: (from jhay@localhost) by zibbi.mikom.csir.co.za (8.9.3/8.9.3) id VAA61710; Wed, 8 Sep 1999 21:32:34 +0200 (SAT) (envelope-from jhay) From: John Hay Message-Id: <199909081932.VAA61710@zibbi.mikom.csir.co.za> Subject: Re: Problem compiling wine 990731 on 3.2-stable In-Reply-To: from Danny at "Sep 8, 1999 01:32:29 pm" To: aries@ariesnetwork.net (Danny) Date: Wed, 8 Sep 1999 21:32:33 +0200 (SAT) Cc: freebsd-emulation@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Hello. I'm running 3.2 stable, and am trying to compile Wine 990731. The > reason I don't use a package or port is because they are only up to > 9904??... Anyway, when I try to compile, I get the following message: > > make: don't know how to make build.o. Stop > *** Error code 2 > > I got the same thing about makedep.o, but I manually compiled it and it > worked. > > Any ideas? Try gmake and not make. They do some things that our make don't like. John -- John Hay -- John.Hay@mikom.csir.co.za To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Wed Sep 8 14:38:16 1999 Delivered-To: freebsd-emulation@freebsd.org Received: from blaubaer.kn-bremen.de (blaubaer.kn-bremen.de [195.37.179.254]) by hub.freebsd.org (Postfix) with ESMTP id B477014C4C for ; Wed, 8 Sep 1999 14:37:23 -0700 (PDT) (envelope-from nox@saturn.kn-bremen.de) Received: from saturn.kn-bremen.de (uucp@localhost) by blaubaer.kn-bremen.de (8.9.1/8.9.1) with UUCP id XAA00236; Wed, 8 Sep 1999 23:32:07 +0200 Received: (from nox@localhost) by saturn.kn-bremen.de (8.9.3/8.8.5) id WAA12047; Wed, 8 Sep 1999 22:53:34 +0200 (MET DST) From: Juergen Lock Date: Wed, 8 Sep 1999 22:53:34 +0200 To: Luoqi Chen Cc: marcus@jet.franken.de, nox@jelal.kn-bremen.de, FreeBSD-emulation@FreeBSD.ORG, wine-devel@winehq.com Subject: Re: debugger, stepi, c(ontinue) from breakpoint... Message-ID: <19990908225333.C1394@saturn.kn-bremen.de> References: <199909081833.OAA12069@lor.watermarkgroup.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.7i In-Reply-To: <199909081833.OAA12069@lor.watermarkgroup.com> Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, Sep 08, 1999 at 02:33:57PM -0400, Luoqi Chen wrote: > > > > - if ((frame.tf_eflags & PSL_T) && !(frame.tf_eflags & PSL_VM)) { > > + if ((frame.tf_eflags & PSL_T) && !(frame.tf_eflags & PSL_VM) && > > + *callp->sy_call != sigreturn && *callp->sy_call != linux_sigreturn) { > > /* Traced syscall. */ > > frame.tf_eflags &= ~PSL_T; > > + /* tell the signal handler this is a trace trap */ > > + frame.tf_trapno = T_TRCTRAP; > > trapsignal(p, SIGTRAP, 0); > > } > > > > (so wine must be the first program that handles SIGTAP for itself and > > sets the trace bit from a signal handler? :) I Cc'd this to -emulation, > > are any committers reading or should i also send-pr it?) > > > It seems to me that SIGTRAP is signalled for either a breakpoint or the > TF bit in eflags, Yup! > so it is probably safe to assume it's a single step > unless the trapno is T_BPTTRAP. Well tf_trapno is uninitialized in this case (syscall with trace bit set), unless i didn't look right. (Not that this is too important for wine since the instructions its debugger traces will rarely be FreeBSD syscalls, but there may be other programs that want to trace themselves in this way...) Whats important here for wine is the check for the sigreturn syscall, otherwise when the signal handler sets the trace bit it will be called again right away with the pc still pointing to the same instruction that caused the trap. which is why `si' didn't work... Btw i since noticed that the linux_sigreturn compare there probably won't work without COMPAT_LINUX in the kernel but for wine its not necessary, i just added it for completeness. (Well, unless someone tries to run a wine built for linux on FreeBSD, no idea if that would work :) Regards, -- Juergen Lock (remove dot foo from address to reply) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Wed Sep 8 22:37:34 1999 Delivered-To: freebsd-emulation@freebsd.org Received: from gidora.zeta.org.au (gidora.zeta.org.au [203.26.10.25]) by hub.freebsd.org (Postfix) with SMTP id 10AF21580F for ; Wed, 8 Sep 1999 22:37:12 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: (qmail 15045 invoked from network); 9 Sep 1999 05:36:55 -0000 Received: from d168.syd2.zeta.org.au (203.26.9.40) by gidora.zeta.org.au with SMTP; 9 Sep 1999 05:36:55 -0000 Date: Thu, 9 Sep 1999 15:36:50 +1000 (EST) From: Bruce Evans X-Sender: bde@alphplex.bde.org To: Juergen Lock Cc: Luoqi Chen , marcus@jet.franken.de, FreeBSD-emulation@FreeBSD.ORG, wine-devel@winehq.com Subject: Re: debugger, stepi, c(ontinue) from breakpoint... In-Reply-To: <19990908225333.C1394@saturn.kn-bremen.de> 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 Wed, 8 Sep 1999, Juergen Lock wrote: > On Wed, Sep 08, 1999 at 02:33:57PM -0400, Luoqi Chen wrote: > > > > > > - if ((frame.tf_eflags & PSL_T) && !(frame.tf_eflags & PSL_VM)) { > > > + if ((frame.tf_eflags & PSL_T) && !(frame.tf_eflags & PSL_VM) && > > > + *callp->sy_call != sigreturn && *callp->sy_call != linux_sigreturn) { > > > /* Traced syscall. */ > > > frame.tf_eflags &= ~PSL_T; > > > + /* tell the signal handler this is a trace trap */ > > > + frame.tf_trapno = T_TRCTRAP; > > > trapsignal(p, SIGTRAP, 0); This should probably be trapsignal(p, SIGTRAP, T_TRCTRAP). Signal handlers should examine the signal code (the 3rd arg to trapsignal()) before examining tf_trapno. It may be a bug to even look at tf_trapno. The signal code is supposed to be a properly translated version of tf_trapno. I think the purpose of (original version of the) above code is only to make a traced syscall stop on return from the syscall and not one instruction later. However, this is wrong if the trace flag was set by sigreturn(). Your changes seem to fix this case but break the case where sigreturn() is being traced but is not responsible for setting the trace flag. This can probably be fixed by calling trapsignal() if the trace flag was set on entry to syscall(), not if it set on exit from syscall(). > > > } > > > > > > (so wine must be the first program that handles SIGTAP for itself and > > > sets the trace bit from a signal handler? :) I Cc'd this to -emulation, Quite possibly. > > It seems to me that SIGTRAP is signalled for either a breakpoint or the > > TF bit in eflags, > > Yup! > > > so it is probably safe to assume it's a single step > > unless the trapno is T_BPTTRAP. We haven't necessarily even seen a trace trap at this point. All we know is that the trace flag is set. This is certain to be for tracing and not for a breakpoint :-). The flag means that a trace trap is scheduled, not that it has occurred. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Fri Sep 10 9:27:47 1999 Delivered-To: freebsd-emulation@freebsd.org Received: from blaubaer.kn-bremen.de (blaubaer.kn-bremen.de [195.37.179.254]) by hub.freebsd.org (Postfix) with ESMTP id 1E9EC15CCD for ; Fri, 10 Sep 1999 09:27:08 -0700 (PDT) (envelope-from nox@saturn.kn-bremen.de) Received: from saturn.kn-bremen.de (uucp@localhost) by blaubaer.kn-bremen.de (8.9.1/8.9.1) with UUCP id SAA22563; Fri, 10 Sep 1999 18:21:08 +0200 Received: (from nox@localhost) by saturn.kn-bremen.de (8.9.3/8.8.5) id SAA25808; Fri, 10 Sep 1999 18:02:26 +0200 (MET DST) From: Juergen Lock Date: Fri, 10 Sep 1999 18:02:26 +0200 To: Bruce Evans Cc: Juergen Lock , Luoqi Chen , marcus@jet.franken.de, FreeBSD-emulation@FreeBSD.ORG, wine-devel@winehq.com Subject: Re: debugger, stepi, c(ontinue) from breakpoint... Message-ID: <19990910180225.A22248@saturn.kn-bremen.de> References: <19990908225333.C1394@saturn.kn-bremen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.7i In-Reply-To: Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thu, Sep 09, 1999 at 03:36:50PM +1000, Bruce Evans wrote: > On Wed, 8 Sep 1999, Juergen Lock wrote: > > > On Wed, Sep 08, 1999 at 02:33:57PM -0400, Luoqi Chen wrote: > > > > > > > > - if ((frame.tf_eflags & PSL_T) && !(frame.tf_eflags & PSL_VM)) { > > > > + if ((frame.tf_eflags & PSL_T) && !(frame.tf_eflags & PSL_VM) && > > > > + *callp->sy_call != sigreturn && *callp->sy_call != linux_sigreturn) { > > > > /* Traced syscall. */ > > > > frame.tf_eflags &= ~PSL_T; > > > > + /* tell the signal handler this is a trace trap */ > > > > + frame.tf_trapno = T_TRCTRAP; > > > > trapsignal(p, SIGTRAP, 0); > > This should probably be trapsignal(p, SIGTRAP, T_TRCTRAP). Signal handlers > should examine the signal code (the 3rd arg to trapsignal()) before examining > tf_trapno. It may be a bug to even look at tf_trapno. The signal code is > supposed to be a properly translated version of tf_trapno. Hmm, currently code is often 0, for example in SIGTRAP... (for both trap and breakpoint.) > > I think the purpose of (original version of the) above code is only to > make a traced syscall stop on return from the syscall and not one > instruction later. Yep. > However, this is wrong if the trace flag was set > by sigreturn(). Your changes seem to fix this case but break the case > where sigreturn() is being traced but is not responsible for setting the > trace flag. True... > This can probably be fixed by calling trapsignal() if the > trace flag was set on entry to syscall(), not if it set on exit from > syscall(). Indeed! If i do that, Index: i386/i386/trap.c =================================================================== RCS file: /home/cvs/cvs/src/sys/i386/i386/trap.c,v retrieving revision 1.133.2.1 diff -u -u -r1.133.2.1 trap.c --- trap.c 1999/08/29 16:05:56 1.133.2.1 +++ trap.c 1999/09/10 14:42:21 @@ -1041,6 +1084,7 @@ int error; int args[8]; u_int code; + int tracedsyscall = ((frame.tf_eflags & PSL_T) && !(frame.tf_eflags & PSL_VM)); #ifdef DIAGNOSTIC if (ISPL(frame.tf_cs) != SEL_UPL) @@ -1135,10 +1179,12 @@ break; } - if ((frame.tf_eflags & PSL_T) && !(frame.tf_eflags & PSL_VM)) { + if (tracedsyscall) { /* Traced syscall. */ frame.tf_eflags &= ~PSL_T; - trapsignal(p, SIGTRAP, 0); + /* tell the signal handler this is a trace trap */ + frame.tf_trapno = T_TRCTRAP; + trapsignal(p, SIGTRAP, T_TRCTRAP); } userret(p, &frame, sticks); I can single-step in wine's debugger and single-step over the sigreturn syscall from gdb like it should be. (at least in a simple test program, i first tried to test this on wine itself but there i got strange signals when i tried to set breakpoints at the end of its signal handlers. this may have to do something with the fact that wine uses sigaltstack, i don't know...) > > > > > } > > > > > > > > (so wine must be the first program that handles SIGTAP for itself and > > > > sets the trace bit from a signal handler? :) I Cc'd this to -emulation, > > Quite possibly. Heh. Regards, -- Juergen Lock (remove dot foo from address to reply) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Fri Sep 10 14:43: 2 1999 Delivered-To: freebsd-emulation@freebsd.org Received: from smtp3.xs4all.nl (smtp3.xs4all.nl [194.109.127.49]) by hub.freebsd.org (Postfix) with ESMTP id 04B68152AF for ; Fri, 10 Sep 1999 14:42:53 -0700 (PDT) (envelope-from arnout@tomcat.xs4all.nl) Received: from tomcat.xs4all.nl (tomcat.xs4all.nl [194.109.15.187]) by smtp3.xs4all.nl (8.9.3/8.9.3) with ESMTP id XAA23561 for ; Fri, 10 Sep 1999 23:42:52 +0200 (CEST) Received: (from arnout@localhost) by tomcat.xs4all.nl (8.9.3/8.9.1) id XAA01297 for freebsd-emulation@freebsd.org; Fri, 10 Sep 1999 23:45:46 +0200 (CEST) Date: Fri, 10 Sep 1999 23:45:46 +0200 (CEST) From: Arnout Boer Message-Id: <199909102145.XAA01297@tomcat.xs4all.nl> To: freebsd-emulation@freebsd.org Subject: IE for Solaris.... Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Has anybody ever tried it on BSD??? IE 4/5 for SOlaris including Outlook??? It's on Microsoft ftp site? Greetz, Arnie To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Fri Sep 10 19: 7:38 1999 Delivered-To: freebsd-emulation@freebsd.org Received: from atdot.dotat.org (atdot.dotat.org [150.101.89.3]) by hub.freebsd.org (Postfix) with ESMTP id A20F814D50 for ; Fri, 10 Sep 1999 19:07:31 -0700 (PDT) (envelope-from newton@atdot.dotat.org) Received: (from newton@localhost) by atdot.dotat.org (8.9.3/8.7) id LAA85398; Sat, 11 Sep 1999 11:35:47 +0930 (CST) From: Mark Newton Message-Id: <199909110205.LAA85398@atdot.dotat.org> Subject: Re: IE for Solaris.... To: arnout@xs4all.nl (Arnout Boer) Date: Sat, 11 Sep 1999 11:35:46 +0930 (CST) Cc: freebsd-emulation@FreeBSD.ORG In-Reply-To: <199909102145.XAA01297@tomcat.xs4all.nl> from "Arnout Boer" at Sep 10, 99 11:45:46 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Arnout Boer wrote: > Has anybody ever tried it on BSD??? > IE 4/5 for SOlaris including Outlook??? > It's on Microsoft ftp site? Only for SPARC last time I looked. - mark -------------------------------------------------------------------- I tried an internal modem, newton@atdot.dotat.org but it hurt when I walked. Mark Newton ----- Voice: +61-4-1620-2223 ------------- Fax: +61-8-82231777 ----- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message