From: Polaris on 22 Dec 2006 13:13 Hi Experts: I have a short "sources" file below which seems not generating correct debug info: driver (testva.sys) size of the debug version is only a bit bigger than fee build and could not set break point in WinDbg. Could you see anything incorrect here? What is misssing to generate full debug info? Thanks in Advance! Polaris ---------- Sources ------------- TARGETNAME=testva TARGETTYPE=DRIVER TARGETPATH=obj MSC_OPTIMIZATION=/Od TARGETLIBS= $(DDK_LIB_PATH)\ndis.lib NTDEBUG=ntsd NTDEBUGTYPE=windbg C_DEFINES=$(C_DEFINES) -DNDIS_MINIPORT_DRIVER=1 C_DEFINES=$(C_DEFINES) -DNDIS_WDM=1 -DWINNT -DWIN2000 $(DEBFLAGS) C_DEFINES=$(C_DEFINES) -DNDIS50_MINIPORT=1 INCLUDES=$(DDK_INC_PATH); ..asm{$O\}.obj: ml /coff /Fo$@ /c $< SOURCES= testva.c oid.c hExcept3.asm testva.rc
From: Don Burn on 22 Dec 2006 13:18 Try it without the MSC_OPTIMIZATION, NTDEBUG, NTDEBUGTYPE switches. -- Don Burn (MVP, Windows DDK) Windows 2k/XP/2k3 Filesystem and Driver Consulting http://www.windrvr.com Remove StopSpam from the email to reply "Polaris" <etpolaris(a)hotmail.com> wrote in message news:ubIfUTfJHHA.536(a)TK2MSFTNGP02.phx.gbl... > Hi Experts: > > I have a short "sources" file below which seems not generating correct > debug info: driver (testva.sys) size of the debug version is only a bit > bigger than fee build and could not set break point in WinDbg. Could you > see anything incorrect here? What is misssing to generate full debug > info? > > Thanks in Advance! > Polaris > > ---------- Sources ------------- > TARGETNAME=testva > TARGETTYPE=DRIVER > TARGETPATH=obj > > MSC_OPTIMIZATION=/Od > > TARGETLIBS= $(DDK_LIB_PATH)\ndis.lib > > NTDEBUG=ntsd > NTDEBUGTYPE=windbg > > C_DEFINES=$(C_DEFINES) -DNDIS_MINIPORT_DRIVER=1 > C_DEFINES=$(C_DEFINES) -DNDIS_WDM=1 -DWINNT -DWIN2000 $(DEBFLAGS) > C_DEFINES=$(C_DEFINES) -DNDIS50_MINIPORT=1 > > INCLUDES=$(DDK_INC_PATH); > > .asm{$O\}.obj: ml /coff /Fo$@ /c $< > > SOURCES= testva.c oid.c hExcept3.asm testva.rc >
From: Polaris on 22 Dec 2006 13:34 tried but it did not make any difference. Thanks Polaris "Don Burn" <burn(a)stopspam.acm.org> wrote in message news:uOWMqWfJHHA.320(a)TK2MSFTNGP06.phx.gbl... > Try it without the MSC_OPTIMIZATION, NTDEBUG, NTDEBUGTYPE switches. > > > -- > Don Burn (MVP, Windows DDK) > Windows 2k/XP/2k3 Filesystem and Driver Consulting > http://www.windrvr.com > Remove StopSpam from the email to reply > > > > "Polaris" <etpolaris(a)hotmail.com> wrote in message > news:ubIfUTfJHHA.536(a)TK2MSFTNGP02.phx.gbl... >> Hi Experts: >> >> I have a short "sources" file below which seems not generating correct >> debug info: driver (testva.sys) size of the debug version is only a bit >> bigger than fee build and could not set break point in WinDbg. Could you >> see anything incorrect here? What is misssing to generate full debug >> info? >> >> Thanks in Advance! >> Polaris >> >> ---------- Sources ------------- >> TARGETNAME=testva >> TARGETTYPE=DRIVER >> TARGETPATH=obj >> >> MSC_OPTIMIZATION=/Od >> >> TARGETLIBS= $(DDK_LIB_PATH)\ndis.lib >> >> NTDEBUG=ntsd >> NTDEBUGTYPE=windbg >> >> C_DEFINES=$(C_DEFINES) -DNDIS_MINIPORT_DRIVER=1 >> C_DEFINES=$(C_DEFINES) -DNDIS_WDM=1 -DWINNT -DWIN2000 $(DEBFLAGS) >> C_DEFINES=$(C_DEFINES) -DNDIS50_MINIPORT=1 >> >> INCLUDES=$(DDK_INC_PATH); >> >> .asm{$O\}.obj: ml /coff /Fo$@ /c $< >> >> SOURCES= testva.c oid.c hExcept3.asm testva.rc >> > >
From: Maxim S. Shatskih on 22 Dec 2006 14:12 Do not forget: USE_PDB=1 -- Maxim Shatskih, Windows DDK MVP StorageCraft Corporation maxim(a)storagecraft.com http://www.storagecraft.com "Polaris" <etpolaris(a)hotmail.com> wrote in message news:ubIfUTfJHHA.536(a)TK2MSFTNGP02.phx.gbl... > Hi Experts: > > I have a short "sources" file below which seems not generating correct debug > info: driver (testva.sys) size of the debug version is only a bit bigger > than fee build and could not set break point in WinDbg. Could you see > anything incorrect here? What is misssing to generate full debug info? > > Thanks in Advance! > Polaris > > ---------- Sources ------------- > TARGETNAME=testva > TARGETTYPE=DRIVER > TARGETPATH=obj > > MSC_OPTIMIZATION=/Od > > TARGETLIBS= $(DDK_LIB_PATH)\ndis.lib > > NTDEBUG=ntsd > NTDEBUGTYPE=windbg > > C_DEFINES=$(C_DEFINES) -DNDIS_MINIPORT_DRIVER=1 > C_DEFINES=$(C_DEFINES) -DNDIS_WDM=1 -DWINNT -DWIN2000 $(DEBFLAGS) > C_DEFINES=$(C_DEFINES) -DNDIS50_MINIPORT=1 > > INCLUDES=$(DDK_INC_PATH); > > .asm{$O\}.obj: ml /coff /Fo$@ /c $< > > SOURCES= testva.c oid.c hExcept3.asm testva.rc >
From: Pavel A. on 24 Dec 2006 14:06 "Maxim S. Shatskih" wrote: > Do not forget: > > USE_PDB=1 Strange, I never put USE_PDB in my sources and everything is ok. Try to remove -DWINNT and $(DEBFLAGS), or start clean from the DDK miniport samples. --PA
|
Pages: 1 Prev: How to install VHIDMINI driver program on VISTA 64BIT OS Next: NDIS6 NBL indication |