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

Make cargo aware of dwp files. #11572

Merged
merged 2 commits into from
Jan 30, 2023
Merged

Make cargo aware of dwp files. #11572

merged 2 commits into from
Jan 30, 2023

Commits on Jan 15, 2023

  1. Make cargo aware of dwp files.

    When using -Csplit-debuginfo=packed on Linux, rustc will produce a dwp file.
    Unlike the dwo files, whose paths are embedded into the binary, there's no
    information in the binary to help a debugger locate a dwp file. By convention,
    the dwp file for <EXE> is given the name <EXE>.dwp and placed next to <EXE>.
    
    When cargo hardlinks the executable file rustc put in target/debug/deps into
    target/debug, it also needs to hardlink the dwp file along with it. Failing to
    do this prevents the debugger from finding the dwp file when the binary is
    executed from target/debug, as there's no way for the debugger to know to look
    in the deps subdirectory.
    khuey committed Jan 15, 2023
    Configuration menu
    Copy the full SHA
    847dc6e View commit details
    Browse the repository at this point in the history
  2. address review comments

    khuey committed Jan 15, 2023
    Configuration menu
    Copy the full SHA
    a393267 View commit details
    Browse the repository at this point in the history