From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40444) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjPUo-0004W0-Nr for qemu-devel@nongnu.org; Mon, 03 Jun 2013 03:48:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UjPUi-0000Ph-MO for qemu-devel@nongnu.org; Mon, 03 Jun 2013 03:48:02 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49387) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjPUi-0000Ob-EV for qemu-devel@nongnu.org; Mon, 03 Jun 2013 03:47:56 -0400 Message-ID: <51AC4A1D.20105@redhat.com> Date: Mon, 03 Jun 2013 09:47:41 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] latest qemu with gdb remote not working List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Crosthwaite Cc: Peter Maydell , "qemu-devel@nongnu.org" , Peter Cheung Il 03/06/2013 09:42, Peter Crosthwaite ha scritto: > Hi Peter and Peter :) > > On Sun, Jun 2, 2013 at 7:27 PM, Peter Maydell wrote: >> On 2 June 2013 06:46, Peter Cheung wrote: >>> I just tried to compile the latest qemu on Fedora 18 64 bits, >>> it is also fail. When i press "c" in gdb, the qemu won't start >>> running. >> >> Good. This significantly increases the chances that somebody >> will investigate. > > I think I may have replicated as well. qemu-system-arm on Ubuntu 10.04 host. > And it works again for me after a revert of: > > commit 87f25c12bfeaaa0c41fb857713bbc7e8a9b757dc > Author: Paolo Bonzini > Date: Thu May 30 13:20:40 2013 +0200 > > gdbstub: do not restart crashed guest > > If a guest has crashed with an internal error or similar, detaching > gdb (or any other debugger action) should not restart it. > > Cc: Jan Kiszka > Signed-off-by: Paolo Bonzini > Reviewed-by: Laszlo Ersek > Message-id: 1369912840-18577-1-git-send-email-pbonzini@redhat.com > Signed-off-by: Anthony Liguori Oops, indeed you need to type cont in both gdb and the monitor after this patch. Funny I didn't notice; the fix should be to use !runstate_needs_reset() instead of runstate_check(RUN_STATE_DEBUG). But it is likely a different bug than the Mac OS X one. Paolo > Ill dig further before sending through minimal replication > instructions (gotta run!) > but Peter Cheung, can you please try your test case after reverting this commit, > to see if its perhaps the same bug? > > $ git revert 87f25c12bfeaaa0c41fb857713bbc7e8a9b757dc > > Regards, > Peter > >> >>> But one thing fedora is different than mac, when i connect gdb to qemu, it >>> won't say "warning: Error 268435459 getting port names from mach_port_names" >> >> That looks like a Mac GDB specific issue. >> >>> In my mac, i use gcc from mac port, here is the version detail: >>> >>> /Users/peter>gcc -v >> >>> gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00) >> >> This is pretty ancient -- I'd suggest using clang to build >> QEMU instead. (It probably won't fix your problem here, though.) >> >> What command line are you using to configure and build QEMU? >> >> thanks >> -- PMM >>