xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: 马磊 <aware.why@gmail.com>
To: Daniel Kiper <dkiper@net-space.pl>
Cc: xen-devel@lists.xensource.com
Subject: Re: How to debug the minios in xen ?
Date: Thu, 19 Apr 2012 23:53:11 +0800	[thread overview]
Message-ID: <CA+ePHTCTSrYoBSVys-PdsKW0hgCSSvHpu3-soF=oByfAc6wx9A@mail.gmail.com> (raw)
In-Reply-To: <20120314132705.GA3248@router-fw-old.local.net-space.pl>


[-- Attachment #1.1: Type: text/plain, Size: 1398 bytes --]

On Wed, Mar 14, 2012 at 9:27 PM, Daniel Kiper <dkiper@net-space.pl> 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 the
> > kernerl to be mini-os.gz in config file 'minios.conf' as follow:
> > # Kernel image file.
> > kernel = "/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,I'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?

[-- Attachment #1.2: Type: text/html, Size: 2048 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

  reply	other threads:[~2012-04-19 15:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-13  6:16 How to debug the minios in xen ? 马磊
2012-03-14 13:27 ` Daniel Kiper
2012-04-19 15:53   ` 马磊 [this message]
2012-04-20 18:08     ` Daniel Kiper

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+ePHTCTSrYoBSVys-PdsKW0hgCSSvHpu3-soF=oByfAc6wx9A@mail.gmail.com' \
    --to=aware.why@gmail.com \
    --cc=dkiper@net-space.pl \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).