From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1422997AbXDTHQq (ORCPT ); Fri, 20 Apr 2007 03:16:46 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1423026AbXDTHQq (ORCPT ); Fri, 20 Apr 2007 03:16:46 -0400 Received: from ug-out-1314.google.com ([66.249.92.173]:31389 "EHLO ug-out-1314.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1422997AbXDTHQp (ORCPT ); Fri, 20 Apr 2007 03:16:45 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=pOKJbO9nPszz+RBuuIkctWFs8PLkGzlgN7fTF97gWb2+TDLbYWUld1z8tJT7VBSA/hU3Uk8RsTeZpjSRL4uZJ2fWMV9MjhA3dJ48HLiWXE4W2oqSsA0ob5xNYntD0VpEvKX4gAfnRb3ZnsFlOlb74Rh7TCKp0GFpsQOqluU8ujM= Message-ID: Date: Fri, 20 Apr 2007 15:16:43 +0800 From: albcamus To: roland Subject: RE: VMWare Workstation 6 for debugging Linux Kernel (!) Cc: linux-kernel@vger.kernel.org In-Reply-To: <03f401c782d4$95c323e0$eeeea8c0@aldipc> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <03f401c782d4$95c323e0$eeeea8c0@aldipc> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 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 : > 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/ >