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) > >