Thread: Stale Symbol File Problem

  1. #1
    Registered User
    Join Date
    Apr 2009

    Stale Symbol File Problem


    I added a public function to a class, built the source files, and tried to debug the resulting executable. The problem I found was that the new symbol file does not contain the added function. I am using WinDbg 6.8.0003.0 x64 version. I set the symbol path correctly so that the path always contains a newly created symbol file. I thought that 1) WinDbg might be using a cached (stale) symbol file, or 2) MSBUILD I use to build the project might be using old binaries to build the symbol file.

    For 2), I deleted all the files produced and stored under the subfolder of the %OBJECT_ROOT% folder, deleted the old symbol file, and then tried to rebuild the symbol file, but all the attempts have failed.

    By the way, I looked up if the new function was added by doing "X MODULENAME!CLASSNAME*" in WinDbg. This outputted the old functions fine, but the new function never showed.

    Has anyone experienced this before? Thanks!
    Last edited by chiefmonkey; 06-16-2009 at 03:18 PM.

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Farncombe, Surrey, England
    Seems rather familiar. I think what used to happen to me was that WinDbg would hold the symbol file open, and prevent visual studio from writing the .PDB file.

    Solution is to make sure that WinDbg is closed (or at least symbols unloaded) before you build the code.

    Of course, your problem MAY be different - and my memory isn't precise enough to remember all details of something I did 4-5 years back.

    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Newbie homework help
    By fossage in forum C Programming
    Replies: 3
    Last Post: 04-30-2009, 04:27 PM
  2. File transfer- the file sometimes not full transferred
    By shu_fei86 in forum C# Programming
    Replies: 13
    Last Post: 03-13-2009, 12:44 PM
  3. File Writing Problem
    By polskash in forum C Programming
    Replies: 3
    Last Post: 02-13-2009, 10:47 AM
  4. help with text input
    By Alphawaves in forum C Programming
    Replies: 8
    Last Post: 04-08-2007, 04:54 PM
  5. inet_aton()... Noob needs help with sockets :|
    By Maz in forum C++ Programming
    Replies: 3
    Last Post: 11-22-2005, 04:33 PM