Skip to contentSkip to conversation

QEMU via GDB

Qemu-devel [email protected] 1 participant 1 message Oct 24, 2011 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

It dosen't work. GDB returns the same error.

----- Original Message -----
From: [email protected]
Date: Monday, October 24, 2011 8:37
Subject: Re: [Qemu-discuss] [Qemu-discussion] QEMU via GDB
To: [email protected]

Quoted 36 lines

It dosen't work. GDB return the same error.

----- Original Message -----
From: [email protected]
Date: Friday, October 21, 2011 16:18
Subject: [Qemu-discuss] [Qemu-discussion] QEMU via GDB
To: [email protected]

Quoted 28 lines

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.