[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] How to debug the minios in xen ?





On Wed, Mar 14, 2012 at 9:27 PM, Daniel Kiper <dkiper@xxxxxxxxxxxx> 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?
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.