summary refs log tree commit diff
path: root/src/test/debug-info
AgeCommit message (Collapse)AuthorLines
2014-03-27Initial support for emitting DWARF for static vars.gentlefolk-70/+601
Only supports crate level statics. No debug info is generated for function level statics. Closes #9227.
2014-03-22Remove outdated and unnecessary std::vec_ng::Vec imports.Huon Wilson-39/+5
(And fix some tests.)
2014-03-21test: Automatically remove all `~[T]` from tests.Patrick Walton-3/+3
2014-03-14debuginfo: Make limited-debuginfo test case more robust against GDB output ↵Michael Woerister-4/+4
variations. Fixes issue #12787.
2014-03-13std: Rename Chan/Port types and constructorAlex Crichton-1/+1
* Chan<T> => Sender<T> * Port<T> => Receiver<T> * Chan::new() => channel() * constructor returns (Sender, Receiver) instead of (Receiver, Sender) * local variables named `port` renamed to `rx` * local variables named `chan` renamed to `tx` Closes #11765
2014-03-12auto merge of #12816 : michaelwoerister/rust/limited-debuginfo, r=alexcrichtonbors-3/+3
Fixes #12811 as described in the issue.
2014-03-11test: Relax a debuginfo testAlex Crichton-5/+5
This test is blocking a snapshot. Apparently the snapshot bot doesn't print 'limited-debuginfo::main()' but rather just 'main()'. Who knew?
2014-03-11debuginfo: Improve commandline option handling for debuginfo (fixes #12811)Michael Woerister-3/+3
The `-g` flag does not take an argument anymore while the argument to `--debuginfo` becomes mandatory. This change makes it possible again to run the compiler like this: `rustc -g ./file.rs` This did not work before because `./file.rs` was misinterpreted as the argument to `-g`. In order to get limited debuginfo, one now has to use `--debuginfo=1`.
2014-03-06debuginfo: Add test case for limited debuginfoMichael Woerister-0/+52
2014-03-06debuginfo: Expose limited debuginfo in command line optionsMichael Woerister-2/+2
2014-02-19debuginfo: Re-enable test case that should have worked all along.Michael Woerister-1/+0
2014-02-19debuginfo: Move test case from run-pass to debug-info directory so it does ↵Michael Woerister-0/+25
not interfere with RUSTFLAGS=-g
2014-02-19debuginfo: Add support for simd typesMichael Woerister-0/+70
2014-02-11Change `xfail` directives in compiletests to `ignore`, closes #11363Florian Hahn-181/+181
2014-02-10Consolidate codegen-related compiler flagsAlex Crichton-84/+84
Move them all behind a new -C switch. This migrates some -Z flags and some top-level flags behind this -C codegen option. The -C flag takes values of the form "-C name=value" where the "=value" is optional for some flags. Flags affected: * --llvm-args => -C llvm-args * --passes => -C passes * --ar => -C ar * --linker => -C linker * --link-args => -C link-args * --target-cpu => -C target-cpu * --target-feature => -C target-fature * --android-cross-path => -C android-cross-path * --save-temps => -C save-temps * --no-rpath => -C no-rpath * -Z no-prepopulate => -C no-prepopulate-passes * -Z no-vectorize-loops => -C no-vectorize-loops * -Z no-vectorize-slp => -C no-vectorize-slp * -Z soft-float => -C soft-float * -Z gen-crate-map => -C gen-crate-map * -Z prefer-dynamic => -C prefer-dynamic * -Z no-integrated-as => -C no-integrated-as As a bonus, this also promotes the -Z extra-debug-info flag to a first class -g or --debuginfo flag. * -Z debug-info => removed * -Z extra-debug-info => -g or --debuginfo Closes #9770 Closes #12000
2014-02-07add a hack to fix debug-info tests under gdb 7.7Daniel Micay-1/+1
2014-02-07Added tests to make tidyDerek Guenther-43/+61
2014-02-07Removed @self and @Trait.Eduard Burtescu-339/+0
2014-02-03xfail a test to unblock the snapshotAlex Crichton-0/+1
cc #12021
2014-02-02Update/delete tests using @[].Huon Wilson-8/+2
2014-01-29auto merge of #11879 : thestinger/rust/frame-pointer, r=alexcrichtonbors-3/+0
This is still used for Rust code (`Options.NoFramePointerElim = true`).
2014-01-29enable fp-elim when debug info is disabledDaniel Micay-3/+0
This can almost be fully disabled, as it no longer breaks retrieving a backtrace on OS X as verified by @alexcrichton. However, it still breaks retrieving the values of parameters. This should be fixable in the future via a proper location list... Closes #7477
2014-01-27debuginfo: Fix name attribute for DWARF compile unitsMichael Woerister-0/+27
2014-01-17Link lifetimes in `let` patterns just as we do for `match` patternsNiko Matsakis-3/+3
2014-01-14remove reference counting headers from ~Daniel Micay-18/+12
Unique pointers and vectors currently contain a reference counting header when containing a managed pointer. This `{ ref_count, type_desc, prev, next }` header is not necessary and not a sensible foundation for tracing. It adds needless complexity to library code and is responsible for breakage in places where the branch has been left out. The `borrow_offset` field can now be removed from `TyDesc` along with the associated handling in the compiler. Closes #9510 Closes #11533
2014-01-13librustc: Remove `@` pointer patterns from the languagePatrick Walton-7/+4
2014-01-11Remove re-exports of std::io::stdio::{print, println} in the prelude.Brendan Zabarauskas-2/+2
The `print!` and `println!` macros are now the preferred method of printing, and so there is no reason to export the `stdio` functions in the prelude. The functions have also been replaced by their macro counterparts in the tutorial and other documentation so that newcomers don't get confused about what they should be using.
2014-01-08auto merge of #11401 : michaelwoerister/rust/issue11322, r=alexcrichtonbors-0/+40
`expand_include_str()` in libsyntax seems to have corrupted the CodeMap by always setting the BytePos of any included files to zero. It now uses `CodeMap::new_filemap()` which should set everything properly. This should fix issue #11322 but I don't want to close it before I have confirmation from the reporters that the problem is indeed fixed.
2014-01-08Fix CodeMap issue in expand_include_str()Michael Woerister-0/+40
2014-01-07'borrowed pointer' -> 'reference'Brian Anderson-2/+2
2014-01-02debuginfo: Add test case for recursive enum types (issue #11083)Michael Woerister-0/+33
2013-12-17debuginfo: Updated test cases to also test by-value self arguments.Michael Woerister-193/+192
2013-12-16debuginfo: Add test cases for function prologue handling.Michael Woerister-0/+493
2013-12-16debuginfo: Set the is_local_to_unit attribute of functions correctlyMichael Woerister-2/+1
2013-12-14auto merge of #10932 : alexcrichton/rust/feature-update, r=cmrbors-1/+22
2013-12-14Handle more cases in the heap lintsAlex Crichton-1/+22
2013-12-13Ignore failing Android debug-info tests. #10381Brian Anderson-0/+32
2013-12-11Make 'self lifetime illegal.Erik Price-8/+8
Also remove all instances of 'self within the codebase. This fixes #10889.
2013-11-28Register new snapshotsAlex Crichton-5/+5
2013-11-26librustc: Fix merge fallout.Patrick Walton-2/+2
2013-11-26test: Remove most uses of `&fn()` from the tests.Patrick Walton-1/+1
2013-11-18librustc: Convert `~fn()` to `proc()` everywhere.Patrick Walton-2/+2
2013-11-14test: Add xfail-win32 to two debug-info testsklutzy-0/+2
2013-11-10tagging issue number(#10381)Young-il Choi-60/+62
2013-11-06Add make check support(arm-linux-androideabi debuginfo)sh8281.kim-0/+116
2013-11-04Relax the constraints on a debuginfo testAlex Crichton-1/+1
The snapshot just failed due to a debuginfo test failing, and according to its output at http://buildbot.rust-lang.org/builders/snap3-linux/builds/564/steps/test/logs/stdio it appears to be because the printed lines has a little less information than the original lines were checking for. I would suspect that this is just because of a slightly different version of gdb, but it's not that serious regardless.
2013-11-02Updated debugging metadata for ty_nil and ty_botMichael Letterle-0/+73
ty_nil will now report as "()" in gdb ty_bot will now report as "!" in gdb Added test to confirm basic types debugging metadata. This fixes #9226
2013-10-29Unbreak the debuginfo tests.Jed Davis-8/+8
The variant used in debug-info/method-on-enum.rs had its layout changed by the smaller discriminant, so that the `u32` no longer overlaps both of the `u16`s, and thus the debugger is printing partially uninitialized data when it prints the wrong variant. Thus, the test runner is modified to accept wildcards (using a string that should be unlikely to occur literally), to allow for this.
2013-10-23register snapshotsDaniel Micay-0/+18
2013-10-15use element count in slices, not size in bytesDaniel Micay-11/+11
This allows the indexing bounds check or other comparisons against an element length to avoid a multiplication by the size.