Skip to content

debuginfo: Some refactoring and fix for #8670 #8684

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

Conversation

michaelwoerister
Copy link
Member

This PR contains some code cleanup and the fix for issue #8670.
I am not sure about issue #8442 (could not reproduce it). @jdm, could check after this is merged and possibly close the issue then? (closed now)

Some interesting facts: With this commit, it should be possible to compile libstd with -Zdebug-info (it does not work yet with -Zextra-debug-info but we are getting there). Switching debug info on increases the compile time for libstd by about 2 seconds.

@catamorphism I get one failing test in rustpkg:
package_script_with_default_build says: task <unnamed> failed at 'Couldn't copy file', /home/mw/rust/src/librustpkg/tests.rs:689
Would you have any idea what that is about? Seems be something wrong on my machine...

Cheers,
Michael

Fixes #8670

@andrew-d
Copy link
Contributor

FWIW, I get the tests::package_script_with_default_build failure here too. OS X 10.7.5:

task <unnamed> failed at 'Couldn't copy file', /Users/andrew/Documents/repos/rust/src/librustpkg/tests.rs:688
~"~\"built_executable_in_workspace: /tmp/EFd8E5dx6OwTiUzLrustpkg_clean_no_arg/build/foo/foo does not exist\""

@@ -243,7 +235,7 @@ pub fn create_argument_metadata(bcx: @mut Block,

let def_map = cx.tcx.def_map;
let file_metadata = file_metadata(cx, filename);
let scope = create_function_metadata(fcx);
let scope = bcx.fcx.debug_context.get_ref().fn_metadata;//create_function_metadata(fcx);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the commented out code.

bors added a commit that referenced this pull request Aug 23, 2013
… r=jdm

This PR contains some code cleanup and the fix for issue #8670.
~~I am not sure about issue #8442 (could not reproduce it). @jdm, could check after this is merged and possibly close the issue then?~~ (closed now)

Some interesting facts: With this commit, it should be possible to compile libstd with `-Zdebug-info` (it does not work yet with `-Zextra-debug-info` but we are getting there). Switching debug info on increases the compile time for libstd by about 2 seconds.

@catamorphism I get one failing test in rustpkg:
`package_script_with_default_build` says: `task <unnamed> failed at 'Couldn't copy file', /home/mw/rust/src/librustpkg/tests.rs:689`
Would you have any idea what that is about? Seems be something wrong on my machine...

Cheers,
Michael

Fixes #8670
@bors bors closed this Aug 23, 2013
@michaelwoerister michaelwoerister deleted the stepping_and_scope_fixes branch July 9, 2014 07:51
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.

ICE "Could not find scope info for node" building Servo with -Z debug-info
4 participants