-
-
Notifications
You must be signed in to change notification settings - Fork 31k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an option to include debug information in the Python executable and shared libraries in MacOS #95973
Labels
build
The build process and cross-build
Comments
An lldb trace without
and
(Also, inspecting variables, frames, and source works, which doesn't without debug information) |
pablogsal
added a commit
to pablogsal/cpython
that referenced
this issue
Aug 14, 2022
See also: conda-forge/python-feedstock#354 |
I like this. Personally I'd prefer to have this enabled at least for the installer builds as that makes developing C extensions using the installer on python.org more convenient. |
pablogsal
added a commit
to pablogsal/cpython
that referenced
this issue
Aug 15, 2022
…ation in MacOS Signed-off-by: Pablo Galindo <[email protected]>
pablogsal
added a commit
to pablogsal/cpython
that referenced
this issue
Aug 15, 2022
…ation in MacOS Signed-off-by: Pablo Galindo <[email protected]>
pablogsal
added a commit
to pablogsal/cpython
that referenced
this issue
Aug 15, 2022
…ation in MacOS Signed-off-by: Pablo Galindo <[email protected]>
pablogsal
added a commit
to pablogsal/cpython
that referenced
this issue
Aug 15, 2022
…ation in MacOS Signed-off-by: Pablo Galindo <[email protected]>
pablogsal
added a commit
to pablogsal/cpython
that referenced
this issue
Aug 15, 2022
…ation in MacOS Signed-off-by: Pablo Galindo <[email protected]>
pablogsal
added a commit
to pablogsal/cpython
that referenced
this issue
Aug 15, 2022
…ation in MacOS Signed-off-by: Pablo Galindo <[email protected]>
pablogsal
added a commit
to pablogsal/cpython
that referenced
this issue
Aug 27, 2022
…ation in MacOS Signed-off-by: Pablo Galindo <[email protected]>
miss-islington
pushed a commit
that referenced
this issue
Aug 27, 2022
…in macOS (GH-95974) Automerge-Triggered-By: GH:pablogsal
jevinskie
added a commit
to jevinskie/cpython
that referenced
this issue
Oct 15, 2023
…ation in MacOS Signed-off-by: Pablo Galindo <[email protected]> Ensure we install the dSYM files Handle --enable-shared Signed-off-by: Pablo Galindo <[email protected]> Handle macos framework builds MacOS -> macOS
jevinskie
added a commit
to jevinskie/cpython
that referenced
this issue
Nov 20, 2023
…ation in MacOS Signed-off-by: Pablo Galindo <[email protected]> Ensure we install the dSYM files Handle --enable-shared Signed-off-by: Pablo Galindo <[email protected]> Handle macos framework builds MacOS -> macOS Don't unset DSYMUTIL and DSYMUTIL_PATH in env vars in autoconf Signed-off-by: Jevin Sweval <[email protected]>
jevinskie
added a commit
to jevinskie/cpython
that referenced
this issue
Nov 20, 2023
…ation in MacOS Signed-off-by: Pablo Galindo <[email protected]> Ensure we install the dSYM files Handle --enable-shared Signed-off-by: Pablo Galindo <[email protected]> Handle macos framework builds MacOS -> macOS Don't unset DSYMUTIL and DSYMUTIL_PATH in env vars in autoconf Signed-off-by: Jevin Sweval <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Because MacOS likes to do things differently, the DWARF debugging information is not included by default in the final executables and shared libraries. Instead, MacOS has a separate linker
dsymutil
that can link this information in the final binary. Because by default nobody is doing this, all the python installations in MacOS have no debug information at all making debuggers like lldb almost useless.To solve this problem, add a new
--with-dsymutil
configure option that ensures that we package the debug information inside. In my M1 macos this makes the Python executable 0.2M bigger.We should maybe discuss if we want to activate this by default.
The text was updated successfully, but these errors were encountered: