Menu

#69 Option to not strip debug information on Win32

open
nobody
None
5
2011-04-26
2011-04-26
No

Currently, using upx to compress my executable file strips the debug information, but in my case I would like to leave it in place in order to be able to load the .pdb file in MSVC to debug memory dumps.

Would it be possible to add this option? I could add it myself if I get some simple pointers about the best strategy to do it. I took a look and found the parts of the code that strip the information, but I am not sure how to copy it to the new PE header instead of removing it. This is probably easier/faster to do for someone more familiar with it.

Discussion

  • László Molnár

    Why do you want to compress a file with debug information in it? Would not be simpler to use a detached debug info file?

     
  • Nobody/Anonymous

    > Why do you want to compress a file with debug information in it? Would not
    be simpler to use a detached debug info file?

    "debug information" can be the path to that detached debug info file. It's required to create .dmp file containing path to .pdb.

     

Log in to post a comment.