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

CARGO_INCREMENTAL breaks debuginfo #3905

Closed
sophiajt opened this issue Apr 7, 2017 · 7 comments
Closed

CARGO_INCREMENTAL breaks debuginfo #3905

sophiajt opened this issue Apr 7, 2017 · 7 comments

Comments

@sophiajt
Copy link

sophiajt commented Apr 7, 2017

In the same project, if I compile with CARGO_INCREMENTAL=1 and run the application through lldb, I get:

$ lldb target/debug/hello
(lldb) target create "target/debug/hello"
Current executable set to 'target/debug/hello' (x86_64).
(lldb) b main
Breakpoint 1: where = hello`main, address = 0x00000001000141d0

Same project without:

$ lldb target/debug/hello
(lldb) target create "target/debug/hello"
Current executable set to 'target/debug/hello' (x86_64).
(lldb) b main
Breakpoint 1: 2 locations.

The latter, I believe, is what we want as it's what you'd get by hand when using rustc. With incremental turned on, we can't easily step into the original source. Instead, we end up stepping through the assembly.

@sophiajt
Copy link
Author

sophiajt commented Apr 7, 2017

cc @michaelwoerister and @nikomatsakis

@michaelwoerister
Copy link
Member

Is this on OSX? If so this might be the same problem as rust-lang/rust#39160.

@sophiajt
Copy link
Author

sophiajt commented Apr 7, 2017 via email

@nikomatsakis
Copy link
Contributor

@jonathandturner care to try and narrow it down by building w/o incremental, but w/ codegen-units?

@nikomatsakis
Copy link
Contributor

eg, by setting RUSTFLAGS="-Zcodegen-units=256" or something; I guess it' snot clear what setting would do it, but something big is likely to work :)

@sophiajt
Copy link
Author

@nikomatsakis - yes, I can confirm the -Ccodegen-units=256 causes the same issue.

@sophiajt
Copy link
Author

Closing as a dupe of rust-lang/rust#39160

(plz fix kthx 😄)

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

No branches or pull requests

3 participants