c++ - how to clear PDB string in a release VC++ build -


i have exe built visual studio , i'd clear or remove path portion of pdb filename. i'm looking tool make adjustment in pe's debug directory, without using hex editor. many have suggested binplace, can't work. have yet see command line binplace works purpose. other microsoft tools have been suggested , these tools have literally no documentation besides command line help. command line indicates that's not these tools (e.g. pdbstr). again, people making these suggestions post no command line usage information , since these tools aren't documented, i'm @ square one. relinking not option me in case aware of linker switches alter information. there tools work clearing pdb path information exe or have binplace command line works?

peupdate can downloaded here:

http://bytepointer.com/tools/index.htm#peupdate

this tool can used list, remove or change pdb string in executable module. following example clears entire pdb string (path , filename):

peupdate -c <module_path> 

to strip pdb path , leave pdb filename allowing symbol lookup still work when debugging module if symbol paths set (e.g. "c:\joeblow\test.pdb" changes "test.pdb"):

peupdate -s <module_path> 

to change pdb path: (any arbitrary string)

peupdate -u <new_path> <module_path> 

Comments