about summary refs log tree commit diff
path: root/src/test/debug-info
AgeCommit message (Collapse)AuthorLines
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.
2013-10-06Add appropriate #[feature] directives to testsAlex Crichton-0/+17
2013-10-01remove the `float` typeDaniel Micay-45/+24
It is simply defined as `f64` across every platform right now. A use case hasn't been presented for a `float` type defined as the highest precision floating point type implemented in hardware on the platform. Performance-wise, using the smallest precision correct for the use case greatly saves on cache space and allows for fitting more numbers into SSE/AVX registers. If there was a use case, this could be implemented as simply a type alias or a struct thanks to `#[cfg(...)]`. Closes #6592 The mailing list thread, for reference: https://mail.mozilla.org/pipermail/rust-dev/2013-July/004632.html
2013-09-24auto merge of #9336 : alexcrichton/rust/issue-7981, r=catamorphismbors-4/+4
Progress on #7981 This doesn't completely close the issue because `struct A;` is still allowed, and it's a much larger change to disallow that. I'm also not entirely sure that we want to disallow that. Regardless, punting that discussion to the issue instead.
2013-09-24Stop accepting 'impl ...;', require {} insteadAlex Crichton-4/+4
Progress on #7981
2013-09-23test: Fix rustdoc and tests.Patrick Walton-133/+0
2013-09-19Replace unreachable() calls with unreachable!().Chris Morgan-4/+2
This is the second of two parts of #8991, now possible as a new snapshot has been made. (The first part implemented the unreachable!() macro; it was #8992, 6b7b8f2682.) ``std::util::unreachable()`` is removed summarily; any code which used it should now use the ``unreachable!()`` macro. Closes #9312. Closes #8991.
2013-09-16switch Drop to `&mut self`Daniel Micay-9/+9
2013-09-15debuginfo: Fix style nits for pull request.Michael Woerister-2/+0
2013-09-15debuginfo: Added description of algorithm for handling recursive types.Michael Woerister-6/+6
Also fixed nasty bug caused by calling LLVMDIBuilderCreateStructType() with a null pointer where an empty array was expected (which would trigger an unintelligable assertion somewhere down the line).
2013-09-15debuginfo: Added test cases for recursive structs.Michael Woerister-0/+315