Win, FREECAD_RELEASE_PDB by default

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Win, FREECAD_RELEASE_PDB by default

Post by sgrogan »

Can someone explain this git commit 47536dcd?
Are the pdb's to be included in the dev-builds? Are we looking for better error messages on AppVeyor?
"fight the good fight"
wmayer
Founder
Posts: 20306
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Win, FREECAD_RELEASE_PDB by default

Post by wmayer »

The setting is to also create a pdb file for release builds, i.e. it sets the /DEBUG linker option so that in case of a crash we have a meaningful call stack. For the end-users the pdb files are of no interest so no need to add them to the installers. However, for the developers they are useful together with the crash.dmp file which a user must provide then.
Important to know is that the .pdb files contain some signature and only work for the .dll files created at the same time. This means even when relinking a .dll with exactly the same source code then the old .pdb and the new .dll file (or vice versa) cannot be used together to examine a crash.

To keep extra work at a minimum it suffices to upload the .pdb files for official releases only. The .pdb files should then be uploaded as a separate .zip file.
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: Win, FREECAD_RELEASE_PDB by default

Post by sgrogan »

wmayer wrote: Thu Oct 18, 2018 7:59 am To keep extra work at a minimum it suffices to upload the .pdb files for official releases only. The .pdb files should then be uploaded as a separate .zip file.
Thanks for the explanation.
"fight the good fight"
Post Reply