From: Ian Campbell Subject: Re: Re:Re: please help about gdbsx Date: Thu, 9 Dec 2010 12:12:21 +0000 Message-ID: <1291896741.13966.4668.camel@zakaz.uk.xensource.com> References: <1291715264.13966.2478.camel@zakaz.uk.xensource.com> <58975324.efea.12cc02880ee.Coremail.topperxin@126.com> <2ac33660.10859.12ccb06753a.Coremail.topperxin@126.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <2ac33660.10859.12ccb06753a.Coremail.topperxin@126.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: topperxin Cc: xen-devel List-Id: xen-devel@lists.xenproject.org On Thu, 2010-12-09 at 12:06 +0000, topperxin wrote: > hi Ian > As your suggestions, I compile the gdbsx tools independently use > make gdbsx=3Dy tools > but when I executed the gdbsx on dom0, I got this error: > ERROR:_check_hyp:Hyp is NOT enabled for gdbsx > ERROR: failed to attach to domain:2 errno:38 > It looks like I have to recompile the xen & make it enable gdbsx. > I just do like this: make gdbsx=3Dy > but I still get the error which I offered before. Try adding "KERNELS=3D" to your make line, that will avoid the error compiling the kernel. > Should I use xen4.0.1? xen 4.0.0 not support gdbsx? > our system using xen 4.0.0=20 I've no idea but as a general rule using the most recent stable release is a good idea. Ian. > =20 >=20 >=20 >=20 >=20 > At 2010-12-07 17:47:44=EF=BC=8C"Ian Campbell" = wrote: >=20 > >On Tue, 2010-12-07 at 09:27 +0000, topperxin wrote: > >> hello mukesh > >> Now,I want debug the xen domU kernel or kernel modules, I foun= d > >> the tools gdbsx under xen source directory. As the guide of README y= ou > >> wrote, I compile the xen with:=20 > >> make gdbsx=3Dy > >>=20 > >>=20 > >> but I got the errors as below: > >> remote: Counting objects: 1857338, done. > >> remote: Compressing objects: 100% (292566/292566), done. > >> Receiving objects: 100% (1857338/1857338), 368.84 MiB | 53 KiB/s, > >> done. > >> remote: Total 1857338 (delta 1554805), reused 1849232 (delta 1547905= ) > >> Resolving deltas: 100% (1554805/1554805), done. > >> Checking out files: 100% (30571/30571), done. > >> + cd linux-2.6-pvops.git.tmp > >> + git checkout xen/master > >> error: pathspec 'xen/master' did not match any file(s) known to git. > >> make[2]: *** [linux-2.6-pvops.git/.valid-src] error 1 > >> make[2]: Leaving directory `/home/nlx/nex-4.5.4/xen' > >> make[1]: *** [linux-2.6-pvops-install] error 2 > >> make[1]: Leaving directory `/home/nlx/nex-4.5.4/xen' > >> make: *** [install-kernels] error 1 > > > >This error message clearly indicates a problem building the kernel and > >not gdbsx. > > > >The fact that your kernel build tried to clone xen/master suggests you > >are not building in an uptodate Xen source tree (it looks like you hav= e > >4.0.0). I recommend you use either the xen-4.0-testing.hg mercurial tr= ee > >or at a minimum update to the 4.0.1 release. > > > >Since you only need to build the tools and not the kernels or hypervis= or > >you can use the tools targets as described in "make help". e.g. > > > > $ make gdbsx=3Dy tools > > > >(it looks like gdbsx=3Dy is redundant since building gdbsx is not actu= ally > >optional, probably tools/debugger/gdbsx/README is out of date) > > > >Ian. > > > > > > > > > >_______________________________________________ > >Xen-devel mailing list > >Xen-devel@lists.xensource.com > >http://lists.xensource.com/xen-devel >=20 >=20 >=20 > ______________________________________________________________________ > =E7=BD=91=E6=98=93163/126=E9=82=AE=E7=AE=B1=E7=99=BE=E5=88=86=E7=99=BE=E5= =85=BC=E5=AE=B9iphone ipad=E9=82=AE=E4=BB=B6=E6=94=B6=E5=8F=91