Re: windbg digest: June 21, 2008

Hey.

To simplify things for you. Here is what you need to do. If you have got a
beefy machine. Then download Virtual PC 2007 from Microsoft website, the URL
is below (its free)
http://www.microsoft.com/downloads/details.aspx?FamilyId=04D26402-3199-48A3-AFA2-2DC0B40A73B6&displaylang=en
Install it on your machine, this lets you create and run virtual machines.
Once you have got a virtual machine for yourself. if need more clarity on
this, then you can refere following articles
http://www.microsoft.com/virtualization/default.mspx
http://en.wikipedia.org/wiki/Virtualization
http://www.vmware.com/virtualization/

Once you have got your Guest OS up and running on your Host OS, then follow
the article below to enable remote debugging. This way you can install your
driver on the Virtual Guest OS and then remotely debug that Guest OS.

http://www.catch22.net/tuts/vmware.asp
Regards
Pushkar Prasad
http://www.eccellente-it.com

“A positive attitude may not solve all your problems, but it will annoy
enough people to make it worth the effort.” -Herm Albright
On Sun, Jun 22, 2008 at 10:30 AM, Kernel Debugging Interest List digest <
xxxxx@lists.osr.com> wrote:

WINDBG Digest for Saturday, June 21, 2008.

  1. How to Debug a Device Driver Locally
  2. Re: How to Debug a Device Driver Locally
  3. Re: How to Debug a Device Driver Locally
  4. Re: How to Debug a Device Driver Locally

Subject: How to Debug a Device Driver Locally
From: “Ahmed Zaki”
> Date: Sat, 21 Jun 2008 18:50:03 +0100
> X-Message-Number: 1
>
> I am a newbie in the field of device drivers as a whole and I wanted to
> start to debug one of the sample device drivers given through the WinDDK
> but
> I don’t have another computer to do that through .
>
> I have gone through a bit of the kernel_debugginh_tutorial.doc but I found
> it addresses only remote debugging , most other tutorials that talk about
> local debugging talk about attaching the debugger to a process . If I want
> to debug a device driver locally , what kind of tutorials would anyone
> recommend for a starter , given that I have been using visual studio for
> more than 5 years now so I now what is debugging .
>
>
>
> Thanks in advance
>
> Zaki
>
>
> ----------------------------------------------------------------------
>
> Subject: Re: How to Debug a Device Driver Locally
> From: “Don Burn”
> Date: Sat, 21 Jun 2008 14:01:53 -0400
> X-Message-Number: 2
>
> You cannot, there is no kernel debugging capability locally. At a minimum
> get a virtualization pack (assuming your driver can run under a virtual
> system) and use two virtual machines one for the debugger and one for the
> test system.
>
>
> –
> Don Burn (MVP, Windows DDK)
> Windows 2k/XP/2k3 Filesystem and Driver Consulting
> Website: http://www.windrvr.com
> Blog: http://msmvps.com/blogs/WinDrvr
> Remove StopSpam to reply
>
>
> “Ahmed Zaki” wrote in message news:xxxxx@windbg…
> >I am a newbie in the field of device drivers as a whole and I wanted to
> > start to debug one of the sample device drivers given through the WinDDK
> > but
> > I don’t have another computer to do that through .
> >
> > I have gone through a bit of the kernel_debugginh_tutorial.doc but I
> found
> > it addresses only remote debugging , most other tutorials that talk about
> > local debugging talk about attaching the debugger to a process . If I
> want
> > to debug a device driver locally , what kind of tutorials would anyone
> > recommend for a starter , given that I have been using visual studio for
> > more than 5 years now so I now what is debugging .
> >
> >
> >
> > Thanks in advance
> >
> > Zaki
> >
> >
>
>
>
> ----------------------------------------------------------------------
>
> Subject: Re: How to Debug a Device Driver Locally
> From: Spiro Trikaliotis
> Date: Sat, 21 Jun 2008 20:53:25 +0200
> X-Message-Number: 3
>
> Hello,
>
> * On Sat, Jun 21, 2008 at 02:01:53PM -0400 Don Burn wrote:
> > You cannot, there is no kernel debugging capability locally. At a
> minimum
> > get a virtualization pack (assuming your driver can run under a virtual
> > system) and use two virtual machines one for the debugger and one for the
> > test system.
>
> You only need one virtual machine for the test system. WinDBG itself can
> run on the host (if used via serial cable).
>
> Beste Gr??e
> Spiro.
>
> –
> Spiro R. Trikaliotis http://opencbm.sf.net/
> http://www.trikaliotis.net/ http://www.viceteam.org/
>
> ----------------------------------------------------------------------
>
> Subject: Re: How to Debug a Device Driver Locally
> From: “David Craig”
> Date: Sat, 21 Jun 2008 18:29:33 -0700
> X-Message-Number: 4
>
> You mean a pipe that simulates the serial port - VMware.
>
> “Spiro Trikaliotis” wrote in message
> news:xxxxx@windbg…
> > Hello,
> >
> > * On Sat, Jun 21, 2008 at 02:01:53PM -0400 Don Burn wrote:
> >> You cannot, there is no kernel debugging capability locally. At a
> >> minimum
> >> get a virtualization pack (assuming your driver can run under a virtual
> >> system) and use two virtual machines one for the debugger and one for
> the
> >> test system.
> >
> > You only need one virtual machine for the test system. WinDBG itself can
> > run on the host (if used via serial cable).
> >
> > Beste Gr??e
> > Spiro.
> >
> > –
> > Spiro R. Trikaliotis http://opencbm.sf.net/
> > http://www.trikaliotis.net/ http://www.viceteam.org/
> >
>
>
>
>
>
> —
>
> END OF DIGEST
>
> —
> You are currently subscribed to windbg as: xxxxx@eccellente-it.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>