How to use WinDbg to debug a running driver?

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi Experts:

I have a question on how to debug my driver (test.sys) on Windows XP using
WinDbg (6.6.7.5):

test.sys is started at runtime by an application (app.exe), it is a
"plug-in" of another device driver (another.sys, which is installed and
running when OS starts).

I have built the test.sys using checked build and specified the symbol path
to the test.pdb, set the image path to point at test.sys, but when starting
the "Kernel Debug" in WinDbg, I always get "Failed to load symbol...".

Question, within WinDbg (local mode, not two computers), how should I do the
"attach" to the running driver (test.sys) ?

Do I HAVE TO use SoftIce for this?

Thanks in advance for your help!

Polaris



.



Relevant Pages

  • RE: USB to Serial Port && Kernal BSODs
    ... Kernel Complete Dump File: ... Loading Kernel Symbols ... > normally caused by impropery driver or kernel components. ... After loading this dump file with Windbg, ...
    (microsoft.public.win32.programmer.kernel)
  • Re: WinDBG in Vista
    ... Install the latest WinDbg on the host and run it. ... Again while waiting for the target, set the Symbol path to the ... how do I run or load WinDbG prior to my driver being ...
    (microsoft.public.windowsxp.device_driver.dev)
  • Re: blue screen
    ... what is wrong is to run windbg on the dump file. ... download/install windbg from Microsoft Debugging Tools ... all windows." ... This will display a quick analysis of which driver crashed and the most ...
    (microsoft.public.windowsxp.hardware)
  • RE: Vista SP1 fails to install with BCCode: 1000008e
    ... Tools for Windows ... I did not need that driver anymore. ... There are also two open support requests to the free Vista SP1 support. ... windbg symbol path per the windbg help file. ...
    (microsoft.public.development.device.drivers)
  • Re: question about oneys samples
    ... I have stated this on a number of forums, SoftIce has problems: ... debug your driver on the latest version you are SOL ... system reboots and have WinDBG load it for you. ... By using Microsoft's> central symbol server and a 1394 cable, WinDBG is just a "no brainer" for> me. ...
    (microsoft.public.development.device.drivers)