All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: VMWare Workstation 6 for debugging Linux Kernel (!)
@ 2007-04-20 10:58 devzero
  0 siblings, 0 replies; 12+ messages in thread
From: devzero @ 2007-04-20 10:58 UTC (permalink / raw)
  To: albcamus; +Cc: jdike, linux-kernel

>  It's really an interesting feature,  IMHO,  maybe the UML would be no
> more needed.

if you speak of debugging , uml seems to have another competitor now.

maybe somebody make some side by side comparison of vmware & uml regarding kernel debugging. (and also compare that to traditional debugging via serial line or network)

regards
roland



> -----Ursprüngliche Nachricht-----
> Von: albcamus <albcamus@gmail.com>
> Gesendet: 20.04.07 09:16:53
> An: roland <devzero@web.de>
> CC: linux-kernel@vger.kernel.org
> Betreff: RE: VMWare Workstation 6 for debugging Linux Kernel (!)


> 
> Hi roland,
>  It's really an interesting feature,  IMHO,  maybe the UML would be no
> more needed.
> thanks very much;-)
> 
> Regards,
> 
> 
> 2007/4/20, roland <devzero@web.de>:
> > Hi !
> >
> > I think this one is damn interestig for linux kernel development:
> >
> > link: http://stackframe.blogspot.com/
> > contents: see below
> >
> > regards
> > roland
> >
> > ps:
> > i`m not directly related to vmware - so this is no advertisement!
> >
> >
> > Tuesday, April 17, 2007
> > Debugging Linux kernels with Workstation 6.0
> > We just quietly added an exciting feature to Workstation 6.0. I believe it
> > will make WS6 a great tool for Linux kernel development. You can now debug
> > kernel of Linux VM with gdb running on the Host without changing anything in
> > the Guest VM. No kdb, no recompiling and no need for second machine. All you
> > need is a single line in VM's configuration file.
> >
> > To use the new feature, grab the latest build of WS6 here:
> >
> > http://www.vmware.com/products/beta/ws/
> >
> > Put this line into configuration file of your Linux VM:
> >
> > debugStub.listen.guest32=1
> >
> > Now whenever you run the virtual machine, you'll see the following on the
> > Host console:
> >
> > VMware Workstation is listening for debug connection on port 8832.
> >
> > Run gdb on the Host, reference it to the kernel with symbols and attach to
> > the virtual machine:
> >
> > % gdb
> > (gdb) file vmlinux-2.4.21-27.EL.debug
> > (gdb) target remote localhost:8832
> >
> > That's it. The VM is blocked now, so you can "continue" it and "^C" back to
> > gdb. Breakpoints, single step, memory inspection - all this works as usual.
> > If you have SMP VM, then each VCPU is mapped on a thread, so use "info
> > threads" and "thread NN" to switch between them.
> >
> > The kernels with symbols are sadly lacking on most distributions, but if you
> > use RHEL then this website may help (look for kernel-debuginfo rpm):
> >
> > http://people.redhat.com/duffy/debuginfo/index-js.html
> >
> > The gdb support in WS6 is experimental, so there may be rough edges here and
> > there. Please post on community forums if something doesn't work right or if
> > you have a suggestion:
> >
> > http://www.vmware.com/community/
> >
> > There are more debugging specific features in WS6 (for example, you can use
> > gdb hand-in-hand with Record/Replay!). I will describe them shortly.
> >
> >
> >
> >
> > -
> > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> > Please read the FAQ at  http://www.tux.org/lkml/
> >
> 


_______________________________________________________________
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192


^ permalink raw reply	[flat|nested] 12+ messages in thread
* VMWare Workstation 6 for debugging Linux Kernel (!)
@ 2007-04-19 22:46 roland
  2007-04-20  7:16 ` albcamus
  2007-04-20  8:42 ` Xavier Bestel
  0 siblings, 2 replies; 12+ messages in thread
From: roland @ 2007-04-19 22:46 UTC (permalink / raw)
  To: linux-kernel

Hi !

I think this one is damn interestig for linux kernel development:

link: http://stackframe.blogspot.com/
contents: see below

regards
roland

ps:
i`m not directly related to vmware - so this is no advertisement!


Tuesday, April 17, 2007
Debugging Linux kernels with Workstation 6.0
We just quietly added an exciting feature to Workstation 6.0. I believe it 
will make WS6 a great tool for Linux kernel development. You can now debug 
kernel of Linux VM with gdb running on the Host without changing anything in 
the Guest VM. No kdb, no recompiling and no need for second machine. All you 
need is a single line in VM's configuration file.

To use the new feature, grab the latest build of WS6 here:

http://www.vmware.com/products/beta/ws/

Put this line into configuration file of your Linux VM:

debugStub.listen.guest32=1

Now whenever you run the virtual machine, you'll see the following on the 
Host console:

VMware Workstation is listening for debug connection on port 8832.

Run gdb on the Host, reference it to the kernel with symbols and attach to 
the virtual machine:

% gdb
(gdb) file vmlinux-2.4.21-27.EL.debug
(gdb) target remote localhost:8832

That's it. The VM is blocked now, so you can "continue" it and "^C" back to 
gdb. Breakpoints, single step, memory inspection - all this works as usual. 
If you have SMP VM, then each VCPU is mapped on a thread, so use "info 
threads" and "thread NN" to switch between them.

The kernels with symbols are sadly lacking on most distributions, but if you 
use RHEL then this website may help (look for kernel-debuginfo rpm):

http://people.redhat.com/duffy/debuginfo/index-js.html

The gdb support in WS6 is experimental, so there may be rough edges here and 
there. Please post on community forums if something doesn't work right or if 
you have a suggestion:

http://www.vmware.com/community/

There are more debugging specific features in WS6 (for example, you can use 
gdb hand-in-hand with Record/Replay!). I will describe them shortly.





^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2007-04-20 12:38 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-20 10:58 VMWare Workstation 6 for debugging Linux Kernel (!) devzero
  -- strict thread matches above, loose matches on Subject: below --
2007-04-19 22:46 roland
2007-04-20  7:16 ` albcamus
2007-04-20  8:42 ` Xavier Bestel
2007-04-20 10:27   ` Andi Kleen
2007-04-20 11:21     ` Petr Vandrovec
2007-04-20 11:44       ` Nigel Cunningham
2007-04-20 12:38       ` Andi Kleen
2007-04-20 11:21     ` Nigel Cunningham
2007-04-20 11:45     ` Avi Kivity
2007-04-20 11:50       ` Nigel Cunningham
2007-04-20 11:52         ` Avi Kivity

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.