Skip to content
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 support for split debuginfo files #17962

Merged
merged 2 commits into from
Aug 17, 2016
Merged

add support for split debuginfo files #17962

merged 2 commits into from
Aug 17, 2016

Conversation

vtjnash
Copy link
Member

@vtjnash vtjnash commented Aug 11, 2016

There seem to be a few variations on the tools and arguments
available for creating split debuginfo files.
I used the following:

objcopy --only-keep-debug libjulia.so libjulia.so.debug
strip -g libjulia.so
objcopy --add-gnu-debuglink=libjulia.so.debug libjulia.so

fix #17854

@tkelman
Copy link
Contributor

tkelman commented Aug 11, 2016

can we test this? via libccalltest maybe?

@yuyichao
Copy link
Contributor

Ref https://www.sourceware.org/gdb/onlinedocs/gdb/Separate-Debug-Files.html, which specifies the gdb search order (which is hopefully the order distros follows) as well as the build-id method. I'm not sure what each distros uses (Arch use /usr/lib/debug as the global debug info directory and provide files for both methods). We probably need to implement those to fully support distro packages after this PR is merged.

@Keno
Copy link
Member

Keno commented Aug 11, 2016

Yes, /usr/lib/debug is the standard path across distros.

@vtjnash vtjnash force-pushed the jn/split-debug branch 3 times, most recently from 61375d3 to 74a151e Compare August 12, 2016 20:33
@vtjnash
Copy link
Member Author

vtjnash commented Aug 12, 2016

ok, added support for all of the path options for debug-link. I didn't add support for build-id yet, but that'll be easy enough when we need it.

@tkelman tkelman added the needs tests Unit tests are required for this change label Aug 13, 2016
@vtjnash vtjnash removed the needs tests Unit tests are required for this change label Aug 15, 2016
There seem to be a few variations on the tools and arguments
available for creating split debuginfo files.
I used the following:

objcopy --only-keep-debug libjulia.so libjulia.so.debug
strip -g libjulia.so
objcopy --add-gnu-debuglink=libjulia.so.debug libjulia.so
@vtjnash vtjnash force-pushed the jn/split-debug branch 2 times, most recently from 0dbb1d1 to fdef049 Compare August 15, 2016 23:22
@vtjnash vtjnash merged commit cbed9af into master Aug 17, 2016
@vtjnash vtjnash deleted the jn/split-debug branch August 17, 2016 18:49
tkelman pushed a commit that referenced this pull request Aug 20, 2016
There seem to be a few variations on the tools and arguments
available for creating split debuginfo files.
I used the following:

objcopy --only-keep-debug libjulia.so libjulia.so.debug
strip -g libjulia.so
objcopy --add-gnu-debuglink=libjulia.so.debug libjulia.so

(cherry picked from commit b67fd06)
ref #17962
tkelman pushed a commit that referenced this pull request Aug 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support split debug info on linux
4 participants