From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:33504) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIEEn-0008EO-IS for qemu-devel@nongnu.org; Mon, 24 Oct 2011 02:42:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RIEEl-0004qE-S5 for qemu-devel@nongnu.org; Mon, 24 Oct 2011 02:42:21 -0400 Received: from msg3.univr.it ([157.27.2.19]:51232) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIEEl-0004pN-Df for qemu-devel@nongnu.org; Mon, 24 Oct 2011 02:42:19 -0400 From: davide.ferraretto@studenti.univr.it Message-id: Date: Mon, 24 Oct 2011 08:42:12 +0200 MIME-version: 1.0 Content-language: en In-reply-to: References: Content-type: multipart/alternative; boundary=--1e0370c1f4f56fc51b78 Subject: Re: [Qemu-devel] [Qemu-discuss] [Qemu-discussion] QEMU via GDB List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, wdongxu@linux.vnet.ibm.com This is a multi-part message in MIME format. ----1e0370c1f4f56fc51b78 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 7bit It dosen't work. GDB returns the same error. ----- Original Message ----- From: davide.ferraretto@studenti.univr.it Date: Monday, October 24, 2011 8:37 Subject: Re: [Qemu-discuss] [Qemu-discussion] QEMU via GDB To: davide.ferraretto@studenti.univr.it > It dosen't work. GDB return the same error. > > ----- Original Message ----- > From: davide.ferraretto@studenti.univr.it > Date: Friday, October 21, 2011 16:18 > Subject: [Qemu-discuss] [Qemu-discussion] QEMU via GDB > To: qemu-discuss@nongnu.org > > > 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. ----1e0370c1f4f56fc51b78 Content-Type: text/html; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable =3Cfont face=3D=22=27PrimaSans BT=2CVerdana=2Csans-serif=27=22=3EIt dose= n=27t work=2E GDB returns the same error=2E=3C/font=3E=3Cbr=3E=3Cbr=3E--= --- Original Message -----=3Cbr=3EFrom=3A davide=2Eferraretto=40studenti= =2Eunivr=2Eit=3Cbr=3EDate=3A Monday=2C October 24=2C 2011 8=3A37=3Cbr=3E= Subject=3A Re=3A =5BQemu-discuss=5D =5BQemu-discussion=5D QEMU via GDB=3C= br=3ETo=3A davide=2Eferraretto=40studenti=2Eunivr=2Eit=3Cbr=3E=3Cbr=3E=3C= font style=3D=22font-style=3A normal=3B font-weight=3A normal=3B backgro= und-color=3A rgb(245=2C 248=2C 240)=3B font-size=3A 14px=3B=22=3E=26gt=3B= =3C/font=3EIt dosen=27t work=2E GDB return the same error=2E=3Cbr=3E=3C= font style=3D=22font-style=3A normal=3B font-weight=3A normal=3B backgro= und-color=3A rgb(245=2C 248=2C 240)=3B font-size=3A 14px=3B=22=3E=26gt=3B= =3C/font=3E=3Cbr=3E=3Cfont style=3D=22font-style=3A normal=3B font-weig= ht=3A normal=3B background-color=3A rgb(245=2C 248=2C 240)=3B font-size=3A= 14px=3B=22=3E=26gt=3B =3C/font=3E----- Original Message -----=3Cbr=3E=3C= font style=3D=22font-style=3A normal=3B font-weight=3A normal=3B backgro= und-color=3A rgb(245=2C 248=2C 240)=3B font-size=3A 14px=3B=22=3E=26gt=3B= =3C/font=3EFrom=3A davide=2Eferraretto=40studenti=2Eunivr=2Eit=3Cbr=3E=3C= font style=3D=22font-style=3A normal=3B font-weight=3A normal=3B backgro= und-color=3A rgb(245=2C 248=2C 240)=3B font-size=3A 14px=3B=22=3E=26gt=3B= =3C/font=3EDate=3A Friday=2C October 21=2C 2011 16=3A18=3Cbr=3E=3Cfont = style=3D=22font-style=3A normal=3B font-weight=3A normal=3B background-c= olor=3A rgb(245=2C 248=2C 240)=3B font-size=3A 14px=3B=22=3E=26gt=3B =3C= /font=3ESubject=3A =5BQemu-discuss=5D =5BQemu-discussion=5D QEMU via GDB= =3Cbr=3E=3Cfont style=3D=22font-style=3A normal=3B font-weight=3A normal= =3B background-color=3A rgb(245=2C 248=2C 240)=3B font-size=3A 14px=3B=22= =3E=26gt=3B =3C/font=3ETo=3A qemu-discuss=40nongnu=2Eorg=3Cbr=3E=3Cfont = style=3D=22font-style=3A normal=3B font-weight=3A normal=3B background-c= olor=3A rgb(245=2C 248=2C 240)=3B font-size=3A 14px=3B=22=3E=26gt=3B =3C= /font=3E=3Cbr=3E=3Cfont face=3D=22=27PrimaSans BT=2CVerdana=2Csans-serif= =27=22=3E=3Cfont style=3D=22font-style=3A normal=3B font-weight=3A norma= l=3B background-color=3A rgb(245=2C 248=2C 240)=3B font-size=3A 14px=3B=22= =3E=3Cfont style=3D=22font-style=3A normal=3B font-weight=3A normal=3B b= ackground-color=3A rgb(245=2C 248=2C 240)=3B font-size=3A 14px=3B=22=3E=26= gt=3B =3C/font=3E=26gt=3B =3C/font=3EDear all=2C =3Cbr=3E=3Cfont style=3D= =22font-style=3A normal=3B font-weight=3A normal=3B background-color=3A = rgb(245=2C 248=2C 240)=3B font-size=3A 14px=3B=22=3E=3Cfont style=3D=22f= ont-style=3A normal=3B font-weight=3A normal=3B background-color=3A rgb(= 245=2C 248=2C 240)=3B font-size=3A 14px=3B=22=3E=26gt=3B =3C/font=3E=26g= t=3B =3C/font=3EI am trying to debug QEMU via GDB=2E =3Cbr=3E =3Cfont st= yle=3D=22font-style=3A normal=3B font-weight=3A normal=3B background-col= or=3A rgb(245=2C 248=2C 240)=3B font-size=3A 14px=3B=22=3E=3Cfont style=3D= =22font-style=3A normal=3B font-weight=3A normal=3B background-color=3A = rgb(245=2C 248=2C 240)=3B font-size=3A 14px=3B=22=3E=26gt=3B =3C/font=3E= =26gt=3B =3C/font=3E=3Cbr=3E =3Cfont style=3D=22font-style=3A normal=3B = font-weight=3A normal=3B background-color=3A rgb(245=2C 248=2C 240)=3B f= ont-size=3A 14px=3B=22=3E=3Cfont style=3D=22font-style=3A normal=3B font= -weight=3A normal=3B background-color=3A rgb(245=2C 248=2C 240)=3B font-= size=3A 14px=3B=22=3E=26gt=3B =3C/font=3E=26gt=3B =3C/font=3E=3Cbr=3E=3C= font style=3D=22font-style=3A normal=3B font-weight=3A normal=3B backgro= und-color=3A rgb(245=2C 248=2C 240)=3B font-size=3A 14px=3B=22=3E=3Cfont= style=3D=22font-style=3A normal=3B font-weight=3A normal=3B background-= color=3A rgb(245=2C 248=2C 240)=3B font-size=3A 14px=3B=22=3E=26gt=3B =3C= /font=3E=26gt=3B =3C/font=3EI configured and compiled QEMU with debuggin= g flags=2C i=2Ee=2E=2C =3Cbr=3E=3Cfont style=3D=22font-style=3A normal=3B= font-weight=3A normal=3B background-color=3A rgb(245=2C 248=2C 240)=3B = font-size=3A 14px=3B=22=3E=3Cfont style=3D=22font-style=3A normal=3B fon= t-weight=3A normal=3B background-color=3A rgb(245=2C 248=2C 240)=3B font= -size=3A 14px=3B=22=3E=26gt=3B =3C/font=3E=26gt=3B =3C/font=3E=23 CFLAGS= =3D=22-g3 -O0=22 =2E/configure --disable-gfx-check =3Cbr=3E =3Cfont styl= e=3D=22font-style=3A normal=3B font-weight=3A normal=3B background-color= =3A rgb(245=2C 248=2C 240)=3B font-size=3A 14px=3B=22=3E=3Cfont style=3D= =22font-style=3A normal=3B font-weight=3A normal=3B background-color=3A = rgb(245=2C 248=2C 240)=3B font-size=3A 14px=3B=22=3E=26gt=3B =3C/font=3E= =26gt=3B =3C/font=3E=3Cbr=3E =3Cfont style=3D=22font-style=3A normal=3B = font-weight=3A normal=3B background-color=3A rgb(245=2C 248=2C 240)=3B f= ont-size=3A 14px=3B=22=3E=3Cfont style=3D=22font-style=3A normal=3B font= -weight=3A normal=3B background-color=3A rgb(245=2C 248=2C 240)=3B font-= size=3A 14px=3B=22=3E=26gt=3B =3C/font=3E=26gt=3B =3C/font=3E=3Cbr=3E=3C= font style=3D=22font-style=3A normal=3B font-weight=3A normal=3B backgro= und-color=3A rgb(245=2C 248=2C 240)=3B font-size=3A 14px=3B=22=3E=3Cfont= style=3D=22font-style=3A normal=3B font-weight=3A normal=3B background-= color=3A rgb(245=2C 248=2C 240)=3B font-size=3A 14px=3B=22=3E=26gt=3B =3C= /font=3E=26gt=3B =3C/font=3Eand run gdb=3A =3Cbr=3E =3Cfont style=3D=22f= ont-style=3A normal=3B font-weight=3A normal=3B background-color=3A rgb(= 245=2C 248=2C 240)=3B font-size=3A 14px=3B=22=3E=3Cfont style=3D=22font-= style=3A normal=3B font-weight=3A normal=3B background-color=3A rgb(245=2C= 248=2C 240)=3B font-size=3A 14px=3B=22=3E=26gt=3B =3C/font=3E=26gt=3B =3C= /font=3E=3Cbr=3E =3Cfont style=3D=22font-style=3A normal=3B font-weight=3A= normal=3B background-color=3A rgb(245=2C 248=2C 240)=3B font-size=3A 14= px=3B=22=3E=3Cfont style=3D=22font-style=3A normal=3B font-weight=3A nor= mal=3B background-color=3A rgb(245=2C 248=2C 240)=3B font-size=3A 14px=3B= =22=3E=26gt=3B =3C/font=3E=26gt=3B =3C/font=3E=3Cbr=3E=3Cfont style=3D=22= font-style=3A normal=3B font-weight=3A normal=3B background-color=3A rgb= (245=2C 248=2C 240)=3B font-size=3A 14px=3B=22=3E=3Cfont style=3D=22font= -style=3A normal=3B font-weight=3A normal=3B background-color=3A rgb(245= =2C 248=2C 240)=3B font-size=3A 14px=3B=22=3E=26gt=3B =3C/font=3E=26gt=3B= =3C/font=3E=23 gdb =2E/i386-linux-user/qemu-i386 =3Cbr=3E =3Cfont style= =3D=22font-style=3A normal=3B font-weight=3A normal=3B background-color=3A= rgb(245=2C 248=2C 240)=3B font-size=3A 14px=3B=22=3E=3Cfont style=3D=22= font-style=3A normal=3B font-weight=3A normal=3B background-color=3A rgb= (245=2C 248=2C 240)=3B font-size=3A 14px=3B=22=3E=26gt=3B =3C/font=3E=26= gt=3B =3C/font=3E=3Cbr=3E =3Cfont style=3D=22font-style=3A normal=3B fon= t-weight=3A normal=3B background-color=3A rgb(245=2C 248=2C 240)=3B font= -size=3A 14px=3B=22=3E=3Cfont style=3D=22font-style=3A normal=3B font-we= ight=3A normal=3B background-color=3A rgb(245=2C 248=2C 240)=3B font-siz= e=3A 14px=3B=22=3E=26gt=3B =3C/font=3E=26gt=3B =3C/font=3E=3Cbr=3E=3Cfon= t style=3D=22font-style=3A normal=3B font-weight=3A normal=3B background= -color=3A rgb(245=2C 248=2C 240)=3B font-size=3A 14px=3B=22=3E=3Cfont st= yle=3D=22font-style=3A normal=3B font-weight=3A normal=3B background-col= or=3A rgb(245=2C 248=2C 240)=3B font-size=3A 14px=3B=22=3E=26gt=3B =3C/f= ont=3E=26gt=3B =3C/font=3E(gdb) break main =3Cbr=3E=3Cfont style=3D=22fo= nt-style=3A normal=3B font-weight=3A normal=3B background-color=3A rgb(2= 45=2C 248=2C 240)=3B font-size=3A 14px=3B=22=3E=3Cfont style=3D=22font-s= tyle=3A normal=3B font-weight=3A normal=3B background-color=3A rgb(245=2C= 248=2C 240)=3B font-size=3A 14px=3B=22=3E=26gt=3B =3C/font=3E=26gt=3B =3C= /font=3E(gdb) run =3Cbr=3E =3Cfont style=3D=22font-style=3A normal=3B fo= nt-weight=3A normal=3B background-color=3A rgb(245=2C 248=2C 240)=3B fon= t-size=3A 14px=3B=22=3E=3Cfont style=3D=22font-style=3A normal=3B font-w= eight=3A normal=3B background-color=3A rgb(245=2C 248=2C 240)=3B font-si= ze=3A 14px=3B=22=3E=26gt=3B =3C/font=3E=26gt=3B =3C/font=3E=3Cbr=3E=3Cfo= nt style=3D=22font-style=3A normal=3B font-weight=3A normal=3B backgroun= d-color=3A rgb(245=2C 248=2C 240)=3B font-size=3A 14px=3B=22=3E=3Cfont s= tyle=3D=22font-style=3A normal=3B font-weight=3A normal=3B background-co= lor=3A rgb(245=2C 248=2C 240)=3B font-size=3A 14px=3B=22=3E=26gt=3B =3C/= font=3E=26gt=3B =3C/font=3EStarting program=3A /home/test/femu/i386-linu= x-user/qemu-i386 =3Cbr=3E=3Cfont style=3D=22font-style=3A normal=3B font= -weight=3A normal=3B background-color=3A rgb(245=2C 248=2C 240)=3B font-= size=3A 14px=3B=22=3E=3Cfont style=3D=22font-style=3A normal=3B font-wei= ght=3A normal=3B background-color=3A rgb(245=2C 248=2C 240)=3B font-size= =3A 14px=3B=22=3E=26gt=3B =3C/font=3E=26gt=3B =3C/font=3EFailed to read = a valid object file image from memory=2E =3Cbr=3E=3Cfont style=3D=22font= -style=3A normal=3B font-weight=3A normal=3B background-color=3A rgb(245= =2C 248=2C 240)=3B font-size=3A 14px=3B=22=3E=3Cfont style=3D=22font-sty= le=3A normal=3B font-weight=3A normal=3B background-color=3A rgb(245=2C = 248=2C 240)=3B font-size=3A 14px=3B=22=3E=26gt=3B =3C/font=3E=26gt=3B =3C= /font=3EWarning=3A =3Cbr=3E=3Cfont style=3D=22font-style=3A normal=3B fo= nt-weight=3A normal=3B background-color=3A rgb(245=2C 248=2C 240)=3B fon= t-size=3A 14px=3B=22=3E=3Cfont style=3D=22font-style=3A normal=3B font-w= eight=3A normal=3B background-color=3A rgb(245=2C 248=2C 240)=3B font-si= ze=3A 14px=3B=22=3E=26gt=3B =3C/font=3E=26gt=3B =3C/font=3ECannot insert= breakpoint 1=2E =3Cbr=3E=3Cfont style=3D=22font-style=3A normal=3B font= -weight=3A normal=3B background-color=3A rgb(245=2C 248=2C 240)=3B font-= size=3A 14px=3B=22=3E=3Cfont style=3D=22font-style=3A normal=3B font-wei= ght=3A normal=3B background-color=3A rgb(245=2C 248=2C 240)=3B font-size= =3A 14px=3B=22=3E=26gt=3B =3C/font=3E=26gt=3B =3C/font=3EError accessing= memory address 0x2f7df=3A Input/output error=2E =3Cbr=3E =3Cfont style=3D= =22font-style=3A normal=3B font-weight=3A normal=3B background-color=3A = rgb(245=2C 248=2C 240)=3B font-size=3A 14px=3B=22=3E=3Cfont style=3D=22f= ont-style=3A normal=3B font-weight=3A normal=3B background-color=3A rgb(= 245=2C 248=2C 240)=3B font-size=3A 14px=3B=22=3E=26gt=3B =3C/font=3E=26g= t=3B =3C/font=3E=3Cbr=3E =3Cfont style=3D=22font-style=3A normal=3B font= -weight=3A normal=3B background-color=3A rgb(245=2C 248=2C 240)=3B font-= size=3A 14px=3B=22=3E=3Cfont style=3D=22font-style=3A normal=3B font-wei= ght=3A normal=3B background-color=3A rgb(245=2C 248=2C 240)=3B font-size= =3A 14px=3B=22=3E=26gt=3B =3C/font=3E=26gt=3B =3C/font=3E=3Cbr=3E=3Cfont= style=3D=22font-style=3A normal=3B font-weight=3A normal=3B background-= color=3A rgb(245=2C 248=2C 240)=3B font-size=3A 14px=3B=22=3E=3Cfont sty= le=3D=22font-style=3A normal=3B font-weight=3A normal=3B background-colo= r=3A rgb(245=2C 248=2C 240)=3B font-size=3A 14px=3B=22=3E=26gt=3B =3C/fo= nt=3E=26gt=3B =3C/font=3EIs there any extra flag to be specified with t= he GDB for QEMU debugging=3F I am wondering if the QEMU virtual machin= e creates any problem to the GDB virtual machine=2E =3Cbr=3E =3Cfont s= tyle=3D=22font-style=3A normal=3B font-weight=3A normal=3B background-co= lor=3A rgb(245=2C 248=2C 240)=3B font-size=3A 14px=3B=22=3E=3Cfont style= =3D=22font-style=3A normal=3B font-weight=3A normal=3B background-color=3A= rgb(245=2C 248=2C 240)=3B font-size=3A 14px=3B=22=3E=26gt=3B =3C/font=3E= =26gt=3B =3C/font=3E=3Cbr=3E =3Cfont style=3D=22font-style=3A normal=3B = font-weight=3A normal=3B background-color=3A rgb(245=2C 248=2C 240)=3B f= ont-size=3A 14px=3B=22=3E=3Cfont style=3D=22font-style=3A normal=3B font= -weight=3A normal=3B background-color=3A rgb(245=2C 248=2C 240)=3B font-= size=3A 14px=3B=22=3E=26gt=3B =3C/font=3E=26gt=3B =3C/font=3E=3Cbr=3E=3C= font style=3D=22font-style=3A normal=3B font-weight=3A normal=3B backgro= und-color=3A rgb(245=2C 248=2C 240)=3B font-size=3A 14px=3B=22=3E=3Cfont= style=3D=22font-style=3A normal=3B font-weight=3A normal=3B background-= color=3A rgb(245=2C 248=2C 240)=3B font-size=3A 14px=3B=22=3E=26gt=3B =3C= /font=3E=26gt=3B =3C/font=3EThanks=2E =3C/font=3E ----1e0370c1f4f56fc51b78--