Adding symbols to the symbol store

I am trying to add symbols to the symbol store like this:

C:>symstore add /r /f “C:\Share\4.1.2.9\free\mydriver.pdb” /s c:\Symbols /t
“My Driver” /v “Version 4.1.2.9”
Finding ID… 0000000002

SYMSTORE: Number of files stored = 1
SYMSTORE: Number of errors = 0
SYMSTORE: Number of files ignored = 0

This succeeds and I see it in the store:

C:\Symbols>dir /S mydriver.pdb
Volume in drive C has no label.
Volume Serial Number is DC91-F8CE

Directory of C:\Symbols\mydriver.pdb

08/19/2004 06:56p

.
08/19/2004 06:56p ..
08/19/2004 06:56p 4118B3D51
0 File(s) 0 bytes

Directory of C:\Symbols\mydriver.pdb\4118B3D51

08/19/2004 06:56p .
08/19/2004 06:56p ..
08/19/2004 06:34p 115,712 mydriver.pdb
08/19/2004 06:56p 72 refs.ptr
2 File(s) 115,784 bytes

Total Files Listed:
2 File(s) 115,784 bytes
5 Dir(s) 4,979,998,208 bytes free

In WinDbg, I verify the sys file timestamp as:

kd> lm t v
start end module name
..........
..........

f8552000 f858d220 mydriver
Loaded symbol image file: mydriver.sys
Image path: mydriver.sys
Image name: mydriver.sys
Timestamp: Tue Aug 10 17:09:01 2004 (4118B3D5)
CheckSum: 0004CD57
ImageSize: 0003B220
Translations: 0000.04b0 0000.04e0 0409.04b0 0409.04e0

...........
...........

Now in WinDbg, I have symbol path set as:

kd> .sympath

Symbol search path is:
srv*c:\symbols*http://msdl.microsoft.com/download/symbols

However, debugger still complains it can't find the symbols for mydriver
when I try to debug. See below:

kd> !sym noisy
noisy mode - symbol prompts on
kd> .reload /f
..............
..............
SYMSRV: c:\symbols\mydriver.sys\4118B3D53b220\mydriver.sys not found

SYMSRV:
http://msdl.microsoft.com/download/symbols/mydriver.sys/4118B3D53b220/mydriv
er.sys not found

DBGHELP: C:\Program Files-AS\Debugging Tools for Windows\mydriver.sys - file
not found

DBGENG: mydriver.sys - Image mapping disallowed by non-local path.

DBGHELP: No debug info for mydriver.sys. Searching for dbg file

SYMSRV: c:\symbols\mydriver.dbg\4118B3D53b220\mydriver.dbg not found

SYMSRV:
http://msdl.microsoft.com/download/symbols/mydriver.dbg/4118B3D53b220/mydriv
er.dbg not found

DBGHELP: .\mydriver.dbg - file not found

DBGHELP: .\symbols\sys\mydriver.dbg - path not found

DBGHELP: .\sys\mydriver.dbg - path not found

DBGHELP: mydriver.sys missing debug info. Searching for pdb anyway

DBGHELP: Can't use symbol server for mydriver.pdb - no header information
available

DBGHELP: mydriver.pdb - file not found

*** ERROR: Module load completed but symbols could not be loaded for
mydriver.sys

DBGHELP: mydriver - no symbols loaded

.................
.................

Here is the trouble, WinDbg seems to look for the PDB file in a directory
which is like , however symstore command puts it in
directory.

Any idea how to set this right?

TIA,
Bandeep

Add /v switch to symchk command to turn vebose output to see what’s failing.

Calvin Guan Software Engineer
ATI Technologies Inc. www.ati.com

-----Original Message-----
From: Bandeep Singh [mailto:xxxxx@wipro.com]
Sent: Thursday, August 19, 2004 10:33 AM
To: Kernel Debugging Interest List
Subject: [windbg] Adding symbols to the symbol store

I am trying to add symbols to the symbol store like this:

C:>symstore add /r /f “C:\Share\4.1.2.9\free\mydriver.pdb” /s
c:\Symbols /t
“My Driver” /v “Version 4.1.2.9”
Finding ID… 0000000002

