From: Caz Yokoyama Subject: RE: RE: failed in debugging Xen hypervisor with gdb stub of xen Date: Sun, 30 Aug 2009 07:05:54 -0700 Message-ID: <852D29B78F984C3191276DEBED58140C@xpjpn> References: <200908301435576257404@gmail.com> <200908302129175627729@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1275734460==" Return-path: In-Reply-To: <200908302129175627729@gmail.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: "'kyle.ma83'" Cc: 'xen-devel' List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --===============1275734460== Content-Type: multipart/alternative; boundary="----=_NextPart_000_0374_01CA2940.5383C1F0" This is a multi-part message in MIME format. ------=_NextPart_000_0374_01CA2940.5383C1F0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Hello Kyle, No, I don=A1=AFt think the debugging process is no so much different on = 3.2.0 and unstable. However, I have never installed 3.2.0. I installed 3.4.1 = and unstable which is 3.5. Therefore, I can=A1=AFt say something sure for = 3.2.0. Are you able to install 3.4.1 to know how to set up gdb and xen? -caz =20 _____ =20 From: kyle.ma83 [mailto:kyle.ma83@gmail.com]=20 Sent: Sunday, August 30, 2009 6:29 AM To: Caz Yokoyama Subject: Re: RE: [Xen-devel] failed in debugging Xen hypervisor with gdb stub of xen =20 Thanks for your reply.Caz . =20 I modified Xen based on xen-3.2.0, so I think I could not change into unstable. Is the debugging process very different between 3.2.0 and unstable? =20 Could you please show me the details about the debugging method of = unstable tree ? I am really confused after woking so long and much on the=20 =20 debugging. ): =20 Thanks a lot. =20 =20 2009-08-30=20 _____ =20 kyle.ma83=20 _____ =20 =B7=A2=BC=FE=C8=CB=A3=BA Caz Yokoyama=20 =B7=A2=CB=CD=CA=B1=BC=E4=A3=BA 2009-08-30 20:40:09=20 =CA=D5=BC=FE=C8=CB=A3=BA 'kyle.ma83'=20 =B3=AD=CB=CD=A3=BA 'xen-devel'=20 =D6=F7=CC=E2=A3=BA RE: [Xen-devel] failed in debugging Xen hypervisor = with gdb stub of xen=20 Hello Kyle, Do you have to use xen-3.2.0? Are you able to use xen-unstable? A couple = of weeks ago, xen-unstable is able to accept break point, step and continue command. If you can use xen-unstable, I can guide you to set up for debugging Xen include those commands. -caz =20 _____ =20 From: xen-devel-bounces@lists.xensource.com = [mailto:xen-devel-bounces@lists. xensource.com] On Behalf Of kyle.ma83 Sent: Saturday, August 29, 2009 11:36 PM To: xen-devel Subject: [Xen-devel] failed in debugging Xen hypervisor with gdb stub of = xen =20 Hi,everyone =20 I recently want to debug Xen, and I just follow the xen-3.2/docs/misc/crashdb.txt. I use two machines (one linux host and = one xen target)and can get the=20 =20 xen booting message with serial to a remote linux host,I set debug=3Dy = in Config.mk and set crash_debug=3Dy in xen/Rules.mk when make install xen = and=20 =20 arrange to pass gdb=3Dcom1 as a hypervisor command line argument, my = grub is as followed: =20 title xen-3.2.0 root (hd0,0) kernel /boot/xen-3.2.0.gz hap com1=3D115200,8n1 = console=3Dcom1,vga gdb=3Dcom1 sync_console module /boot/vmlinuz-2.6.18.8-xen root=3D/dev/sda1 ro = xencons=3DttyS0 module /boot/initrd.img-2.6.18.8-xen savedefault =20 I get the output infomation of Xen and Domain0, but the crashdb.txt says = =20 give the escape character (^A by default) three times to talk to Xen = (Xen prints `(XEN) *** Serial input -> Xen...'), so I follow the = instrucions. When I=20 =20 press ctrl-A three times as soon as I see: =20 (XEN) ********************************************** (XEN) ******* WARNING: CONSOLE OUTPUT IS SYNCHRONOUS (XEN) ******* This option is intended to aid debugging of Xen by = ensuring (XEN) ******* that all output is synchronously delivered on the serial = line. (XEN) ******* However it can introduce SIGNIFICANT latencies and affect (XEN) ******* timekeeping. It is NOT recommended for production use! (XEN) ********************************************** (XEN) 3... 2... 1...=20 (XEN) Xen is relinquishing VGA console. (XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch = input to Xen) (XEN) unpasue dom0 (XEN) Freed 92kB init memory. =20 but nothing happened, there is no infomation like "waiting for GDB attached...." or something else, =20 and at last get the "login as: " info , did I miss something or what = should I do? =20 Could anyone give some more details and suggestions about it or how to = debug Xen ? I 'd appreciated it much.=20 =20 Thanks a lot. 2009-08-30=20 _____ =20 Kyle Ma=20 ------=_NextPart_000_0374_01CA2940.5383C1F0 Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: quoted-printable

