Giter Site home page Giter Site logo

Comments (5)

rainers avatar rainers commented on September 13, 2024

What's your command line for keeping debug symbols in a separate file? I haven't found anything appropriate with --help.

If you want to ship an executable with stripped debug info, but keep the PDB for later crash dump analysis, have you tried to reverse the steps? Generate the PDB with cv2pdb, then strip DWARF info could work (or need a lot less changes).

from cv2pdb.

jtanx avatar jtanx commented on September 13, 2024

I am using mingw-w64 from the msys2 project, specifically objcopy and strip from the binutils package (mingw-w64-i686-binutils).

To extract the symbols, I run:

objcopy --only-keep-debug my-binary.exe my-binary.debug

To strip the binary, I run:

strip my-binary.exe -so my-stripped-binary.exe

But I think you can also just make use of objcopy only, maybe:

objcopy --strip-all my-binary.exe my-stripped-binary.exe

I hadn't thought about the reverse method of generating the PDB first, then stripping the DWARF symbols - I'll keep that in mind, thanks!

from cv2pdb.

foxeed avatar foxeed commented on September 13, 2024

@jtanx hello, is the suggested method of converting to PDB and only then stripping the debug symbols working? I am facing the same problem and wonder if I need to modify the cv2pdb or not.

from cv2pdb.

jtanx avatar jtanx commented on September 13, 2024

@foxeed I'm unaware of any changes to converting separate DWARF symbols. I haven't tried the other method, but I don't see why it won't work

from cv2pdb.

excitoon avatar excitoon commented on September 13, 2024

You can not use separate DWARF symbols because you have to understand exactly where linker relocates the object data to.

By mistake

from cv2pdb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.