about summary refs log tree commit diff
path: root/src/test/debuginfo
AgeCommit message (Collapse)AuthorLines
2016-11-05Merge branch 'gdb-next-gen' of https://github.com/TimNN/rust into rollupAlex Crichton-494/+983
2016-10-31Changed most vec! invocations to use square bracesiirelu-1/+1
Most of the Rust community agrees that the vec! macro is clearer when called using square brackets [] instead of regular brackets (). Most of these ocurrences are from before macros allowed using different types of brackets. There is one left unchanged in a pretty-print test, as the pretty printer still wants it to have regular brackets.
2016-10-31adapt debuginfo tests for gdb with native rust supportTim Neumann-494/+983
2016-10-20Fix line stepping in debugger.Vadim Chugunov-0/+91
Attribute drop code to block's closing brace, instead of the line where the allocation was done. Attribute function epilogues to function body's closing brace, rather than the function header.
2016-09-09Add s390x supportUlrich Weigand-0/+5
This adds support for building the Rust compiler and standard library for s390x-linux, allowing a full cross-bootstrap sequence to complete. This includes: - Makefile/configure changes to allow native s390x builds - Full Rust compiler support for the s390x C ABI (only the non-vector ABI is supported at this point) - Port of the standard library to s390x - Update the liblibc submodule to a version including s390x support - Testsuite fixes to allow clean "make check" on s390x Caveats: - Resets base cpu to "z10" to bring support in sync with the default behaviour of other compilers on the platforms. (Usually, upstream supports all older processors; a distribution build may then chose to require a more recent base version.) (Also, using zEC12 causes failures in the valgrind tests since valgrind doesn't fully support this CPU yet.) - z13 vector ABI is not yet supported. To ensure compatible code generation, the -vector feature is passed to LLVM. Note that this means that even when compiling for z13, no vector instructions will be used. In the future, support for the vector ABI should be added (this will require common code support for different ABIs that need different data_layout strings on the same platform). - Two test cases are (temporarily) ignored on s390x to allow passing the test suite. The underlying issues still need to be fixed: * debuginfo/simd.rs fails because of incorrect debug information. This seems to be a LLVM bug (also seen with C code). * run-pass/union/union-basic.rs simply seems to be incorrect for all big-endian platforms. Signed-off-by: Ulrich Weigand <ulrich.weigand@de.ibm.com>
2016-09-03Fix type encoding/decoding for unionsVadim Petrochenkov-3/+3
Fix union debuginfo test on lldb
2016-09-03Fix rebase, fix some testsVadim Petrochenkov-8/+9
2016-09-03Generate debuginfo for unionsVadim Petrochenkov-0/+49
2016-08-25Fix debug line info for macro expansions. Vadim Chugunov-1/+124
Macro expansions produce code tagged with debug locations that are completely different from the surrounding expressions. This wrecks havoc on debugger's ability the step over source lines. In order to have a good line stepping behavior in debugger, we overwrite debug locations of macro expansions with that of the outermost expansion site.
2016-08-14[MIR] Add Storage{Live,Dead} statements to emit llvm.lifetime.{start,end}.Eduard Burtescu-2/+2
2016-07-31Don't gate methods `Fn(Mut,Once)::call(mut,once)` with feature ↵Vadim Petrochenkov-2/+2
`unboxed_closures` They are already gated with feature `fn_traits`
2016-07-25Remove no_stack_check tests (#34915)abhi-369/+0
Part of fixes for #34915
2016-07-17test: disable more stdcall tests for ARM arches. temp workaround for #24958Ximin Luo-0/+2
2016-07-12std: Clean out deprecated APIsAlex Crichton-2/+0
This primarily removes a lot of `sync::Static*` APIs and rejiggers the associated implementations. While doing this it was discovered that the `is_poisoned` method can actually result in a data race for the Mutex/RwLock primitives, so the inner `Cell<bool>` was changed to an `AtomicBool` to prevent the associated data race. Otherwise the usage/gurantees should be the same they were before.
2016-07-04Auto merge of #34639 - dzamlo:master, r=michaelwoeristerbors-0/+77
Use lazy iterator in vec/slice gdb pretty printers
2016-07-04Use lazy iterator in vec/slice gdb pretty printersLoïc Damien-0/+77
2016-07-04Added a pretty printer for &mut slicesNikhil Shagrithaya-0/+7
2016-06-13Auto merge of #33749 - jseyfried:fix_call_site_span, r=nrcbors-3/+5
Fix macro call site spans Fix macro call site spans. r? @nrc
2016-06-13Replace `println!("");` invocations with calls to a dummy function in ↵Jeffrey Seyfried-3/+5
debuginfo test
2016-06-07mir: distinguish between variable visibility scopes and SEME scopes.Eduard Burtescu-12/+1
2016-05-06s/aux/auxiliary, because windowsNiko Matsakis-0/+0
For legacy reasons (presumably), Windows does not permit files name aux.
2016-05-06move auxiliary builds to a test-relative `aux`Niko Matsakis-0/+84
Instead of finding aux-build files in `auxiliary`, we now search for an `aux` directory relative to the test. So if your test is `compile-fail/foo.rs`, we would look in `compile-fail/aux`. Similarly, we ignore the `aux` directory when searching for tets.
2016-05-01debuginfo: Fix regression in namespace handling for struct types.Michael Woerister-0/+70
2016-04-16mir: place match pattern bindings in their respective arms.Eduard Burtescu-2/+1
2016-04-16debuginfo: argument and upvar names for MIR.Eduard Burtescu-35/+20
2016-04-16test: don't depend on locals being in scope on the return path.Eduard Burtescu-4/+6
2016-04-11tests: update for MIR debuginfo.Eduard Burtescu-13/+42
2016-03-25fallout in existing testsNiko Matsakis-0/+3
2016-01-31Rename sunos to solarisNikita Baksalyar-1/+1
2016-01-31Add Illumos supportNikita Baksalyar-0/+1
2015-12-18Fix the falloutVadim Petrochenkov-1/+1
2015-12-10std: Remove deprecated functionality from 1.5Alex Crichton-2/+21
This is a standard "clean out libstd" commit which removes all 1.5-and-before deprecated functionality as it's now all been deprecated for at least one entire cycle.
2015-09-24Remove the deprecated box(PLACE) syntax.Eduard Burtescu-4/+4
2015-09-19Feature-gate `#[no_debug]` and `#[omit_gdb_pretty_printer_section]`Andrew Paseltiner-3/+97
Closes #28091.
2015-08-05Revert "debuginfo: Bring back some GDB pretty printing autotests that are ↵Alex Crichton-188/+0
not actually broken." This reverts commit 354cf4b56b8e2af67cc68965eb816deec0e79e4b.
2015-08-03debuginfo: Bring back some GDB pretty printing autotests that are not ↵Michael Woerister-0/+188
actually broken.
2015-07-28Fix de-deduplication for closure debuginfoBjörn Steinbrink-0/+18
Closure variables represent the closure environment, not the closure function, so the identifier used to ensure that the debuginfo is unique for each kind of closure needs to be based on the closure upvars and not the function signature.
2015-07-20Create proper debuginfo for closure variablesBjörn Steinbrink-1/+1
Variables for closures hold a tuple of captured variables, and not the function itself. Fixes #26484
2015-07-18Generate proper debug info for function pointersBjörn Steinbrink-0/+3
Instead of generating pointer debug info, we're currently generating subroutine debug info.
2015-07-18Properly create debug info for functionsBjörn Steinbrink-1/+1
We're currently using the actual function type as the return type when creating the debug info for a function, so we're actually creating debug info for a function that takes the same parameters, and returns the actual function type, which is completely wrong.
2015-07-17Auto merge of #27076 - alexcrichton:update-llvm, r=brsonbors-0/+92
LLVM has recently created their 3.7 release branch, and this PR updates us to that point. This should hopefully mean that we're basically compatible with the upcoming 3.7 release. Additionally, there are a number of goodies on this branch. * This contains a fix for https://llvm.org/bugs/show_bug.cgi?id=23957 which should help us bootstrap farther on 32-bit MSVC targets. * There is better support for writing multiple flavors of archives, allowing us to use the built-in LLVM support instead of the system `ar` on all current platforms of the compiler. * This LLVM has SafeStack support * An [optimization patch](https://github.com/rust-lang/llvm/commit/7cf5e26e18f7d2d8db09c83c76dd727535f281ab) by @pcwalton is included. * A number of other minor test fixes here and there. Due to problems dealing with the data layout we pass to LLVM, this PR also takes the time to clean up how we specific this. We no longer specify a data layout to LLVM by default and instead take the default for the target from LLVM to pass to the module that we're building. This should be more robust going into the future, and I'm also not sure we know what any of these arcane strings are any more...
2015-07-17test: Ignore a failing test on LLDBAlex Crichton-0/+1
Re-enabling it is tracked in #27089
2015-07-16debuginfo: Fix type description generic enum discriminants.Michael Woerister-0/+91
2015-07-15Remove reference to gdb-pretty-struct-and-enums.rsTamir Duberstein-4/+0
It was removed in bba934f19ab26d5afc4f0be923ea699010883906. Fixes #27059.
2015-06-17Fallout in tests and docs from feature renamingsAlex Crichton-2/+2
2015-06-12ignore-test cleanupSteve Klabnik-342/+0
Most of these are old, but some specific messages for specific tests: * trait-contravariant-self.rs: failed due to a soundess hole: https://github.com/rust-lang/rust/commit/05e3248a7974f55b64f75a2483b37ff8c001a4ff * process-detatch: https://github.com/rust-lang/rust/commit/15966c3c1f99810ac81053769651776a67181dae says "this test is being ignored until signals are implemented" That's not happening for a long time, and when it is, we'll write tests for it. * deep-vector{,2}.rs: "too big for our poor macro infrastructure", and has been ignored over a year. * borrowck-nested-calls.rs's FIXME #6268 was closed in favor of rust-lang/rfcs#811 * issue-15167.rs works properly now * issue-9737.rs works properly now * match-var-hygiene.rs works properly now Addresses a chunk of #3965
2015-06-07test: Ignore gdb-pretty-struct-and-enums.rsBrian Anderson-0/+1
Broken on nightly linux distcheck.
2015-05-30debuginfo: Create common debugger pretty printer module.Michael Woerister-2/+28
GDB and LLDB pretty printers have some common functionality and also access some common information, such as the layout of standard library types. So far, this information has been duplicated in the two pretty printing python modules. This commit introduces a common module used by both debuggers.
2015-05-29add const_fn featuresNiko Matsakis-0/+1
2015-05-27Use `const fn` to abstract away the contents of UnsafeCell & friends.Eduard Burtescu-3/+3