Skip to content

Basic debugging information support - #1331

Merged
marijnh merged 21 commits into
rust-lang:masterfrom
jdm:dwarf
Dec 19, 2011
Merged

Basic debugging information support#1331
marijnh merged 21 commits into
rust-lang:masterfrom
jdm:dwarf

Conversation

@jdm

@jdm jdm commented Dec 19, 2011

Copy link
Copy Markdown
Contributor

nmatsakis expressed interest in integrating even basic debugging support, and that's what this provides. The -g flag will produce source line correspondence output, allowing for stepping and breakpoints inside gdb. There's also an --xg (extra debugging) flag behind which the rest of the debugging support lies unfinished (ie. can't build rustc completely yet, but works on toy programs).

Some stats:

godot:build jdm$ time x86_64-apple-darwin/stage2/bin/rustc --target=x86_64-apple-darwin  -o x86_64-apple-darwin/stage2/lib/rustc/x86_64-apple-darwin/bin/rustc ../src/comp/rustc.rc
warning: no debug symbols in executable (-arch x86_64)

real    0m40.174s
user    0m39.633s
sys 0m0.708s

godot:build jdm$ time x86_64-apple-darwin/stage2/bin/rustc -g --target=x86_64-apple-darwin  -o x86_64-apple-darwin/stage2/lib/rustc/x86_64-apple-darwin/bin/rustc ../src/comp/rustc.rc

real    1m50.058s
user    1m49.456s
sys 0m1.125s

Requires the llvm patch that's sitting in brson's repository to allow rustc to finish building.

@marijnh

marijnh commented Dec 19, 2011

Copy link
Copy Markdown
Contributor

Please run make check at least to get rid of overlong lines and trailing whitespace.

@jdm

jdm commented Dec 19, 2011

Copy link
Copy Markdown
Contributor Author

The extra llvm patch is no longer required as of 6637340.

@marijnh
marijnh merged commit 6637340 into rust-lang:master Dec 19, 2011
@marijnh

marijnh commented Dec 19, 2011

Copy link
Copy Markdown
Contributor

Passes now. Merged.

@nikomatsakis

Copy link
Copy Markdown
Contributor

I was just going to pull this, but I see Marijn beat me to it. Can't wait to try it out!

@kud1ing kud1ing mentioned this pull request Dec 20, 2011
celinval pushed a commit to celinval/rust-dev that referenced this pull request Jun 4, 2024
* Resolved link formatting issue.

* Fixed escaping of brackets.

* Fixed intra dock links.

* Fixed broken link to rustc_middle::ty::layout::LayoutCx.

* More hyperlink formatting warning fixed.

* Fixed typo in struct. Mismatched curly braces.

* fixed links and brackets.

* Added gh action to build docs automatically.

* Added gh action to build docs automatically.

* Moved docs check to regressions script.
U007D pushed a commit to U007D/rust-mos that referenced this pull request Aug 21, 2026
1334: check for cancellation during macro expansion r=matklad a=matklad

closes rust-lang#1331

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
U007D pushed a commit to U007D/rust-mos that referenced this pull request Aug 21, 2026
…fJung

Implement `mach_timebase_info` for macOS

Since we return nanoseceonds instead of ticks from `mach_absolute_time`, we don't need to scale the absolute time

Fixes rust-lang#1288
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.

3 participants