2006-03-22 14:09:46

by Mikado

[permalink] [raw]
Subject: Re: [uml-devel] Cannot debug UML

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Stefano Melchior wrote:
> On Wed, Mar 22, 2006 at 08:32:48PM +0700, Mikado wrote:
> Hi Mikado,

Hi Stex

> same problem as mine:
> ./linux mode=tt debug ubd0=root_fs ubd1=swap mem=128MB eth0=tuntap,,,192.168.0.254
>
> You wrongly used "mem" option!

I've checked my UML's memory, it's exactly 128MB. But thank you, I will
follow UML rules.

> First, see man user-mode-linux, you can not specify "mem=128MB", at least
> "mem=128M". But for issue tied to TT option sometimes you need to use
> "mem=xxxm" and sometimes "mem=xxxM".
> Please de-select TT in the uml kernel, then try again

Debugging UML requires running it under TT mode. Normally I run UML
under SKAS mode, everything is OK. I cannot get into GDB under SKAS mode
whenever I use 'debug' option.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEIVuPNWc9T2Wr2JcRAjsWAKDZqL/h6J/aPez9thhcgF2+Ee7BNwCeMaxh
tLYonH5TOq0yg/7A6lCq3ag=
=etco
-----END PGP SIGNATURE-----


2006-03-22 15:36:23

by Jeff Dike

[permalink] [raw]
Subject: Re: [uml-devel] Cannot debug UML

On Wed, Mar 22, 2006 at 09:13:35PM +0700, Mikado wrote:
> Debugging UML requires running it under TT mode.

No, it doesn't. Never has.

> Normally I run UML
> under SKAS mode, everything is OK. I cannot get into GDB under SKAS mode
> whenever I use 'debug' option.

Because it's not needed. In skas mode, you just gdb the thing, just like
anything else.

Jeff

2006-03-22 15:40:57

by Blaisorblade

[permalink] [raw]
Subject: Re: [uml-devel] Cannot debug UML

On Wednesday 22 March 2006 15:13, Mikado wrote:
> Stefano Melchior wrote:
> > On Wed, Mar 22, 2006 at 08:32:48PM +0700, Mikado wrote:
> > Hi Mikado,

> Debugging UML requires running it under TT mode. Normally I run UML
> under SKAS mode, everything is OK. I cannot get into GDB under SKAS mode
> whenever I use 'debug' option.

debug is an ugly trick for TT-only.

For SKAS mode use the normal debug sequence:

$ gdb vmlinux
(gdb) <set breakpoints, do what you want>
(gdb) run <params>

More info at the "debugging UML" link, "SKAS" subsection on the main site.
--
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade




___________________________________
Yahoo! Messenger with Voice: chiama da PC a telefono a tariffe esclusive
http://it.messenger.yahoo.com

2006-03-22 16:14:15

by Mikado

[permalink] [raw]
Subject: Re: [uml-devel] Cannot debug UML

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Blaisorblade wrote:
> For SKAS mode use the normal debug sequence:
>
> $ gdb vmlinux
> (gdb) <set breakpoints, do what you want>
> (gdb) run <params>
>
> More info at the "debugging UML" link, "SKAS" subsection on the main site.

Thank you Blaisorblade,

Oh sorry, I didn't keep my eyes open. It's easy to miss the "Kernel
debugging in skas mode" (
http://user-mode-linux.sourceforge.net/debugging-skas.html ) link on
"Kernel debugging" (
http://user-mode-linux.sourceforge.net/debugging.html ) section.

I wonder why "kernel debugging (under TT mode)" is accessed directly on
UML homepage when TT mode is "old".

Thank you all.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEIXi6NWc9T2Wr2JcRAlIeAKCLvElfMxfWgSDMRJSSO7Xv7M5ndwCfY4qk
MwW+qvmOQMOAQGgWyoPB7g8=
=yJ4o
-----END PGP SIGNATURE-----

2006-03-22 16:53:30

by Jeff Dike

[permalink] [raw]
Subject: Re: [uml-devel] Cannot debug UML

On Wed, Mar 22, 2006 at 11:18:02PM +0700, Mikado wrote:
> I wonder why "kernel debugging (under TT mode)" is accessed directly on
> UML homepage when TT mode is "old".

The site is in desperate need of an update (which I have planned).

Jeff