SYMSTORE: Number of files stored = 1
SYMSTORE: Number of errors = 0
SYMSTORE: Number of files ignored = 0

This succeeds and I see it in the store:

C:\Symbols>dir /S mydriver.pdb
Volume in drive C has no label.
Volume Serial Number is DC91-F8CE

Directory of C:\Symbols\mydriver.pdb

08/19/2004 06:56p

.
> 08/19/2004 06:56p ..
> 08/19/2004 06:56p 4118B3D51
> 0 File(s) 0 bytes
>
> Directory of C:\Symbols\mydriver.pdb\4118B3D51
>
> 08/19/2004 06:56p .
> 08/19/2004 06:56p ..
> 08/19/2004 06:34p 115,712 mydriver.pdb
> 08/19/2004 06:56p 72 refs.ptr
> 2 File(s) 115,784 bytes
>
> Total Files Listed:
> 2 File(s) 115,784 bytes
> 5 Dir(s) 4,979,998,208 bytes free
>
>
> In WinDbg, I verify the sys file timestamp as:
>
> kd> lm t v
> start end module name
> ..........
> ..........
>
> f8552000 f858d220 mydriver
> Loaded symbol image file: mydriver.sys
> Image path: mydriver.sys
> Image name: mydriver.sys
> Timestamp: Tue Aug 10 17:09:01 2004 (4118B3D5)
> CheckSum: 0004CD57
> ImageSize: 0003B220
> Translations: 0000.04b0 0000.04e0 0409.04b0 0409.04e0
>
> ...........
> ...........
>
> Now in WinDbg, I have symbol path set as:
>
> kd> .sympath
>
> Symbol search path is:
> srv*c:\symbols*http://msdl.microsoft.com/download/symbols
>
>
>
> However, debugger still complains it can't find the symbols
> for mydriver
> when I try to debug. See below:
>
>
> kd> !sym noisy
> noisy mode - symbol prompts on
> kd> .reload /f
> ..............
> ..............
> SYMSRV: c:\symbols\mydriver.sys\4118B3D53b220\mydriver.sys not found
>
> SYMSRV:
> http://msdl.microsoft.com/download/symbols/mydriver.sys/4118B3
> D53b220/mydriv
> er.sys not found
>
> DBGHELP: C:\Program Files-AS\Debugging Tools for
> Windows\mydriver.sys - file
> not found
>
> DBGENG: mydriver.sys - Image mapping disallowed by non-local path.
>
> DBGHELP: No debug info for mydriver.sys. Searching for dbg file
>
> SYMSRV: c:\symbols\mydriver.dbg\4118B3D53b220\mydriver.dbg not found
>
> SYMSRV:
> http://msdl.microsoft.com/download/symbols/mydriver.dbg/4118B3
D53b220/mydriv
er.dbg not found

DBGHELP: .\mydriver.dbg - file not found

DBGHELP: .\symbols\sys\mydriver.dbg - path not found

DBGHELP: .\sys\mydriver.dbg - path not found

DBGHELP: mydriver.sys missing debug info. Searching for pdb anyway

DBGHELP: Can't use symbol server for mydriver.pdb - no header information
available

DBGHELP: mydriver.pdb - file not found

*** ERROR: Module load completed but symbols could not be loaded for
mydriver.sys

DBGHELP: mydriver - no symbols loaded

.................
.................

Here is the trouble, WinDbg seems to look for the PDB file in a directory
which is like , however symstore command puts it in
directory.

Any idea how to set this right?

TIA,
Bandeep

---
You are currently subscribed to windbg as: xxxxx@ati.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Bandeep Singh wrote:

I am trying to add symbols to the symbol store like this:

C:>symstore add /r /f “C:\Share\4.1.2.9\free\mydriver.pdb” /s c:\Symbols /t
“My Driver” /v “Version 4.1.2.9”
Finding ID… 0000000002

SYMSTORE: Number of files stored = 1
SYMSTORE: Number of errors = 0
SYMSTORE: Number of files ignored = 0

