[ofw] removing the dpecial debug file
Fab Tillier
ftillier at microsoft.com
Wed Jun 29 10:06:31 PDT 2011
Uri Habusha wrote on Wed, 29 Jun 2011 at 01:20:34
> Currently the OFA build creates different files for debug and release
> version (i.e complib.dll for release and complibd.dll for debug).
>
> I don't know what was the reason to do it in this way, but I know that
> there is no other product that do it. If you wants to debug an issue you
> can install the debug version that contains the debug dll.
It allows release and debug components to co-exist. The issue is that some interfaces change in debug builds compared to the release version. For example, the cl_list_item_t structure has an extra pointer to the owning list for debugging purposes, that isn't in the release version.
You *cannot* simply swap in a debug version of complib and have it run with an application that was linked to the release version of complib. The application *must* be build against the appropriate DLL.
> Using different names complicates our installation package and testing.
> I want to change the code to use same file name for debug and release.
>
> Please let me know if there is any reason not doing it.
That's the wrong way to tackle the problem. The debug bits really don't need to be part of an installation. The debug bits should be available as part of the SDK for IB, so that application developers can debug. The drivers that everyone installs and uses should only contain release bits.
Cheers,
-Fab
>
> Thanks Uri
>
> Uri Habusha
> Windows SW Development Lead
>
> Mellanox Technologies
> P.OBox 586, Yokneam 20692
> Israel
>
>
>
>
More information about the ofw
mailing list