sympath and symbol could not be loaded

I want to ask about sympath. I use windbg. If i check in my host path it shows: srv*c:\sym*http://msdl.microsoft.com/download/symbols?. I check in local folder in host computer: c:\sym, it contains sym files that is imported from microsoft. For example, i create a let’s say Exdriver.sys file, build and already loaded in computer target. The computer host can’t find the symbol. How can i use the sympath command to load symbols that is located in?computer target (for example the pdb file is in c:\example)?
Thank you
?
Regards
Sofian

  1. You can’t. You will not be able to access symbols or anything else located on the target computer when windbg has broken in, because the target will be halted.

  2. Regarding your question about source path from the ntdev list, you’re confused about the roles of the two computers.

HOST:

  • where you build your driver
  • where your run windbg
  • where you cache symbols

TARGET:

  • where you install, load and ‘run’ your driver
  • where you connect to with windbg
  • where you do nothing
  • where you install nothing else
  1. I would suggest that you then ry this setup without setting .srcpath and see if it works. If it doesn’t, then I would try this:

.srcpath+

Good luck,

mm

sahrizal sofian wrote:

I want to ask about sympath. I use windbg. If i check in my host path
it shows: srv*c:\sym*http://msdl.microsoft.com/download/symbols . I
check in local folder in host computer: c:\sym, it contains sym files
that is imported from microsoft. For example, i create a let’s say
Exdriver.sys file, build and already loaded in computer target. The
computer host can’t find the symbol. How can i use the sympath command
to load symbols that is located in computer target (for example the
pdb file is in c:\example)?

You can use the “symstore” command to add symbols for your own drivers
to the symbol store. There are a lot of parameters, but I use something
like this:
symstore add /f objchk_wxp_x86\i386* /s c:\sym /t “Driver
Description” /v “1.1.123”

Alternatively, you can add additional paths to the sympath by separating
them with semicolons “;”.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

Of course, making a local symbol server store has other benefits, such as ensuring that you don’t have to play ‘find the symbols’ when debugging a customer crash dump, etc. I always recommend to add any binaries that will leave the developer’s box (even internal builds) to a symbol store just in case they get used for QA, internal testing, or whatnot.

  • S

From: xxxxx@lists.osr.com [xxxxx@lists.osr.com] On Behalf Of Tim Roberts [xxxxx@probo.com]
Sent: Thursday, September 03, 2009 1:22 PM
To: Kernel Debugging Interest List
Subject: Re: [windbg] sympath and symbol could not be loaded

sahrizal sofian wrote:

I want to ask about sympath. I use windbg. If i check in my host path
it shows: srv*c:\sym*http://msdl.microsoft.com/download/symbols . I
check in local folder in host computer: c:\sym, it contains sym files
that is imported from microsoft. For example, i create a let’s say
Exdriver.sys file, build and already loaded in computer target. The
computer host can’t find the symbol. How can i use the sympath command
to load symbols that is located in computer target (for example the
pdb file is in c:\example)?

You can use the “symstore” command to add symbols for your own drivers
to the symbol store. There are a lot of parameters, but I use something
like this:
symstore add /f objchk_wxp_x86\i386* /s c:\sym /t “Driver
Description” /v “1.1.123”

Alternatively, you can add additional paths to the sympath by separating
them with semicolons “;”.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.


WINDBG is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer