pdb is not source indexed

Hi,
I have a beginner question.
Is it possible that I can force source indexing in the
pdb file.I cant use the pdb file generated by the
build for source debugging in Windbg .

I am using visual studio to compile using dsp file but
the DDK compiler.I do have Debug info set as Program
Database in Visual studio enviroment.
srctool: cardreader.pdb is not source indexed

Symbol Type: PDB - Symbols loaded successfully
from symbol search path.

E:\XXX\ver1.7\CardReader\driver\objfre_wxp_x86\i386\CardReader.pdb
Load Report: public symbols , not source indexed
E:\XXX\ver1.7

Project options(Visual studio C++)
/nologo /Gz /ML /W3 /WX /Zi /Od /Oy /Gy /I
“$(TARGET_INC_PATH)” /I “$(CRT_INC_PATH)” /I
“$(DDK_INC_PATH)” /I “$(WDM_INC_PATH)” /FI"warning.h"
/D X86=1 /D i386=1 /D “STD_CALL” /D
CONDITION_HANDLING=1 /D NT_INST=0 /D WIN32=100 /D
NT1X=100 /D WINNT=1 /D WIN32_LEAN_AND_MEAN=1 /D
DEVL=1 /D FPO=0 /D “NDEBUG” /D _DLL=1 /D
_WIN32_WINNT=$(_WIN32_WINNT) /D WINVER=$(WINVER) /D
_WIN32_IE=$(_WIN32_IE) /D
NTDDI_VERSION=$(NTDDI_VERSION)
/FR".\objfre_wxp_x86\i386/"
/Fo".\objfre_wxp_x86\i386/"
/Fd".\objfre_wxp_x86\i386/" /Zel -cbstring /GF /Oxs /c

Project Options (Visual studio LINK)

ntoskrnl.lib hal.lib ntstrsafe.lib /nologo
/base:“0x10000” /version:5.0 /stack:0x40000,0x1000
/entry:“DriverEntry” /profile
/map:“.\objfre_wxp_x86\i386/CardReader.map” /debug
/machine:IX86 /nodefaultlib
/out:“objfre_wxp_x86\i386\CardReader.sys”
/libpath:“$(TARGET_LIB_PATH)” /driver
/MERGE:_PAGE=PAGE /MERGE:_TEXT=.text /SECTION:INIT,d
/MERGE:.rdata=.text /FULLBUILD /RELEASE /OPT:REF
/OPT:ICF /align:0x80 /osversion:5.00
/subsystem:native,1.10 /debug:MINIMAL
/ignore:4010,4037,4039,4065,4070,4078,4087,4089,4099,4221,4210

Thanks in advance


Yahoo! Messenger
Show us what our next emoticon should look like. Join the fun.
http://www.advision.webevents.yahoo.com/emoticontest

You have to run ssindex.cmd on your pdb file inorder to index the sources in
it.
In your windbg install dir, search for a file srcsrv.doc, it’s all explained
in there (you’ll have to run the full installation of windbg inorder to get
the file, it’s in the SDK dir).

Shahar

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Saurabh
Sent: Saturday, April 02, 2005 2:13 AM
To: Kernel Debugging Interest List
Subject: [windbg] pdb is not source indexed

Hi,
I have a beginner question.
Is it possible that I can force source indexing in the pdb file.I cant use
the pdb file generated by the build for source debugging in Windbg .

I am using visual studio to compile using dsp file but the DDK compiler.I do
have Debug info set as Program Database in Visual studio enviroment.
srctool: cardreader.pdb is not source indexed

Symbol Type: PDB - Symbols loaded successfully
from symbol search path.

E:\XXX\ver1.7\CardReader\driver\objfre_wxp_x86\i386\CardReader.pdb
Load Report: public symbols , not source indexed
E:\XXX\ver1.7

Project options(Visual studio C++)
/nologo /Gz /ML /W3 /WX /Zi /Od /Oy /Gy /I “$(TARGET_INC_PATH)” /I
“$(CRT_INC_PATH)” /I “$(DDK_INC_PATH)” /I “$(WDM_INC_PATH)” /FI"warning.h"
/D X86=1 /D i386=1 /D “STD_CALL” /D
CONDITION_HANDLING=1 /D NT_INST=0 /D WIN32=100 /D NT1X=100 /D WINNT=1 /D
WIN32_LEAN_AND_MEAN=1 /D
DEVL=1 /D FPO=0 /D “NDEBUG” /D _DLL=1 /D
_WIN32_WINNT=$(_WIN32_WINNT) /D WINVER=$(WINVER) /D
_WIN32_IE=$(_WIN32_IE) /D
NTDDI_VERSION=$(NTDDI_VERSION)
/FR".\objfre_wxp_x86\i386/"
/Fo".\objfre_wxp_x86\i386/"
/Fd".\objfre_wxp_x86\i386/" /Zel -cbstring /GF /Oxs /c

Project Options (Visual studio LINK)

ntoskrnl.lib hal.lib ntstrsafe.lib /nologo /base:“0x10000” /version:5.0
/stack:0x40000,0x1000 /entry:“DriverEntry” /profile
/map:“.\objfre_wxp_x86\i386/CardReader.map” /debug
/machine:IX86 /nodefaultlib
/out:“objfre_wxp_x86\i386\CardReader.sys”
/libpath:“$(TARGET_LIB_PATH)” /driver
/MERGE:_PAGE=PAGE /MERGE:_TEXT=.text /SECTION:INIT,d /MERGE:.rdata=.text
/FULLBUILD /RELEASE /OPT:REF /OPT:ICF /align:0x80 /osversion:5.00
/subsystem:native,1.10 /debug:MINIMAL
/ignore:4010,4037,4039,4065,4070,4078,4087,4089,4099,4221,4210

Thanks in advance


Yahoo! Messenger
Show us what our next emoticon should look like. Join the fun.
http://www.advision.webevents.yahoo.com/emoticontest


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

Do use a DSP, this is stupid! I have a customer who chased their ass for 2
months because they didn’t get everything exactly right!. There are ways
(such as ddkbuild) to use visual studio with build. Also because of this
stupidity you can’t use PreFast on your driver, so you are just adding bugs
to you list to find.

At least be nice enough to this list, to tell people what your product is,
so we can be sure never to buy it!


Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply

“Saurabh” wrote in message news:xxxxx@windbg…
> Hi,
> I have a beginner question.
> Is it possible that I can force source indexing in the
> pdb file.I cant use the pdb file generated by the
> build for source debugging in Windbg .
>
> I am using visual studio to compile using dsp file but
> the DDK compiler.I do have Debug info set as Program
> Database in Visual studio enviroment.
> srctool: cardreader.pdb is not source indexed
> ===============================================
> Symbol Type: PDB - Symbols loaded successfully
> from symbol search path.
>
> E:\XXX\ver1.7\CardReader\driver\objfre_wxp_x86\i386\CardReader.pdb
> Load Report: public symbols , not source indexed
> E:\XXX\ver1.7
>
> Project options(Visual studio C++)
> /nologo /Gz /ML /W3 /WX /Zi /Od /Oy /Gy /I
> “$(TARGET_INC_PATH)” /I “$(CRT_INC_PATH)” /I
> “$(DDK_INC_PATH)” /I “$(WDM_INC_PATH)” /FI"warning.h"
> /D X86=1 /D i386=1 /D “STD_CALL” /D
> CONDITION_HANDLING=1 /D NT_INST=0 /D WIN32=100 /D
> NT1X=100 /D WINNT=1 /D WIN32_LEAN_AND_MEAN=1 /D
> DEVL=1 /D FPO=0 /D “NDEBUG” /D _DLL=1 /D
> _WIN32_WINNT=$(_WIN32_WINNT) /D WINVER=$(WINVER) /D
> _WIN32_IE=$(_WIN32_IE) /D
> NTDDI_VERSION=$(NTDDI_VERSION)
> /FR".\objfre_wxp_x86\i386/“
> /Fo”.\objfre_wxp_x86\i386/“
> /Fd”.\objfre_wxp_x86\i386/" /Zel -cbstring /GF /Oxs /c
> =================================================
> Project Options (Visual studio LINK)
>
> ntoskrnl.lib hal.lib ntstrsafe.lib /nologo
> /base:“0x10000” /version:5.0 /stack:0x40000,0x1000
> /entry:“DriverEntry” /profile
> /map:“.\objfre_wxp_x86\i386/CardReader.map” /debug
> /machine:IX86 /nodefaultlib
> /out:“objfre_wxp_x86\i386\CardReader.sys”
> /libpath:“$(TARGET_LIB_PATH)” /driver
> /MERGE:_PAGE=PAGE /MERGE:_TEXT=.text /SECTION:INIT,d
> /MERGE:.rdata=.text /FULLBUILD /RELEASE /OPT:REF
> /OPT:ICF /align:0x80 /osversion:5.00
> /subsystem:native,1.10 /debug:MINIMAL
> /ignore:4010,4037,4039,4065,4070,4078,4087,4089,4099,4221,4210
>
>
>
> Thanks in advance
>
>
>
> __________________________________
> Yahoo! Messenger
> Show us what our next emoticon should look like. Join the fun.
> http://www.advision.webevents.yahoo.com/emoticontest
>

Thanks Shahar for your helpful reply. It really
helped.

Don I think I clearly mentioned that this is a
beginner question and I don’t think this forum is a
platform to ridicule stupid questions.
I accept your advice against using dsp as I respect
your knowledge.
I have appreciated and benefited from your
contributions to this forum which surely doesn’t make
me a fan of your arrogance too.

It would be nice if people like you were polite, but
being “just helpful” would be enough for novices like
me.

And for you kind information, the driver was going to
be used for rockets and satellites but I’ll use it for
my school project as I don’t want you to loose sleep
over it.

Thanks in advance

— Don Burn wrote:
> Do use a DSP, this is stupid! I have a customer who
> chased their ass for 2
> months because they didn’t get everything exactly
> right!. There are ways
> (such as ddkbuild) to use visual studio with build.
> Also because of this
> stupidity you can’t use PreFast on your driver, so
> you are just adding bugs
> to you list to find.
>
> At least be nice enough to this list, to tell people
> what your product is,
> so we can be sure never to buy it!
>
>
> –
> Don Burn (MVP, Windows DDK)
> Windows 2k/XP/2k3 Filesystem and Driver Consulting
> Remove StopSpam from the email to reply
>
>
>
> “Saurabh” wrote in message
> news:xxxxx@windbg…
> > Hi,
> > I have a beginner question.
> > Is it possible that I can force source indexing in
> the
> > pdb file.I cant use the pdb file generated by the
> > build for source debugging in Windbg .
> >
> > I am using visual studio to compile using dsp file
> but
> > the DDK compiler.I do have Debug info set as
> Program
> > Database in Visual studio enviroment.
> > srctool: cardreader.pdb is not source indexed
> > ===============================================
> > Symbol Type: PDB - Symbols loaded
> successfully
> > from symbol search path.
> >
> >
>
E:\XXX\ver1.7\CardReader\driver\objfre_wxp_x86\i386\CardReader.pdb
> > Load Report: public symbols , not source
> indexed
> > E:\XXX\ver1.7
> >
> > Project options(Visual studio C++)
> > /nologo /Gz /ML /W3 /WX /Zi /Od /Oy /Gy /I
> > “$(TARGET_INC_PATH)” /I “$(CRT_INC_PATH)” /I
> > “$(DDK_INC_PATH)” /I “$(WDM_INC_PATH)”
> /FI"warning.h"
> > /D X86=1 /D i386=1 /D “STD_CALL” /D
> > CONDITION_HANDLING=1 /D NT_INST=0 /D WIN32=100 /D
> > NT1X=100 /D WINNT=1 /D WIN32_LEAN_AND_MEAN=1 /D
> > DEVL=1 /D FPO=0 /D “NDEBUG” /D _DLL=1 /D
> > _WIN32_WINNT=$(_WIN32_WINNT) /D WINVER=$(WINVER)
> /D
> > _WIN32_IE=$(_WIN32_IE) /D
> > NTDDI_VERSION=$(NTDDI_VERSION)
> > /FR".\objfre_wxp_x86\i386/“
> > /Fo”.\objfre_wxp_x86\i386/“
> > /Fd”.\objfre_wxp_x86\i386/" /Zel -cbstring /GF
> /Oxs /c
> > =================================================
> > Project Options (Visual studio LINK)
> >
> > ntoskrnl.lib hal.lib ntstrsafe.lib /nologo
> > /base:“0x10000” /version:5.0 /stack:0x40000,0x1000
> > /entry:“DriverEntry” /profile
> > /map:“.\objfre_wxp_x86\i386/CardReader.map” /debug
> > /machine:IX86 /nodefaultlib
> > /out:“objfre_wxp_x86\i386\CardReader.sys”
> > /libpath:“$(TARGET_LIB_PATH)” /driver
> > /MERGE:_PAGE=PAGE /MERGE:_TEXT=.text
> /SECTION:INIT,d
> > /MERGE:.rdata=.text /FULLBUILD /RELEASE /OPT:REF
> > /OPT:ICF /align:0x80 /osversion:5.00
> > /subsystem:native,1.10 /debug:MINIMAL
> >
>
/ignore:4010,4037,4039,4065,4070,4078,4087,4089,4099,4221,4210
> >
> >
> >
> > Thanks in advance
> >
> >
> >
> >
> > Yahoo! Messenger
> > Show us what our next emoticon should look like.
> Join the fun.
> >
> http://www.advision.webevents.yahoo.com/emoticontest
> >
>
>
>
> —
> You are currently subscribed to windbg as:
> xxxxx@yahoo.com
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>


