From: Mukesh Rathor Subject: Re: kdb does not support XEN? Date: Mon, 27 Dec 2010 15:26:57 -0800 Message-ID: <20101227152657.3682859f@mantra.us.oracle.com> References: <20101221034659.GA3307@qxi> <20101222040200.GA3147@qxi> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20101222040200.GA3147@qxi> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "qihao.xi" Cc: Todd Deshane , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Wed, 22 Dec 2010 12:02:04 +0800 "qihao.xi" wrote: > On Tue, Dec 21, 2010 at 09:37:15PM -0500, Todd Deshane wrote: > >On Mon, Dec 20, 2010 at 10:47 PM, qihao.xi wrote: > >> Hi =C2=A0all, > >> > >> I want to debug Dom0 driver when installing XEN SERVER5.6 ISO. > >> The XS5.6 kernel is 2.6.27.42-0.1.1 =C2=A0I downloaded > >> "kdb-v4.4-2.6.27-rc8-common-1.1" and "kdb-v4.4-2.6.27-rc8-x86-1". > >> After patching, kdb configure does not appear. > >> > >> I found the below: > >> # cat =C2=A0arch/x86/Kconfig.debug|grep -A10 KDB > >> config KDB > >> =C2=A0 =C2=A0 =C2=A0 =C2=A0bool "Built-in Kernel Debugger support" > >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0depends on DEBU= G_KERNEL && !XEN > >> > >> This mean kdb does not support XEN? If yes, how to debug Dom0 > >> driver? Thanks! > >> > > > >Looks like there is a version for Xen: > > > >http://xen.markmail.org/search/?q=3Dgdbsx+dom0#query:gdbsx%20dom0+page:3= +mid:j6vtz7mdlrwqdyjp+state:results > > > >http://xenbits.xensource.com/ext/debuggers.hg?file/926cc93296dd/xen/kdb/= README > > > >Hope that helps. >=20 > In fact, I want to debug the modules against "/boot/vmlinuz". Not the > "boot/xen.gz" When XEN installing with ISO, it first load xen.gz,then > load vmlinuz,load my driver to check disk. It hanged at "Checking for > existing products...". This is my scsi driver problem. >=20 > LABEL install > KERNEL mboot.c32 > APPEND /boot/xen.gz dom0_mem=3D1024M com1=3D115200,8n1 > console=3Dcom1,vga --- /boot/vmlinuz xencons=3Dhvc console=3DttyS0,115200 > extramodules=3Dmy_scsi --- /install.img >=20 > I got vmlinuz's kernel source from XS5.6 source ISO image. It already > include kdb patch. But it disable XEN to ue kdb. I can need build > xen.gdb to debug vmlinuz? I'm a newbie for XEN. Any suggestion is > appreciated. Thanks! http://xenbits.xensource.com/ext/debuggers.hg?file/926cc93296dd/xen/kdb/REA= DME is totally independent of kdb patches in linux. It has nothing to do with linux kdb. You'll not need to kdb patches in linux to use it. It is a xen built-in debugger that will let you debug xen or domains. Take a look at the README. thanks Mukesh