Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HDx4D-00034r-M9 for qemu-devel@nongnu.org; Mon, 05 Feb 2007 01:11:05 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HDx4B-00033v-WB for qemu-devel@nongnu.org; Mon, 05 Feb 2007 01:11:05 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HDx4B-00033s-N0 for qemu-devel@nongnu.org; Mon, 05 Feb 2007 01:11:03 -0500 Received: from web62013.mail.re1.yahoo.com ([69.147.74.236]) by monty-python.gnu.org with smtp (Exim 4.52) id 1HDx4B-00074M-CM for qemu-devel@nongnu.org; Mon, 05 Feb 2007 01:11:03 -0500 Date: Sun, 4 Feb 2007 22:11:02 -0800 (PST) From: Ilya Shar MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <978854.86834.qm@web62013.mail.re1.yahoo.com> Subject: [Qemu-devel] Signal handling for i386-darwin-user on Mac Intel Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Thanks to pointers/patches from Mike and Pierre, I can build i386-darwin-user binary. There is a glitch though with signal-handling. The following fragment in cpu_signal_handler() in cpu-exec.c pc = uc->uc_mcontext.gregs[REG_EIP]; trapno = uc->uc_mcontext.gregs[REG_TRAPNO]; appears to be Linux-specific and gives compilation errors on a Mac: /Users/ilya/tmp/feb4/qemu_cvs_user/qemu/cpu-exec.c: In function 'cpu_x86_signal_handler': /Users/ilya/tmp/feb4/qemu_cvs_user/qemu/cpu-exec.c:1307: error: request for member 'gregs' in something not a structure or union /Users/ilya/tmp/feb4/qemu_cvs_user/qemu/cpu-exec.c:1307: error: 'EIP' undeclared (first use in this function) ... When I dummy-out cpu_signal_handler() the binary compiles, but I cannot run anything because the signals are not handled. Is there a patch/solution to this? Thanks again for your help! Ilya ____________________________________________________________________________________ Never miss an email again! Yahoo! Toolbar alerts you the instant new Mail arrives. http://tools.search.yahoo.com/toolbar/features/mail/