Received: from eggs.gnu.org ([208.118.235.92]:58075) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Svf82-0002Y8-Gu for qemu-devel@nongnu.org; Sun, 29 Jul 2012 21:50:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Svf81-0002Vt-2B for qemu-devel@nongnu.org; Sun, 29 Jul 2012 21:50:38 -0400 Received: from indium.canonical.com ([91.189.90.7]:50039) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Svf80-0002UD-QK for qemu-devel@nongnu.org; Sun, 29 Jul 2012 21:50:36 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1Svf7z-0008KX-2y for ; Mon, 30 Jul 2012 01:50:35 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id F01DE2E807D for ; Mon, 30 Jul 2012 01:50:34 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Mon, 30 Jul 2012 01:41:55 -0000 From: Legorol Sender: bounces@canonical.com References: <20120730014155.9541.71695.malonedeb@soybean.canonical.com> Message-Id: <20120730014155.9541.71695.malonedeb@soybean.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1030666] [NEW] gdb can't proceed after a breakpoint Reply-To: Bug 1030666 <1030666@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Public bug reported: Using qemu-1.0.1-windows.zip package from http://lassauge.free.fr/qemu/ Host: Windows 7 Ultimate 64-bit Guest: i386 system running MS-DOS 6.22 Launch command line: qemu-system-i386.exe -L Bios -fda "DOS.vfd" -fdb "Data.vfd" -gdb tcp:127.= 0.0.1:1234 Debbugers tried: gdb 7.3.50.20111026-cvs running on Cygwin 1.7.16 gdb 7.4 on MinGW Short description: I use gdb to attach to a running Qemu session, set a breakpoint and resume = execution. When the breakpoint is hit, gdb gains control as expected. Howev= er, trying to single-step or continue at this point just causes the same br= eakpoint to be hit immediately again. Deleting the breakpoint allows single= -stepping or continue to work. Steps to reproduce: DOS.vfd is a floppy image containing an MS-DOS 6.22 startup disk. Data.vfd is a floppy image containing a single program (hello.com). The aim is to debug the execution of hello.com with gdb. Launch Qemu. Launch gdb, an attach to qemu: "target remote localhost:1234" I know the address at which hello.com will be loaded, so set a breakpoint t= here and resume execution: "break *0xf730" "continue" In Qemu, start hello.com. The breakpoint is immediately hit, execution stop= s and gdb gains control. Examining the program gives expected results (such as "info reg" or "disass= emble"). At this point, try to proceed either with single-stepping ("si" or "ni") or= with "continue", and the same breakpoint is immediately hit again. Subsequ= ent attempts to single-step or continue just keep hitting the same breakpoi= nt. The only way to proceed at this point is to delete the breakpoint, after wh= ich both single-stepping and continue work. Note that single-stepping and continue works as expected if it is done after interrupting execution with Ctrl-C. ** Affects: qemu Importance: Undecided Status: New ** Tags: breakpoint 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/1030666 Title: gdb can't proceed after a breakpoint Status in QEMU: New Bug description: Using qemu-1.0.1-windows.zip package from http://lassauge.free.fr/qemu/ Host: Windows 7 Ultimate 64-bit Guest: i386 system running MS-DOS 6.22 Launch command line: qemu-system-i386.exe -L Bios -fda "DOS.vfd" -fdb "Data.vfd" -gdb tcp:12= 7.0.0.1:1234 Debbugers tried: gdb 7.3.50.20111026-cvs running on Cygwin 1.7.16 gdb 7.4 on MinGW Short description: I use gdb to attach to a running Qemu session, set a breakpoint and resum= e execution. When the breakpoint is hit, gdb gains control as expected. How= ever, trying to single-step or continue at this point just causes the same = breakpoint to be hit immediately again. Deleting the breakpoint allows sing= le-stepping or continue to work. Steps to reproduce: DOS.vfd is a floppy image containing an MS-DOS 6.22 startup disk. Data.vfd is a floppy image containing a single program (hello.com). The aim is to debug the execution of hello.com with gdb. Launch Qemu. Launch gdb, an attach to qemu: "target remote localhost:1234" I know the address at which hello.com will be loaded, so set a breakpoint= there and resume execution: "break *0xf730" "continue" In Qemu, start hello.com. The breakpoint is immediately hit, execution st= ops and gdb gains control. Examining the program gives expected results (such as "info reg" or "disa= ssemble"). At this point, try to proceed either with single-stepping ("si" or "ni") = or with "continue", and the same breakpoint is immediately hit again. Subse= quent attempts to single-step or continue just keep hitting the same breakp= oint. The only way to proceed at this point is to delete the breakpoint, after = which both single-stepping and continue work. Note that single-stepping and continue works as expected if it is done after interrupting execution with Ctrl-C. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1030666/+subscriptions