Hello = Kyle,

No, I don=A1=AFt = think the debugging process is no so much different on 3.2.0 and unstable. = However, I have never installed 3.2.0. I installed 3.4.1 and unstable which is 3.5. Therefore, I can=A1=AFt say something sure for = 3.2.0.

Are you able to = install 3.4.1 to know how to set up gdb and xen?

-caz

 =


From: kyle.ma83 [mailto:kyle.ma83@gmail.com]
Sent: Sunday, August 30, = 2009 6:29 AM
To: Caz Yokoyama
Subject: Re: RE: = [Xen-devel] failed in debugging Xen hypervisor with gdb stub of = xen

 

Thanks for your reply.Caz .<= /p>

 

I modified Xen based on xen-3.2.0, so I think I could not change into = unstable. Is the debugging process very different between 3.2.0 and = unstable?

 

Could you please show me the details about the debugging method of unstable = tree ? I am really confused after woking so long and much on the =

 

debugging. ):

 

Thanks a lot.

 

 

2009-08-30 <= /p>


kyle.ma83 <= /p>


=B7=A2=BC=FE=C8=CB=A3=BA Caz Yokoyama

=B7=A2=CB=CD=CA=B1=BC=E4=A3= =BA 2009-08-30  20:40:09

=CA=D5=BC=FE=C8=CB=A3=BA 'kyle.ma83'

=B3=AD=CB=CD=A3=BA 'xen-devel'

=D6=F7=CC=E2=A3=BA RE: [Xen-devel] failed in debugging Xen hypervisor with gdb stub of xen =

Hello = Kyle,

Do you have to = use xen-3.2.0? Are you able to use xen-unstable? A couple of weeks ago, xen-unstable is = able to accept break point, step and continue command. If you can use = xen-unstable, I can guide you to set up for debugging Xen include those = commands.

-caz

 =


From: xen-devel-bounces@lists.xensource.com = [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of = kyle.ma83
Sent: Saturday, August = 29, 2009 11:36 PM
To: xen-devel
Subject: [Xen-devel] = failed in debugging Xen hypervisor with gdb stub of xen

 

Hi,everyone

 

I recently want to debug Xen, and I just = follow the xen-3.2/docs/misc/crashdb.txt. I use two machines (one linux host and = one xen target)and can get the

 

xen booting message with serial to a remote = linux host,I set debug=3Dy in Config.mk and set crash_debug=3Dy in xen/Rules.mk when make install = xen and

 

arrange to pass gdb=3Dcom1&nbs= p;as a hypervisor command line argument, my grub is as followed:

 

title      &nbs= p;    xen-3.2.0

root       = ;     (hd0,0)

kernel      &nb= sp;   /boot/xen-3.2.0.gz hap com1=3D115200,8n1&n= bsp;console=3Dcom1,vga gdb=3Dcom1 sync_console

module      &nb= sp;   /boot/vmlinuz-2.6.18.8-xen root=3D/dev/sda1&nbs= p;ro xencons=3DttyS0

module      &nb= sp;   /boot/initrd.img-2.6.18.8-xen

savedefault

 

I get the output infomation of Xen and = Domain0, but the crashdb.txt says

 

give the escape character = ;(^A by default) three times to talk to Xen (Xen prints `(XEN) ***&= nbsp;Serial input -> Xen...'),  so I follow the instrucions. When I

 

press ctrl-A three times as soon as I = see:

 

(XEN) **********************************= ************

(XEN) ******* WARNING: CONSOLE=  OUTPUT IS SYNCHRONOUS

(XEN) ******* This option = ;is intended to aid debugging of Xen b= y ensuring

(XEN) ******* that all ou= tput is synchronously delivered on the seri= al line.

(XEN) ******* However it = can introduce SIGNIFICANT latencies and affect

(XEN) ******* timekeeping. It&= nbsp;is NOT recommended for production use!=

(XEN) **********************************= ************

(XEN) 3... 2... 1... 

(XEN) Xen is relinquishing&nbs= p;VGA console.

(XEN) *** Serial input -&= gt; DOM0 (type 'CTRL-a' three times to = ;switch input to Xen)

(XEN) unpasue dom0

(XEN) Freed 92kB init mem= ory.

 

but nothing happened, there is no infomation = like "waiting for GDB attached...."  or something = else,

 

 and at last get the "login as: " info , did I miss something or what should I = do?

 

Could anyone give some more details and = suggestions about it or how to debug Xen ?  I 'd appreciated it much. =

 

Thanks a lot.

2009-08-30 = <= /p>


Kyle Ma = <= /p>

------=_NextPart_000_0374_01CA2940.5383C1F0-- --===============1275734460== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1275734460==--