From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?6ams56OK?= Subject: Re: How to debug the minios in xen ? Date: Thu, 19 Apr 2012 23:53:11 +0800 Message-ID: References: <20120314132705.GA3248@router-fw-old.local.net-space.pl> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2268081605954366885==" Return-path: In-Reply-To: <20120314132705.GA3248@router-fw-old.local.net-space.pl> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Daniel Kiper Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============2268081605954366885== Content-Type: multipart/alternative; boundary=20cf300fb10141226304be0a2b84 --20cf300fb10141226304be0a2b84 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, Mar 14, 2012 at 9:27 PM, Daniel Kiper wrote: > On Tue, Mar 13, 2012 at 02:16:26PM +0800, ?????? wrote: > > Hi, > > The minios source code is in extra/minios. After compiling, I got a > > file called mini-os.gz, then I succeed to start a domainU by setting th= e > > kernerl to be mini-os.gz in config file 'minios.conf' as follow: > > # Kernel image file. > > kernel =3D "/home/test/minios.gz" > > > > The command 'xm list' show: > > Name ID Mem VCPUs State > > Time(s) > > Domain-0 0 1220 2 r----- > > 11527.3 > > minios-120 5 256 1 --p--- > > 1110.5 > > > > I got the gdbserver-xen later and run 'gdbserver-xen > > 127.0.0.1:9999--attach 5'(5 is the domid). Next, run 'gdb > > /path/to/minios/exefile', and > > then 'bt' in gdb, but no stack info. > > thanks in advance for your help. > > Hmmm... I think that you forgot to connect to gdbserver-xen. > Run following command from gdb: target remote :9999 > and do not forget compile mini-os with symbols. > > Daniel > Thanks=EF=BC=8CI'll have a try. I'm not clear about compiling mini-os with symbols, does it make sense that specifing the /path/to/minios-source in gdb cmd line and the gdb would find the symbols infomation automatically? --20cf300fb10141226304be0a2b84 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Wed, Mar 1= 4, 2012 at 9:27 PM, Daniel Kiper <dkiper@net-space.pl> wro= te:
On Tue, Mar 13, 2012 at 02= :16:26PM +0800, ?????? wrote:
> Hi,
> =C2=A0 =C2=A0 The minios source code is in extra/minios. After compili= ng, I got a
> file called mini-os.gz, then I succeed to start a domainU by setting t= he
> kernerl to be mini-os.gz in config file 'minios.conf' as follo= w:
> # Kernel image file.
> kernel =3D "/home/test/minios.gz"
>
> =C2=A0 =C2=A0 The command 'xm list' show:
> Name =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0ID =C2=A0 Mem VCPUs =C2=A0 =C2=A0 =C2=A0State
> Time(s)
> Domain-0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 0 =C2=A0= 1220 =C2=A0 =C2=A0 2 =C2=A0 =C2=A0 r-----
> =C2=A011527.3
> minios-120 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 5 =C2=A0 256 = =C2=A0 =C2=A0 1 =C2=A0 =C2=A0 --p---
> 1110.5
>
> =C2=A0 =C2=A0 I got the gdbserver-xen later and run 'gdbserver-xen=
> 127.0.0.1:9999--attach 5'(5 is the domid). Next, run 'gd= b
> /path/to/minios/exefile', and
> then 'bt' in gdb, but no stack info.
> =C2=A0 =C2=A0 thanks in advance for your help.

Hmmm... I think that you forgot to connect to gdbserver-xen.
Run following command from gdb: target remote :9999
and do not forget compile mini-os with symbols.

Daniel
Thanks=EF=BC=8CI'll have a try.
<= div class=3D"gmail_extra">I'm not clear about compiling mini-os with sy= mbols, does it make sense that specifing the /path/to/minios-source in gdb = cmd line and the gdb would find the symbols infomation automatically? --20cf300fb10141226304be0a2b84-- --===============2268081605954366885== 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.xen.org http://lists.xen.org/xen-devel --===============2268081605954366885==--