Publish native executable's debug information before stripping #75685
javierhonduco
started this conversation in
Ideas
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Goals
Native executables are currently being stripped of debug information (for example, in here), which prevents them from fully being debugged or profiled as memory addresses can't be resolve to their function names and line numbers.
Background
This results in a subpar experience not only for engineers debugging these problems tend to have to re-compile these projects to have the necessary debug information but also for maintainers, as the artifacts users might get might not be exactly the same as the ones that are released.
Proposal
Before stripping executables, it would be ideal to extract the debug information and add them to the release. On Linux, this can be done by copying the relevant debug info with
objcopy
before runningstrip
. This answer in Stack Overflow is quite comprehensive. I am not familiar with MacOS executables but I believe this is also possible in that platform.Beta Was this translation helpful? Give feedback.
All reactions