From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53724) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7pog-0006u0-Nf for qemu-devel@nongnu.org; Fri, 09 Aug 2013 12:45:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V7poe-0005b9-2J for qemu-devel@nongnu.org; Fri, 09 Aug 2013 12:45:30 -0400 Received: from mail-vb0-x22f.google.com ([2607:f8b0:400c:c02::22f]:43978) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7pod-0005ay-U6 for qemu-devel@nongnu.org; Fri, 09 Aug 2013 12:45:27 -0400 Received: by mail-vb0-f47.google.com with SMTP id h10so4200469vbh.20 for ; Fri, 09 Aug 2013 09:45:27 -0700 (PDT) MIME-Version: 1.0 Date: Fri, 9 Aug 2013 11:45:26 -0500 Message-ID: From: Yaodong Yang Content-Type: multipart/alternative; boundary=047d7bacb98e72cb5804e3868077 Subject: [Qemu-devel] GDB debugging of QEMU. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Yaodong Yang --047d7bacb98e72cb5804e3868077 Content-Type: text/plain; charset=ISO-8859-1 Hello everyone, I have a simple question about the debugging of qemu. I used the qemu-1.5.1, and added several .c and .h files related the block drivers. I want to debug my own implementations using gdb. but I have no idea how to do it. I tried the following commands. ./configure --enable-debug --disable-werror --enable-kvm --prefix=/usr/local/kvm make -j4 sudo make install gdb sudo /usr/local/kvm/bin/qemu-system/x86_64 -s -enable-kvm -hda ubuntu.img -m 1024. Could someone give me some guidance on how to use gdb in QEMU. I know the basic usage of gdb for simple .c file, but I really donot know how to use it in QEMU. Thanks a lot in advance! Yaodong --047d7bacb98e72cb5804e3868077 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hello everyone,

I have a simple questio= n about the debugging of qemu.

I used the qemu-1.5= .1, and added several .c and .h files related the block drivers. I want to = debug my own implementations using gdb. but I have no idea how to do it.

I tried the following commands.

./configure --enable-debug --disable-werror --enable-kvm --prefix=3D/usr/= local/kvm

make -j4

sudo m= ake install

gdb sudo /usr/local/kvm/bin/qemu-system/x86_64 -s -enab= le-kvm -hda ubuntu.img -m 1024.

Could someone give= me some guidance on how to use gdb in QEMU. I know the basic usage of gdb = for simple .c file, but I really donot know how to use it in QEMU.

Thanks a lot in advance!

Yaodo= ng


--047d7bacb98e72cb5804e3868077--