how to set condition breakpoint

Hi All:

I start use windbg to debug my file system driver from last week, so there
are some problems in debugging.

One problem is that I want to set condition breakpoint, the condition is
that there is a PCHAR variant “pFilePath”, I

Want debugger to stop when “pFilePath” 's value is “C:\test.txt” for
example. Is there simple way to set this type breakpoint?

Anyone can tell me how to do it?

Any suggestions are welcome.

Thanks a lot,

i don’t use windbg commands for it, but this piece of code:

in irp_mj_create, something like:

if ( pFileObject->FileName.Buffer && pFileObject->FileName.Length > 11*sizeof(WCHAR))
if ( !my_wcsicmp( pFileObject->Name.Buffer, L"c:\test.txt" )) __asm int 3;

-pk

“liao_jh” <liao_jh> wrote in message news:xxxxx@windbg…
Hi All:

I start use windbg to debug my file system driver from last week, so there are some problems in debugging.

One problem is that I want to set condition breakpoint, the condition is that there is a PCHAR variant “pFilePath”, I

Want debugger to stop when “pFilePath” 's value is “C:\test.txt” for example. Is there simple way to set this type breakpoint?

Anyone can tell me how to do it?

Any suggestions are welcome.

Thanks a lot,</liao_jh>