Received: from eggs.gnu.org ([208.118.235.92]:36657) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SxRxL-00079V-Pa for qemu-devel@nongnu.org; Fri, 03 Aug 2012 20:11:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SxRxK-0002B8-5B for qemu-devel@nongnu.org; Fri, 03 Aug 2012 20:10:59 -0400 Received: from indium.canonical.com ([91.189.90.7]:35730) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SxRxJ-0002B0-Uw for qemu-devel@nongnu.org; Fri, 03 Aug 2012 20:10:58 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1SxRxJ-0003IS-7w for ; Sat, 04 Aug 2012 00:10:57 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id D2B0F2E80E1 for ; Sat, 4 Aug 2012 00:10:56 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Sat, 04 Aug 2012 00:01:42 -0000 From: Samuel Bronson Sender: bounces@canonical.com References: <20100916064902.14555.15191.malonedeb@potassium.ubuntu.com> Message-Id: <20120804000143.9527.35045.launchpad@gac.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 640213] Re: QEMU does not communicate properly with GDB with a 64 bit guest Reply-To: Bug 640213 <640213@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org ** Tags added: gdb -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/640213 Title: QEMU does not communicate properly with GDB with a 64 bit guest Status in QEMU: New Bug description: I have been trying to figure out why I cannot debug a 64 bit kernel of my own invention. I launch qemu-system-x86_64 with the -s -S flags, we also specify -cpu core2duo -vga std and a -hda with an ext2 FS holding our multiboot kernel and GRUB2. When I try to set breakpoints and "continue" in GDB (7.2) using the very latest HEAD (b6601141cd2a170dfe773987b06f716a190ea7e0) or 0.12.0 or 0.12.5 or 13.0.rc0 or 13.0.rc1, I get failures of the same nature: 0x0000000000000000 in ?? () (gdb) break main Breakpoint 1 at 0x101730: file src/kernel/init.c, line 18. (gdb) c Program received signal SIGTRAP, Trace/breakpoint trap. 0x0000000000000000 in ?? () (gdb) Note that in this case, main lies in 64 bit mode. However, trying to break on _start yields virtually the same effect and _start is 32 bit code. By doing a git bisect, I managed to narrow the commit that introduced thi= s bug to 5f30fa18ad043a841fe9f0c3917ac60f2519ebd1. Reverting this commit on= HEAD seemingly fixed the problem for both the 32 bit and 64 bit cases. I might be doing something incorrectly on my end but this seemed to fix t= he problem. Perhaps the pertinent thing to do would be to revert 5f30fa18ad043a841fe9f0c3917ac60f2519ebd1 as it seems to do nothing but break things unless, of course, this would only break something that I am not aware of further. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/640213/+subscriptions