Received: from eggs.gnu.org ([208.118.235.92]:33746) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SvfMk-0003j5-SW for qemu-devel@nongnu.org; Sun, 29 Jul 2012 22:05:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SvfMh-0007oT-FS for qemu-devel@nongnu.org; Sun, 29 Jul 2012 22:05:50 -0400 Received: from indium.canonical.com ([91.189.90.7]:51638) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SvfMg-0007nx-Td for qemu-devel@nongnu.org; Sun, 29 Jul 2012 22:05:47 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1SvfMf-0001bP-W9 for ; Mon, 30 Jul 2012 02:05:46 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id EF2C32E804D for ; Mon, 30 Jul 2012 02:05:45 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Mon, 30 Jul 2012 01:55:53 -0000 From: Legorol Sender: bounces@canonical.com References: <20120730014155.9541.71695.malonedeb@soybean.canonical.com> Message-Id: <20120730015554.28335.54037.launchpad@gac.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1030666] Re: 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 ** Description changed: - Using qemu-1.0.1-windows.zip package from http://lassauge.free.fr/qemu/ + Using qemu-1.1.0-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 + =C2=A0=C2=A0qemu-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 + =C2=A0=C2=A0gdb 7.3.50.20111026-cvs running on Cygwin 1.7.16 + =C2=A0=C2=A0gdb 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" + =C2=A0=C2=A0"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" + =C2=A0=C2=A0"break *0xf730" + =C2=A0=C2=A0"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. -- = 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.1.0-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: =C2=A0=C2=A0qemu-system-i386.exe -L Bios -fda "DOS.vfd" -fdb "Data.vfd" -= gdb tcp:127.0.0.1:1234 Debbugers tried: =C2=A0=C2=A0gdb 7.3.50.20111026-cvs running on Cygwin 1.7.16 =C2=A0=C2=A0gdb 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: =C2=A0=C2=A0"target remote localhost:1234" I know the address at which hello.com will be loaded, so set a breakpoint= there and resume execution: =C2=A0=C2=A0"break *0xf730" =C2=A0=C2=A0"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