Comments (5)
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.
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.
@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.
@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.
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)
- Lack of debug symbols in binary built with optimizations enabled HOT 2
- Appveyor cv2pdb.exe artifact deleted HOT 4
- Hang when vswhere produces no output HOT 1
- Any plans for new release? HOT 1
- What files from VisualStudio are strictly required for cv2pdb to run? HOT 2
- produces empty pdb for wined3d HOT 4
- Invalid form=11 for directory index lineHdrOffs=7ded41 HOT 4
- Lack of structures and classes forward declarations HOT 1
- Аnonymous unions and typedefs has the same UDT name "__noname"
- Unicode WCHAR strings in builds without native wchar_t not showing as strings in debugger
- cannot load PDB helper DLL HOT 2
- add continuation record(addDWARFFields)
- Cannot get class info after convert
- cv2pdb converted a PDB that neither IDA nor WinDbg recognize HOT 5
- missing symbols from generated pdb on windows 11 for FFmpeg shared libraries HOT 3
- How do i use this on executable built using by mingw64-qmake? HOT 4
- Cannot load PDB helper DLL HOT 1
- Ghidra support
- NASM bug HOT 1
- Missing symbols HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cv2pdb.