Skip to contentSkip to conversation

qemu-1.5.0 gdb not working

Qemu-devel Peter Cheung 2 participants 3 messages Jun 15, 2013

lore
Share & tools
lore
#0 lore raw

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 0x7c00Breakpoint 2 at 0x7c01(gdb) cContinuing. Breakpoint 1, 0x00007c00 in ?? ()(gdb) cContinuing.
Breakpoint 1, 0x00007c00 in ?? ()(gdb) cContinuing.
Breakpoint 1, 0x00007c00 in ?? ()(gdb) cContinuing.
Breakpoint 1, 0x00007c00 in ?? ()(gdb) cContinuing.
Breakpoint 1, 0x00007c00 in ?? ()(gdb)

#1 lore raw
Quoted 25 lines · Peter Cheung

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.

Quoted 3 lines

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

Hi,

What if you type stepi?

Quoted 17 lines

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)

#2 lore raw

stepi is working.

Date: Sat, 15 Jun 2013 20:56:57 +0200
From: [email protected]
To: [email protected]
CC: [email protected]
Subject: Re: [Qemu-devel] qemu-1.5.0 gdb not working

    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)