Received: from eggs.gnu.org ([140.186.70.92]:37845) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RH99H-0000vY-OX for qemu-devel@nongnu.org; Fri, 21 Oct 2011 03:04:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RH99G-0001Ak-KJ for qemu-devel@nongnu.org; Fri, 21 Oct 2011 03:04:11 -0400 Received: from msg1.univr.it ([157.27.2.18]:58309) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RH99G-0001AU-FN for qemu-devel@nongnu.org; Fri, 21 Oct 2011 03:04:10 -0400 Received: from msg1.univr.it (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 353F13CBF9 for ; Fri, 21 Oct 2011 09:04:08 +0200 (CEST) Received: from mailfe2.univr.it (unknown [157.27.2.231]) by msg1.univr.it (Postfix) with ESMTP id DE44A3CC07 for ; Fri, 21 Oct 2011 09:04:07 +0200 (CEST) Received: from univr.it (localhost [127.0.0.1]) by mailfe2.univr.it (Sun Java(tm) System Messaging Server 6.3-4.01 (built Aug 3 2007; 32bit)) with ESMTPA id <0LTE00MYHMAVZD00@mailfe2.univr.it> for qemu-devel@nongnu.org; Fri, 21 Oct 2011 09:04:07 +0200 (CEST) From: davide.ferraretto@studenti.univr.it Message-id: Date: Fri, 21 Oct 2011 09:04:07 +0200 MIME-version: 1.0 Content-language: en Content-type: multipart/alternative; boundary=--4abf2c52c9aa2752529 Subject: [Qemu-devel] QEMU via GDB List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This is a multi-part message in MIME format. ----4abf2c52c9aa2752529 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 7bit 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. ----4abf2c52c9aa2752529 Content-Type: text/html; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 7bit 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. ----4abf2c52c9aa2752529--