Debug the checked or free build

Hi,

When debugging a driver using a two PC setup I am suprised that the WinDbg
documentation says that the host PC debugs a free build of the driver using
WinDbg and that the target PC runs the checked build.

To me it would seem natural that firstly both PC’s would need the same build
of driver and that secondly this would be the checked build because it is
created for the purposes of debug (i.e. not code optimised etc.).

If the host PC is supposed to single step a free build of the driver does it
need to be built with single stepping in mind (i.e. to remove all
optimisations initially)? If so how would this be achived?

Regards FarmerJo

Where does it say this? You build a copy of the driver, the host needs
access to the PDB file and the sources, the traget needs the SYS file.


Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply

“FarmerJo” wrote in message news:xxxxx@windbg…
> Hi,
>
> When debugging a driver using a two PC setup I am suprised that the WinDbg
> documentation says that the host PC debugs a free build of the driver
> using WinDbg and that the target PC runs the checked build.
>
> To me it would seem natural that firstly both PC’s would need the same
> build of driver and that secondly this would be the checked build because
> it is created for the purposes of debug (i.e. not code optimised etc.).
>
> If the host PC is supposed to single step a free build of the driver does
> it need to be built with single stepping in mind (i.e. to remove all
> optimisations initially)? If so how would this be achived?
>
> Regards FarmerJo
>
>
>

Hi,

In the WinDbg help file under section:-

Target Computer and Host Computer

It shows it in the diagram.

Would this be incorrect?

Regards FarmerJo

“Don Burn” wrote in message news:xxxxx@windbg…
> Where does it say this? You build a copy of the driver, the host needs
> access to the PDB file and the sources, the traget needs the SYS file.
>
>
>
> –
> Don Burn (MVP, Windows DDK)
> Windows 2k/XP/2k3 Filesystem and Driver Consulting
> Website: http://www.windrvr.com
> Blog: http://msmvps.com/blogs/WinDrvr
> Remove StopSpam to reply
>
>
>
> “FarmerJo” wrote in message news:xxxxx@windbg…
>> Hi,
>>
>> When debugging a driver using a two PC setup I am suprised that the
>> WinDbg documentation says that the host PC debugs a free build of the
>> driver using WinDbg and that the target PC runs the checked build.
>>
>> To me it would seem natural that firstly both PC’s would need the same
>> build of driver and that secondly this would be the checked build because
>> it is created for the purposes of debug (i.e. not code optimised etc.).
>>
>> If the host PC is supposed to single step a free build of the driver does
>> it need to be built with single stepping in mind (i.e. to remove all
>> optimisations initially)? If so how would this be achived?
>>
>> Regards FarmerJo
>>
>>
>>
>
>
>

The picture is poor, but I would interpret it to be the free build of the
OS, and the checked build of the OS. Though of course you don’t have to
have the checked build of the OS to debug, and Microsoft is making it very
hard to get the checked build.


Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply

“FarmerJo” wrote in message news:xxxxx@windbg…
> Hi,
>
> In the WinDbg help file under section:-
>
> Target Computer and Host Computer
>
> It shows it in the diagram.
>
> Would this be incorrect?
>
> Regards FarmerJo
>
>
>
>
>
>
>
>
>
>
> “Don Burn” wrote in message news:xxxxx@windbg…
>> Where does it say this? You build a copy of the driver, the host needs
>> access to the PDB file and the sources, the traget needs the SYS file.
>>
>>
>>
>> –
>> Don Burn (MVP, Windows DDK)
>> Windows 2k/XP/2k3 Filesystem and Driver Consulting
>> Website: http://www.windrvr.com
>> Blog: http://msmvps.com/blogs/WinDrvr
>> Remove StopSpam to reply
>>
>>
>>
>> “FarmerJo” wrote in message news:xxxxx@windbg…
>>> Hi,
>>>
>>> When debugging a driver using a two PC setup I am suprised that the
>>> WinDbg documentation says that the host PC debugs a free build of the
>>> driver using WinDbg and that the target PC runs the checked build.
>>>
>>> To me it would seem natural that firstly both PC’s would need the same
>>> build of driver and that secondly this would be the checked build
>>> because it is created for the purposes of debug (i.e. not code optimised
>>> etc.).
>>>
>>> If the host PC is supposed to single step a free build of the driver
>>> does it need to be built with single stepping in mind (i.e. to remove
>>> all optimisations initially)? If so how would this be achived?
>>>
>>> Regards FarmerJo
>>>
>>>
>>>
>>
>>
>>
>
>
>

Thanks for sorting that one out. Been buggin me for a while.

Regards FarmerJo

“Don Burn” wrote in message news:xxxxx@windbg…
> The picture is poor, but I would interpret it to be the free build of the
> OS, and the checked build of the OS. Though of course you don’t have to
> have the checked build of the OS to debug, and Microsoft is making it very
> hard to get the checked build.
>
>
> –
> Don Burn (MVP, Windows DDK)
> Windows 2k/XP/2k3 Filesystem and Driver Consulting
> Website: http://www.windrvr.com
> Blog: http://msmvps.com/blogs/WinDrvr
> Remove StopSpam to reply
>
>
>
>
> “FarmerJo” wrote in message news:xxxxx@windbg…
>> Hi,
>>
>> In the WinDbg help file under section:-
>>
>> Target Computer and Host Computer
>>
>> It shows it in the diagram.
>>
>> Would this be incorrect?
>>
>> Regards FarmerJo
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> “Don Burn” wrote in message news:xxxxx@windbg…
>>> Where does it say this? You build a copy of the driver, the host needs
>>> access to the PDB file and the sources, the traget needs the SYS file.
>>>
>>>
>>>
>>> –
>>> Don Burn (MVP, Windows DDK)
>>> Windows 2k/XP/2k3 Filesystem and Driver Consulting
>>> Website: http://www.windrvr.com
>>> Blog: http://msmvps.com/blogs/WinDrvr
>>> Remove StopSpam to reply
>>>
>>>
>>>
>>> “FarmerJo” wrote in message news:xxxxx@windbg…
>>>> Hi,
>>>>
>>>> When debugging a driver using a two PC setup I am suprised that the
>>>> WinDbg documentation says that the host PC debugs a free build of the
>>>> driver using WinDbg and that the target PC runs the checked build.
>>>>
>>>> To me it would seem natural that firstly both PC’s would need the same
>>>> build of driver and that secondly this would be the checked build
>>>> because it is created for the purposes of debug (i.e. not code
>>>> optimised etc.).
>>>>
>>>> If the host PC is supposed to single step a free build of the driver
>>>> does it need to be built with single stepping in mind (i.e. to remove
>>>> all optimisations initially)? If so how would this be achived?
>>>>
>>>> Regards FarmerJo
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>>
>
>
>