[…]

Now in WinDbg, I have symbol path set as:

kd> .sympath

Symbol search path is:
srv*c:\symbols*http://msdl.microsoft.com/download/symbols

I don’t know for sure that this is wrong, but
I usually have two things in my path, the
MS symbol store, with a local cache and my own symbol
store (someplace different than the MS symbol cache.)

I’m not sure the cache is the same structure as a symbol
store.

I would suggest the following for your symbol path:

SRV*C:\MsCachedSymbols*http://msdl.microsoft.com/download/symbols;SRV\*C:\symbols

– Joseph

“Bandeep Singh” skrev i meddelandet news:…
> I am trying to add symbols to the symbol store like this:

You need to add the driver file “mydriver.sys” to the symbol store as well.
It can’t look up the pdb file without having access to the sys file.

C:>symstore add /r /f “C:\Share\4.1.2.9\free\mydriver.sys” /s c:\Symbols /t
“My Driver” /v “Version 4.1.2.9”

Andreas

Hi Andreas,

You need to add the driver file “mydriver.sys” to the symbol store as
well.
It can’t look up the pdb file without having access to the sys file.

C:>symstore add /r /f “C:\Share\4.1.2.9\free\mydriver.sys” /s c:\Symbols
/t
“My Driver” /v “Version 4.1.2.9”

Yes, thank you, that works.

However, why is it necessay? It only eats up the disk space. Can’t WinDbg
identify the symbol file from the loaded modules?

Thanks,
Bandeep

“Andreas Hansson” wrote in message
news:xxxxx@windbg…
>
> “Bandeep Singh” skrev i meddelandet news:…
> > I am trying to add symbols to the symbol store like this:
>
> You need to add the driver file “mydriver.sys” to the symbol store as
well.
> It can’t look up the pdb file without having access to the sys file.
>
> C:>symstore add /r /f “C:\Share\4.1.2.9\free\mydriver.sys” /s c:\Symbols
/t
> “My Driver” /v “Version 4.1.2.9”
>
>
>
> Andreas
>
>

RE: [windbg] Adding symbols to the symbol storeHi Calvin,

Thanks for the reply.

>Add /v switch to symchk command to turn vebose output to see what’s failing.

I thought I mentioned what was failing. Here is the snippet from the original mail again:

kd> !sym noisy
noisy mode - symbol prompts on
kd> .reload /f


SYMSRV: c:\symbols\mydriver.sys\4118B3D53b220\mydriver.sys not found

SYMSRV:
http://msdl.microsoft.com/download/symbols/mydriver.sys/4118B3
D53b220/mydriv
er.sys not found

DBGHELP: C:\Program Files-AS\Debugging Tools for
Windows\mydriver.sys - file
not found

DBGENG: mydriver.sys - Image mapping disallowed by non-local path.

DBGHELP: No debug info for mydriver.sys. Searching for dbg file

SYMSRV: c:\symbols\mydriver.dbg\4118B3D53b220\mydriver.dbg not found

SYMSRV:
http://msdl.microsoft.com/download/symbols/mydriver.dbg/4118B3
D53b220/mydriv
er.dbg not found
DBGHELP: .\mydriver.dbg - file not found

DBGHELP: .\symbols\sys\mydriver.dbg - path not found

DBGHELP: .\sys\mydriver.dbg - path not found

DBGHELP: mydriver.sys missing debug info. Searching for pdb anyway

DBGHELP: Can’t use symbol server for mydriver.pdb - no header information
available

DBGHELP: mydriver.pdb - file not found

*** ERROR: Module load completed but symbols could not be loaded for
mydriver.sys

DBGHELP: mydriver - no symbols loaded


Here is the trouble, WinDbg seems to look for the PDB file in a directory
which is like , however symstore command puts it in
directory.

“Calvin Guan” wrote in message news:xxxxx@windbg…
Add /v switch to symchk command to turn vebose output to see what’s failing.

-
Calvin Guan Software Engineer
ATI Technologies Inc. www.ati.com

