Need help for Windbg

Hello,

I have setup graphic Windows debugger WinDbg, on 2000
Professional, and is able to communicate with target.
I have setup host to acess symbol server using
SRV*\dirname*http://msdl.microsoft.com/download/symbols

And set the srcpath to point to the path where my .sys
& .pdb files are located. Now when the target reboots,
the DbgPrints from my driver, loaded on traget appear
on host. But after this I do not know how to do source
level debugging? Also host machine is not finding any
symbols for my driver. I tried to give brakpoint using
bp command but host machine is not able to find thoes
symbols. Any help regarding setting the source level
debugging would be appreciated.
.pdb file is generated using checked build environment
of Windows latest DDK.

Thanks
Sharmila


Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Apart from setting the symbol path for OS symbols, you also need to set the
symbol path for your pdb files. And source path should be set to point to
your source file directory, and not you symbols and sys files.
Once both the symbol path and source path for your executables are set, you
should be able to set break points in your code and do source level
debugging
Thanks
Anees

On 5/24/05, Sharmila Panse wrote:
>
> Hello,
>
> I have setup graphic Windows debugger WinDbg, on 2000
> Professional, and is able to communicate with target.
> I have setup host to acess symbol server using
> SRV*\dirname*http://msdl.microsoft.com/download/symbols
>
> And set the srcpath to point to the path where my .sys
> & .pdb files are located. Now when the target reboots,
> the DbgPrints from my driver, loaded on traget appear
> on host. But after this I do not know how to do source
> level debugging? Also host machine is not finding any
> symbols for my driver. I tried to give brakpoint using
> bp command but host machine is not able to find thoes
> symbols. Any help regarding setting the source level
> debugging would be appreciated.
> .pdb file is generated using checked build environment
> of Windows latest DDK.
>
> Thanks
> Sharmila
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@gmail.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>

Hello,

I still could not succeed. I get message like this…
Opened \.\com2
Waiting to reconnect…
Connected to Windows 2000 2195 x86 compatible target,
ptr64 FALSE
Kernel Debugger connection established.
Symbol search path is:
d:\st1\driver\win_driver\objchk_w2k_x86\i386\
Executable search path is:
*** ERROR: Symbol file could not be found. Defaulted
to export symbols for ntoskrnl.exe -
Windows 2000 Kernel Version 2195 UP Free x86
compatible
Kernel base = 0x80400000 PsLoadedModuleList =
0x8046a4c0
System Uptime: not available
Symbol search path is:
d:\st1\driver\win_driver\objchk\i386
Break instruction exception - code 80000003 (first
chance)


And the when I try giving breakpoint, I get
message…

bp StorCompress|WEN_Close
Bp expression ‘StorCompress|WEN_Close’ could not be
resolved, adding deferred bp
kd> !srcpath
Source search path is: d:\st1\driver\win_driver\
kd> symchk storcompress.sys
^ Range error in ‘symchk
storcompress.sys’

Please Advice.
Thanks,
Sharmila

— Anees M wrote:
> Apart from setting the symbol path for OS symbols,
> you also need to set the
> symbol path for your pdb files. And source path
> should be set to point to
> your source file directory, and not you symbols and
> sys files.
> Once both the symbol path and source path for your
> executables are set, you
> should be able to set break points in your code and
> do source level
> debugging
> Thanks
> Anees
>
>
> On 5/24/05, Sharmila Panse
> wrote:
> >
> > Hello,
> >
> > I have setup graphic Windows debugger WinDbg, on
> 2000
> > Professional, and is able to communicate with
> target.
> > I have setup host to acess symbol server using
> >
>
SRV*\dirname*http://msdl.microsoft.com/download/symbols
> >
> > And set the srcpath to point to the path where my
> .sys
> > & .pdb files are located. Now when the target
> reboots,
> > the DbgPrints from my driver, loaded on traget
> appear
> > on host. But after this I do not know how to do
> source
> > level debugging? Also host machine is not finding
> any
> > symbols for my driver. I tried to give brakpoint
> using
> > bp command but host machine is not able to find
> thoes
> > symbols. Any help regarding setting the source
> level
> > debugging would be appreciated.
> > .pdb file is generated using checked build
> environment
> > of Windows latest DDK.
> >
> > Thanks
> > Sharmila
> >
> >
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as:
> xxxxx@gmail.com
> > To unsubscribe send a blank email to
> xxxxx@lists.osr.com
> >
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: unknown
> lmsubst tag argument: ‘’
> To unsubscribe send a blank email to xxxxx@lists.osr.com


Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Hi,

