* [Qemu-devel] QEMU via GDB
@ 2011-10-21 6:29 Davide
2011-10-21 7:14 ` Robert Wang
0 siblings, 1 reply; 3+ messages in thread
From: Davide @ 2011-10-21 6:29 UTC (permalink / raw)
To: qemu-devel
Dear all,
I am trying to debug QEMU via GDB.
I configured and compiled QEMU with debugging flags, i.e.,
# CFLAGS="-g3 -O0" ./configure --disable-gfx-check
and run gdb:
# gdb ./i386-linux-user/qemu-i386
(gdb) break main
(gdb) run
Starting program: /home/test/femu/i386-linux-user/qemu-i386
Failed to read a valid object file image from memory.
Warning:
Cannot insert breakpoint 1.
Error accessing memory address 0x2f7df: Input/output error.
Is there any extra flag to be specified with the GDB for QEMU debugging?
I am wondering if the QEMU virtual machine creates any problem to the
GDB virtual machine.
Thanks.
G.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] QEMU via GDB
2011-10-21 6:29 [Qemu-devel] QEMU via GDB Davide
@ 2011-10-21 7:14 ` Robert Wang
0 siblings, 0 replies; 3+ messages in thread
From: Robert Wang @ 2011-10-21 7:14 UTC (permalink / raw)
To: Davide; +Cc: qemu-devel
What is your configure parameters?
I think you could try like this:
./configure --enable-debug --extra-cflags="-g3 -O0"
And I did not find options like disable-gfx-check.
2011/10/21 Davide <outshell88@gmail.com>:
> Dear all,
> I am trying to debug QEMU via GDB.
>
>
> I configured and compiled QEMU with debugging flags, i.e.,
> # CFLAGS="-g3 -O0" ./configure --disable-gfx-check
>
>
> and run gdb:
>
>
> # gdb ./i386-linux-user/qemu-i386
>
>
> (gdb) break main
> (gdb) run
>
> Starting program: /home/test/femu/i386-linux-user/qemu-i386
> Failed to read a valid object file image from memory.
> Warning:
> Cannot insert breakpoint 1.
> Error accessing memory address 0x2f7df: Input/output error.
>
>
> Is there any extra flag to be specified with the GDB for QEMU debugging? I
> am wondering if the QEMU virtual machine creates any problem to the GDB
> virtual machine.
>
>
> Thanks.
>
>
> G.
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Qemu-devel] QEMU via GDB
@ 2011-10-21 7:04 davide.ferraretto
0 siblings, 0 replies; 3+ messages in thread
From: davide.ferraretto @ 2011-10-21 7:04 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 655 bytes --]
Dear all,
I am trying to debug QEMU via GDB.
I configured and compiled QEMU with debugging flags, i.e.,
# CFLAGS="-g3 -O0" ./configure --disable-gfx-check
and run gdb:
# gdb ./i386-linux-user/qemu-i386
(gdb) break main
(gdb) run
Starting program: /home/test/femu/i386-linux-user/qemu-i386
Failed to read a valid object file image from memory.
Warning:
Cannot insert breakpoint 1.
Error accessing memory address 0x2f7df: Input/output error.
Is there any extra flag to be specified with the GDB for QEMU debugging? I am wondering if the QEMU virtual machine creates any problem to the GDB virtual machine.
Thanks.
[-- Attachment #2: Type: text/html, Size: 736 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-10-21 7:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-21 6:29 [Qemu-devel] QEMU via GDB Davide
2011-10-21 7:14 ` Robert Wang
-- strict thread matches above, loose matches on Subject: below --
2011-10-21 7:04 davide.ferraretto
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).