Changes

Jump to: navigation, search

Mozilla Source and Symbol Server

2,371 bytes added, 19:58, 12 December 2007
0.3 Release
===Contribution Opportunities for 0.2===
* Please follow the instructions above and email me to let me know a) if it works for you and b) if the directions are clear
 
== 0.3 Release ==
 
The goal for the 0.3 release of the Source Server was to hack [http://mxr.mozilla.org/mozilla/source/toolkit/crashreporter/tools/symbolstore.py symbolstore.py] so that it would gather up a list of the source files in each pdb that had cvs information and then feed them to pdbstr.exe which is a binary that comes in the Debugging Tools for Windows Package. That binary will now live in mozilla/toolkit/crashreporter/tools/win32/ along with dump_syms.
 
Here is [http://avnerd.tv/sharedFiles/symbolstorepatch.txt my patch] for symbolstore.py and in order to get a working version of this 0.3 Source Server happening on your computer please follow these steps:
 
* As per 0.2 make sure your debugger is set up to enable source server and that you have directed it to save symbols in a directory where you will now copy my symbols to: [http://avnerd.tv/symbols/crashreporter-symbols-firefox-3.0b2pre-WINNT-2007120422.zip Symbols] - sorry, I can't serve them up right now so it's best if you just download the .zip and place them in the folder manually
 
* This is the [http://avnerd.tv/sharedFiles/ff_SourceServer.exe.zip installer] for build id 2007120422 which goes along with the above symbols - it will install in the Program Files/Minefield directory with no options given for choosing another install location
 
* You will need a pointer to cvs.exe in your path - either point to mozilla-build/mysys/bin/cvs.exe or [http://other.jrsoftware.org/ic/cvs-1.11.2.zip download it here] and put it where you like
 
Once you have these items set up - you may fire up your debugger and Minefield - attach to process and then when you break the debugger will ask you for permission to run cvs commands:
[Image:http://crashopensource.files.wordpress.com/2007/12/picture-1.png | permission for cvs]
 
The source files will be checked out into a mozilla/... path - mine are in Program Files/Microsoft Visual Studio 8/Common7/IDE/mozilla... and once you point your debugger to the first file, it finds the others for you automagically.
 
Thanks to all the folks on the #seneca channel and especially thanks to Dave and Ted for constantly checking out the progress especially at the end when Ted found the right magic to activate pdbstr.exe properly from inside of symbolstore.py.
 
You can leave feedback and comments on my [http://crashopensource.wordpress.com blog]
= Additional Resources =

Navigation menu