PC Review


Reply
Thread Tools Rate Thread

correct "sources" file for debugging?

 
 
Polaris
Guest
Posts: n/a
 
      22nd Dec 2006
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

 
Reply With Quote
 
 
 
 
Don Burn
Guest
Posts: n/a
 
      22nd Dec 2006
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>



 
Reply With Quote
 
Polaris
Guest
Posts: n/a
 
      22nd Dec 2006
tried but it did not make any difference.

Thanks
Polaris

"Don Burn" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> 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
>>

>
>


 
Reply With Quote
 
Maxim S. Shatskih
Guest
Posts: n/a
 
      22nd Dec 2006
Do not forget:

USE_PDB=1

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
(E-Mail Removed)
http://www.storagecraft.com

"Polaris" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>


 
Reply With Quote
 
=?Utf-8?B?UGF2ZWwgQS4=?=
Guest
Posts: n/a
 
      24th Dec 2006
"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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
correct syntax for nesting "if", "and", and "vlookup"....if possib Christine Microsoft Excel Worksheet Functions 4 2nd Jan 2009 10:43 PM
Clicking "Start Debugging" makes a "File not Found" Exception active Microsoft VB .NET 0 2nd Apr 2007 02:36 PM
"Cant open this item. Cant find this file. Make Sure Path and File Name are correct" johnamartin@blueyonder.co.uk Microsoft Outlook Discussion 0 17th Jan 2006 04:58 PM
"End program - wupdater.exe" pops everytime I shut down? It says I "will lose all unsaved info..." Any suggestion on how to correct this? =?Utf-8?B?VHk=?= Windows XP Help 1 14th Apr 2004 11:20 PM
Wrong Count(*) on an objCommand.ExecuteScalar but it is correct on "SQL Entreprise Manager" or "SQL Query Analyser" Julio Allegue Microsoft VB .NET 2 21st Oct 2003 03:13 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:29 PM.