Is your symbol path proper?

.sympath
you can basically set the symbol file path
do a
.reload /f module
set the breakpoint

Thanks
Vipin

“Sharmila Panse” wrote in message
news:xxxxx@ntdev…
> Hello,
>
> I still could not succeed. I get message like this…
> Opened \.\com2
> Waiting to reconnect…
> Connected to Windows 2000 2195 x86 compatible target,
> ptr64 FALSE
> Kernel Debugger connection established.
> Symbol search path is:
> d:\st1\driver\win_driver\objchk_w2k_x86\i386<br>> Executable search path is:
> *** ERROR: Symbol file could not be found. Defaulted
> to export symbols for ntoskrnl.exe -
> Windows 2000 Kernel Version 2195 UP Free x86
> compatible
> Kernel base = 0x80400000 PsLoadedModuleList =
> 0x8046a4c0
> System Uptime: not available
> Symbol search path is:
> d:\st1\driver\win_driver\objchk\i386
> Break instruction exception - code 80000003 (first
> chance)
>
> ---------
> And the when I try giving breakpoint, I get
> message…
> ---------
> bp StorCompress|WEN_Close
> Bp expression ‘StorCompress|WEN_Close’ could not be
> resolved, adding deferred bp
> kd> !srcpath
> Source search path is: d:\st1\driver\win_driver<br>> kd> symchk storcompress.sys
> ^ Range error in ‘symchk
> storcompress.sys’
> -----------
> Please Advice.
> Thanks,
> Sharmila
>
>
>
> — Anees M wrote:
>> Apart from setting the symbol path for OS symbols,
>> you also need to set the
>> symbol path for your pdb files. And source path
>> should be set to point to
>> your source file directory, and not you symbols and
>> sys files.
>> Once both the symbol path and source path for your
>> executables are set, you
>> should be able to set break points in your code and
>> do source level
>> debugging
>> Thanks
>> Anees
>>
>>
>> On 5/24/05, Sharmila Panse
>> wrote:
>> >
>> > Hello,
>> >
>> > I have setup graphic Windows debugger WinDbg, on
>> 2000
>> > Professional, and is able to communicate with
>> target.
>> > I have setup host to acess symbol server using
>> >
>>
> SRV*\dirname*http://msdl.microsoft.com/download/symbols
>> >
>> > And set the srcpath to point to the path where my
>> .sys
>> > & .pdb files are located. Now when the target
>> reboots,
>> > the DbgPrints from my driver, loaded on traget
>> appear
>> > on host. But after this I do not know how to do
>> source
>> > level debugging? Also host machine is not finding
>> any
>> > symbols for my driver. I tried to give brakpoint
>> using
>> > bp command but host machine is not able to find
>> thoes
>> > symbols. Any help regarding setting the source
>> level
>> > debugging would be appreciated.
>> > .pdb file is generated using checked build
>> environment
>> > of Windows latest DDK.
>> >
>> > Thanks
>> > Sharmila
>> >
>> >
>> > Do You Yahoo!?
>> > Tired of spam? Yahoo! Mail has the best spam
>> protection around
>> > http://mail.yahoo.com
>> >
>> > —
>> > Questions? First check the Kernel Driver FAQ at
>> > http://www.osronline.com/article.cfm?id=256
>> >
>> > You are currently subscribed to ntdev as:
>> xxxxx@gmail.com
>> > To unsubscribe send a blank email to
>> xxxxx@lists.osr.com
>> >
>>
>> —
>> Questions? First check the Kernel Driver FAQ at
>> http://www.osronline.com/article.cfm?id=256
>>
>> You are currently subscribed to ntdev as: unknown
>> lmsubst tag argument: ‘’
>> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>

> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>