Do you Yahoo!?
Yahoo! Personals - Better first dates. More second dates.
http://personals.yahoo.com

I am not ridiculing a stupid question, I am ridiculing a stupid practice of
ignoring the tools provided to do a job, then asking for help when things
don’t work correctly. I am polite to people looking for help, but when
someone say’s I ignored all the rules, now things don’t work help me, that
is the time for the person to receive a swift kick in the ass.

As far as this being a student project this is the time you should learn to
do it right, or else go find another line of work. Finally, your joke
about rockets, one of my first drivers as a student was to display some
graphical data on a display screen that did not have a driver for it. Just
a toy right, well less than a year later I was asked to improve it since it
was being used to display data for doctors doing open heart surgery. If you
don’t treat any piece of kernel code as mission critical then stay out of
the kernel.


Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply

“Saurabh” wrote in message news:xxxxx@windbg…
> Thanks Shahar for your helpful reply. It really
> helped.
>
> Don I think I clearly mentioned that this is a
> beginner question and I don’t think this forum is a
> platform to ridicule stupid questions.
> I accept your advice against using dsp as I respect
> your knowledge.
> I have appreciated and benefited from your
> contributions to this forum which surely doesn’t make
> me a fan of your arrogance too.
>
> It would be nice if people like you were polite, but
> being “just helpful” would be enough for novices like
> me.
>
> And for you kind information, the driver was going to
> be used for rockets and satellites but I’ll use it for
> my school project as I don’t want you to loose sleep
> over it.
>
> Thanks in advance
>
>
> — Don Burn wrote:
>> Do use a DSP, this is stupid! I have a customer who
>> chased their ass for 2
>> months because they didn’t get everything exactly
>> right!. There are ways
>> (such as ddkbuild) to use visual studio with build.
>> Also because of this
>> stupidity you can’t use PreFast on your driver, so
>> you are just adding bugs
>> to you list to find.
>>
>> At least be nice enough to this list, to tell people
>> what your product is,
>> so we can be sure never to buy it!
>>
>>
>> –
>> Don Burn (MVP, Windows DDK)
>> Windows 2k/XP/2k3 Filesystem and Driver Consulting
>> Remove StopSpam from the email to reply
>>
>>
>>
>> “Saurabh” wrote in message
>> news:xxxxx@windbg…
>> > Hi,
>> > I have a beginner question.
>> > Is it possible that I can force source indexing in
>> the
>> > pdb file.I cant use the pdb file generated by the
>> > build for source debugging in Windbg .
>> >
>> > I am using visual studio to compile using dsp file
>> but
>> > the DDK compiler.I do have Debug info set as
>> Program
>> > Database in Visual studio enviroment.
>> > srctool: cardreader.pdb is not source indexed
>> > ===============================================
>> > Symbol Type: PDB - Symbols loaded
>> successfully
>> > from symbol search path.
>> >
>> >
>>
> E:\XXX\ver1.7\CardReader\driver\objfre_wxp_x86\i386\CardReader.pdb
>> > Load Report: public symbols , not source
>> indexed
>> > E:\XXX\ver1.7
>> >
>> > Project options(Visual studio C++)
>> > /nologo /Gz /ML /W3 /WX /Zi /Od /Oy /Gy /I
>> > “$(TARGET_INC_PATH)” /I “$(CRT_INC_PATH)” /I
>> > “$(DDK_INC_PATH)” /I “$(WDM_INC_PATH)”
>> /FI"warning.h"
>> > /D X86=1 /D i386=1 /D “STD_CALL” /D
>> > CONDITION_HANDLING=1 /D NT_INST=0 /D WIN32=100 /D
>> > NT1X=100 /D WINNT=1 /D WIN32_LEAN_AND_MEAN=1 /D
>> > DEVL=1 /D FPO=0 /D “NDEBUG” /D _DLL=1 /D
>> > _WIN32_WINNT=$(_WIN32_WINNT) /D WINVER=$(WINVER)
>> /D
>> > _WIN32_IE=$(_WIN32_IE) /D
>> > NTDDI_VERSION=$(NTDDI_VERSION)
>> > /FR".\objfre_wxp_x86\i386/“
>> > /Fo”.\objfre_wxp_x86\i386/“
>> > /Fd”.\objfre_wxp_x86\i386/" /Zel -cbstring /GF
>> /Oxs /c
>> > =================================================
>> > Project Options (Visual studio LINK)
>> >
>> > ntoskrnl.lib hal.lib ntstrsafe.lib /nologo
>> > /base:“0x10000” /version:5.0 /stack:0x40000,0x1000
>> > /entry:“DriverEntry” /profile
>> > /map:“.\objfre_wxp_x86\i386/CardReader.map” /debug
>> > /machine:IX86 /nodefaultlib
>> > /out:“objfre_wxp_x86\i386\CardReader.sys”
>> > /libpath:“$(TARGET_LIB_PATH)” /driver
>> > /MERGE:_PAGE=PAGE /MERGE:_TEXT=.text
>> /SECTION:INIT,d
>> > /MERGE:.rdata=.text /FULLBUILD /RELEASE /OPT:REF
>> > /OPT:ICF /align:0x80 /osversion:5.00
>> > /subsystem:native,1.10 /debug:MINIMAL
>> >
>>
> /ignore:4010,4037,4039,4065,4070,4078,4087,4089,4099,4221,4210
>> >
>> >
>> >
>> > Thanks in advance
>> >
>> >
>> >
>> >
>> > Yahoo! Messenger
>> > Show us what our next emoticon should look like.
>> Join the fun.
>> >
>> http://www.advision.webevents.yahoo.com/emoticontest
>> >
>>
>>
>>
>> —
>> You are currently subscribed to windbg as:
>> xxxxx@yahoo.com
>> To unsubscribe send a blank email to
>> xxxxx@lists.osr.com
>>
>
>
>
>

> Do you Yahoo!?
> Yahoo! Personals - Better first dates. More second dates.
> http://personals.yahoo.com
>
>