> -----Original Message-----
> From: Bandeep Singh [mailto:xxxxx@wipro.com]
> Sent: Thursday, August 19, 2004 10:33 AM
> To: Kernel Debugging Interest List
> Subject: [windbg] Adding symbols to the symbol store
>
>
> I am trying to add symbols to the symbol store like this:
>
> C:>symstore add /r /f “C:\Share\4.1.2.9\free\mydriver.pdb” /s
> c:\Symbols /t
> “My Driver” /v “Version 4.1.2.9”
> Finding ID… 0000000002
>
> SYMSTORE: Number of files stored = 1
> SYMSTORE: Number of errors = 0
> SYMSTORE: Number of files ignored = 0
>
>
> This succeeds and I see it in the store:
>
> C:\Symbols>dir /S mydriver.pdb
> Volume in drive C has no label.
> Volume Serial Number is DC91-F8CE
>
> Directory of C:\Symbols\mydriver.pdb
>
> 08/19/2004 06:56p .
> 08/19/2004 06:56p …
> 08/19/2004 06:56p 4118B3D51
> 0 File(s) 0 bytes
>
> Directory of C:\Symbols\mydriver.pdb\4118B3D51
>
> 08/19/2004 06:56p .
> 08/19/2004 06:56p …
> 08/19/2004 06:34p 115,712 mydriver.pdb
> 08/19/2004 06:56p 72 refs.ptr
> 2 File(s) 115,784 bytes
>
> Total Files Listed:
> 2 File(s) 115,784 bytes
> 5 Dir(s) 4,979,998,208 bytes free
>
>
> In WinDbg, I verify the sys file timestamp as:
>
> kd> lm t v
> start end module name
> …
> …
>
> f8552000 f858d220 mydriver
> Loaded symbol image file: mydriver.sys
> Image path: mydriver.sys
> Image name: mydriver.sys
> Timestamp: Tue Aug 10 17:09:01 2004 (4118B3D5)
> CheckSum: 0004CD57
> ImageSize: 0003B220
> Translations: 0000.04b0 0000.04e0 0409.04b0 0409.04e0
>
> …
> …
>
> Now in WinDbg, I have symbol path set as:
>
> kd> .sympath
>
> Symbol search path is:
> srvc:\symbolshttp://msdl.microsoft.com/download/symbols
>
>
>
> However, debugger still complains it can’t find the symbols
> for mydriver
> when I try to debug. See below:
>
>
> kd> !sym noisy
> noisy mode - symbol prompts on
> kd> .reload /f
> …
> …
> SYMSRV: c:\symbols\mydriver.sys\4118B3D53b220\mydriver.sys not found
>
> SYMSRV:
> http://msdl.microsoft.com/download/symbols/mydriver.sys/4118B3
> D53b220/mydriv
> er.sys not found
>
> DBGHELP: C:\Program Files-AS\Debugging Tools for
> Windows\mydriver.sys - file
> not found
>
> DBGENG: mydriver.sys - Image mapping disallowed by non-local path.
>
> DBGHELP: No debug info for mydriver.sys. Searching for dbg file
>
> SYMSRV: c:\symbols\mydriver.dbg\4118B3D53b220\mydriver.dbg not found
>
> SYMSRV:
> http://msdl.microsoft.com/download/symbols/mydriver.dbg/4118B3
D53b220/mydriv
er.dbg not found

DBGHELP: .\mydriver.dbg - file not found

DBGHELP: .\symbols\sys\mydriver.dbg - path not found

DBGHELP: .\sys\mydriver.dbg - path not found

DBGHELP: mydriver.sys missing debug info. Searching for pdb anyway

DBGHELP: Can’t use symbol server for mydriver.pdb - no header information
available

DBGHELP: mydriver.pdb - file not found

*** ERROR: Module load completed but symbols could not be loaded for
mydriver.sys

DBGHELP: mydriver - no symbols loaded




Here is the trouble, WinDbg seems to look for the PDB file in a directory
which is like , however symstore command puts it in
directory.

Any idea how to set this right?

TIA,
Bandeep


You are currently subscribed to windbg as: xxxxx@ati.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Hi Joseph,

Thanks for replying. Please see inline:

I don’t know for sure that this is wrong, but
I usually have two things in my path, the
MS symbol store, with a local cache and my own symbol
store (someplace different than the MS symbol cache.)

I’m not sure the cache is the same structure as a symbol
store.

I would suggest the following for your symbol path:

SRV*C:\MsCachedSymbols*http://msdl.microsoft.com/download/symbols;SRV\*C:\sym
bols

– Joseph

This isn’t an issue. Cache is pretty much the same as the symbol store; it
works if I ass .sys also as Andreas suggested. However, I am trying to
understand why do we need to add .sys file.

Thanks,
Bandeep

“Joseph Galbraith” wrote in message news:xxxxx@windbg…
> Bandeep Singh wrote:
> > I am trying to add symbols to the symbol store like this:
> >
> > C:>symstore add /r /f “C:\Share\4.1.2.9\free\mydriver.pdb” /s c:\Symbols
/t
> > “My Driver” /v “Version 4.1.2.9”
> > Finding ID… 0000000002
> >
> > SYMSTORE: Number of files stored = 1
> > SYMSTORE: Number of errors = 0
> > SYMSTORE: Number of files ignored = 0
>
> […]
>
> > Now in WinDbg, I have symbol path set as:
> >
> > kd> .sympath
> >
> > Symbol search path is:
> > srvc:\symbolshttp://msdl.microsoft.com/download/symbols
>
> I don’t know for sure that this is wrong, but
> I usually have two things in my path, the
> MS symbol store, with a local cache and my own symbol
> store (someplace different than the MS symbol cache.)
>
> I’m not sure the cache is the same structure as a symbol
> store.
>
> I would suggest the following for your symbol path:
>
>
SRVC:\MsCachedSymbolshttp://msdl.microsoft.com/download/symbols;SRV*C:\sym
bols
>
> – Joseph
>

If you are debugging a minidump, minidumps do not have full image header
information for retrieving the correct matching symbol file. So the original
image has to be consulted. See the “-i ” option on the debugger
and the “Using SymSrv” section in debugger.chm.

Occasionally when debugging kernel mode, I have seen image headers partially
paged out, and if the debugger can locate just enough information in memory,
the image can be located so that the right, exact-match PDB gets loaded from
the symbol store. So sometimes when debugging live kernel mode or kernel
mode dumps, the -i option is also useful. Worst case, I think, is that by
specifying -i you might get stacks where you couldn’t before.

Note you can add symbols and binaries into the same symbol store. The
symbol store can store all files you want indexed into the same symbol tree,
and there should never be any collisions.

----- Original Message -----
From: “Bandeep Singh”
Newsgroups: windbg
To: “Kernel Debugging Interest List”
Sent: Thursday, August 19, 2004 11:38 PM
Subject: Re:[windbg] Adding symbols to the symbol store

> Hi Andreas,
>
> > You need to add the driver file “mydriver.sys” to the symbol store as
> well.
> > It can’t look up the pdb file without having access to the sys file.
> >
> > C:>symstore add /r /f “C:\Share\4.1.2.9\free\mydriver.sys” /s c:\Symbols
> /t
> > “My Driver” /v “Version 4.1.2.9”
>
>
> Yes, thank you, that works.
>
> However, why is it necessay? It only eats up the disk space. Can’t WinDbg
> identify the symbol file from the loaded modules?
>
> Thanks,
> Bandeep
>
>
> “Andreas Hansson” wrote in message
> news:xxxxx@windbg…
> >
> > “Bandeep Singh” skrev i meddelandet news:…
> > > I am trying to add symbols to the symbol store like this:
> >
> > You need to add the driver file “mydriver.sys” to the symbol store as
> well.
> > It can’t look up the pdb file without having access to the sys file.
> >
> > C:>symstore add /r /f “C:\Share\4.1.2.9\free\mydriver.sys” /s c:\Symbols
> /t
> > “My Driver” /v “Version 4.1.2.9”
> >
> >
> >
> > Andreas
> >
> >
>
>
>
> —
> You are currently subscribed to windbg as: xxxxx@msn.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>