All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] GDB debugging of QEMU.
@ 2013-08-09 16:45 Yaodong Yang
  2013-08-09 16:56 ` Peter Maydell
  0 siblings, 1 reply; 6+ messages in thread
From: Yaodong Yang @ 2013-08-09 16:45 UTC (permalink / raw)
  To: qemu-devel; +Cc: Yaodong Yang

[-- Attachment #1: Type: text/plain, Size: 667 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 967 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-08-09 18:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-09 16:45 [Qemu-devel] GDB debugging of QEMU Yaodong Yang
2013-08-09 16:56 ` Peter Maydell
2013-08-09 17:11   ` Yaodong Yang
2013-08-09 17:14     ` Peter Maydell
2013-08-09 17:25       ` Max Filippov
2013-08-09 18:45         ` Yaodong Yang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.