Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HGV5O-0008Aa-6r for qemu-devel@nongnu.org; Mon, 12 Feb 2007 01:54:50 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HGV5M-0008AE-7L for qemu-devel@nongnu.org; Mon, 12 Feb 2007 01:54:49 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HGV5M-0008AB-4O for qemu-devel@nongnu.org; Mon, 12 Feb 2007 01:54:48 -0500 Received: from web62001.mail.re1.yahoo.com ([69.147.74.224]) by monty-python.gnu.org with smtp (Exim 4.52) id 1HGV5L-0005Ks-P1 for qemu-devel@nongnu.org; Mon, 12 Feb 2007 01:54:47 -0500 Date: Sun, 11 Feb 2007 22:54:44 -0800 (PST) From: Ilya Shar MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <103570.87635.qm@web62001.mail.re1.yahoo.com> Subject: [Qemu-devel] Help with gdb on Mac OS 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 I am trying to step through i386-darwin-user/qemu-i386 in gdb but I am getting a KERN_PROTECTION_FAILURE fairly early in the run: (gdb) run /bin/ls Starting program: /Users/ilya/tmp/feb11/qemu-0.9.0/i386-darwin-user/qemu-i386 /bin/ls Reading symbols for shared libraries . done Starting /bin/ls with qemu ---------------- Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_PROTECTION_FAILURE at address: 0x2115eaf5 helper_cmpxchg8b () at ../cpu-all.h:344 344 ((uint32_t *)ptr)[0] = x.p[0]; (gdb) The offending value of ptr is misalligned, can this indicate a problem? Reducing optimization or setting -g3 doesn't change this behavior. Strangely, the same example runs fine without gdb. Is there any way to correct the gdb problem? I am using gdb 6.3 on Mac OS Intel with QEMU 0.9.0 and patches for gcc4/Mac posted by Mike Kronenberg. Thanks for your help, Ilya ____________________________________________________________________________________ Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games. http://videogames.yahoo.com/platform?platform=120121