From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46707) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Unves-0000tn-4b for qemu-devel@nongnu.org; Sat, 15 Jun 2013 14:57:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Unver-0003UI-4N for qemu-devel@nongnu.org; Sat, 15 Jun 2013 14:57:06 -0400 Received: from [2001:41d0:8:2b42::1] (port=47226 helo=ns232118.ovh.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Unveq-0003Sw-S4 for qemu-devel@nongnu.org; Sat, 15 Jun 2013 14:57:05 -0400 Message-ID: <51BCB8F9.3090301@greensocs.com> Date: Sat, 15 Jun 2013 20:56:57 +0200 From: Frederic Konrad MIME-Version: 1.0 References: In-Reply-To: Content-Type: multipart/alternative; boundary="------------080607040105050703060908" Subject: Re: [Qemu-devel] qemu-1.5.0 gdb not working List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Cheung Cc: "qemu-devel@nongnu.org" This is a multi-part message in MIME format. --------------080607040105050703060908 Content-Type: text/plain; charset=Big5 Content-Transfer-Encoding: 7bit On 15/06/2013 20:37, Peter Cheung wrote: > qemu-1.5.0 gdb not working > > In mac OSX, compile by : > ./configure --cc=/opt/local/bin/gcc-mp-4.8 --enable-cocoa > --target-list=x86_64-softmmu --audio-drv-list=coreaudio > --prefix=/Users/peter/qemu --enable-debug --disable-werror > --extra-cflags=-O2 --enable-vnc > > start qemu by: > ~/qemu/bin/qemu-system-x86_64 -hda hd10meg.img -gdb tcp::1234 -k en-us > -S -m 256m > > i start gdb and insert two breakpoints at 0x7c00 and 0x7c01, after > "c", it hit 0x7c00. Then i "c" again, it stay in 0x7c00, but it should > execute 0x7c01. > > [New thread 1] > warning: Error 268435459 getting port names from mach_port_names > [Switching to process 1 thread 0x0] > 0x0000fff0 in ?? () > Breakpoint 1 at 0x7c00 > Breakpoint 2 at 0x7c01 > (gdb) c > Continuing. > > Breakpoint 1, 0x00007c00 in ?? () > (gdb) c > Continuing. Hi, What if you type stepi? > > Breakpoint 1, 0x00007c00 in ?? () > (gdb) c > Continuing. > > Breakpoint 1, 0x00007c00 in ?? () > (gdb) c > Continuing. > > Breakpoint 1, 0x00007c00 in ?? () > (gdb) c > Continuing. > > Breakpoint 1, 0x00007c00 in ?? () > (gdb) > > --------------080607040105050703060908 Content-Type: text/html; charset=Big5 Content-Transfer-Encoding: 7bit
On 15/06/2013 20:37, Peter Cheung wrote:
qemu-1.5.0 gdb not working

In mac OSX, compile by :
./configure --cc=/opt/local/bin/gcc-mp-4.8 --enable-cocoa --target-list=x86_64-softmmu --audio-drv-list=coreaudio --prefix=/Users/peter/qemu --enable-debug --disable-werror --extra-cflags=-O2 --enable-vnc 

start qemu by:
~/qemu/bin/qemu-system-x86_64 -hda hd10meg.img -gdb tcp::1234 -k en-us -S -m 256m

i start gdb and insert two breakpoints at 0x7c00 and 0x7c01, after "c", it hit 0x7c00. Then i "c" again, it stay in 0x7c00, but it should execute 0x7c01.

[New thread 1]
warning: Error 268435459 getting port names from mach_port_names
[Switching to process 1 thread 0x0]
0x0000fff0 in ?? ()
Breakpoint 1 at 0x7c00
Breakpoint 2 at 0x7c01
(gdb) c
Continuing.

Breakpoint 1, 0x00007c00 in ?? ()
(gdb) c
Continuing.
Hi,

What if you type stepi?

Breakpoint 1, 0x00007c00 in ?? ()
(gdb) c
Continuing.

Breakpoint 1, 0x00007c00 in ?? ()
(gdb) c
Continuing.

Breakpoint 1, 0x00007c00 in ?? ()
(gdb) c
Continuing.

Breakpoint 1, 0x00007c00 in ?? ()
(gdb) 



--------------080607040105050703060908--