rust/src/test/debuginfo
Pietro Albini ed6c7b751d
Rollup merge of #56144 - tromey:Bug-55771-btreemap, r=alexcrichton
Fix BTreeSet and BTreeMap gdb pretty-printers

The BTreeSet and BTreeMap gdb pretty-printers did not take the node
structure into account, and consequently only worked for shallow sets.
This fixes the problem by iterating over child nodes when needed.

This patch avoids the current approach of implementing some of the
value manipulations in debugger-indepdendent code.  This was done for
convenience: a type lookup was needed for the first time, and there
currently are no lldb formatters for these types.

Closes #55771
2018-11-25 17:05:04 +01:00
..
auxiliary Fix debug line info for macro expansions. 2016-08-25 00:40:42 -07:00
associated-types.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
basic-types-globals-metadata.rs Disable failing tests temporarily 2018-01-05 10:47:34 +00:00
basic-types-globals.rs Disable failing tests temporarily 2018-01-05 10:47:34 +00:00
basic-types-metadata.rs Disable failing tests temporarily 2018-01-05 10:47:34 +00:00
basic-types-mut-globals.rs Disable failing tests temporarily 2018-01-05 10:47:34 +00:00
basic-types.rs Update enum debuginfo tests 2018-10-30 12:09:04 -06:00
borrowed-basic.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
borrowed-c-style-enum.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
borrowed-enum-legacy.rs Add legacy debuginfo tests 2018-10-30 12:09:11 -06:00
borrowed-enum.rs Update enum debuginfo tests 2018-10-30 12:09:04 -06:00
borrowed-struct.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
borrowed-tuple.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
borrowed-unique-basic.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
box.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
boxed-struct.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
by-value-non-immediate-argument.rs Disable failing tests temporarily 2018-01-05 10:47:34 +00:00
by-value-self-argument-in-trait-impl.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
c-style-enum-in-composite.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
c-style-enum.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
closure-in-generic-function.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
constant-debug-locs.rs Fix test/debuginfo 2018-08-05 15:54:49 +01:00
constant-in-match-pattern.rs fallout in existing tests 2016-03-25 06:45:42 -04:00
cross-crate-spans.rs Update enum debuginfo tests 2018-10-30 12:09:04 -06:00
cross-crate-type-uniquing.rs Enable test/debuginfo on android 2015-02-10 15:48:07 +09:00
destructured-fn-argument.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
destructured-for-loop-variable.rs Update enum debuginfo tests 2018-10-30 12:09:04 -06:00
destructured-local.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
drop-locations.rs Disable failing tests temporarily 2018-01-05 10:47:34 +00:00
evec-in-struct.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
extern-c-fn.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
function-arg-initialization.rs Disable failing tests temporarily 2018-01-05 10:47:34 +00:00
function-arguments.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
function-prologue-stepping-regular.rs Disable failing tests temporarily 2018-01-05 10:47:34 +00:00
gdb-pretty-struct-and-enums.rs Disable some pretty-printers when gdb is rust-enabled 2018-11-19 08:08:46 -07:00
generic-enum-with-different-disr-sizes-legacy.rs Add legacy debuginfo tests 2018-10-30 12:09:11 -06:00
generic-enum-with-different-disr-sizes.rs Update enum debuginfo tests 2018-10-30 12:09:04 -06:00
generic-function.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
generic-functions-nested.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
generic-method-on-generic-struct.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
generic-static-method-on-struct-and-enum.rs Feature-gate #[no_debug] and #[omit_gdb_pretty_printer_section] 2015-09-19 19:39:25 -04:00
generic-struct-style-enum-legacy.rs Add legacy debuginfo tests 2018-10-30 12:09:11 -06:00
generic-struct-style-enum.rs Update enum debuginfo tests 2018-10-30 12:09:04 -06:00
generic-struct.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
generic-tuple-style-enum-legacy.rs Add legacy debuginfo tests 2018-10-30 12:09:11 -06:00
generic-tuple-style-enum.rs Update enum debuginfo tests 2018-10-30 12:09:04 -06:00
include_string.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
issue-7712.rs prefer hyphens in test files named after issue numbers 2016-12-19 11:53:32 -08:00
issue-12886.rs prefer hyphens in test files named after issue numbers 2016-12-19 11:53:32 -08:00
issue-13213.rs prefer hyphens in test files named after issue numbers 2016-12-19 11:53:32 -08:00
issue-14411.rs prefer hyphens in test files named after issue numbers 2016-12-19 11:53:32 -08:00
issue-22656.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
lexical-scope-in-for-loop.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
lexical-scope-in-if.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
lexical-scope-in-match.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
lexical-scope-in-parameterless-closure.rs Strip all leading/trailing newlines 2015-03-15 09:08:21 -07:00
lexical-scope-in-stack-closure.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
lexical-scope-in-unconditional-loop.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
lexical-scope-in-unique-closure.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
lexical-scope-in-while.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
lexical-scope-with-macro.rs Run both lldb and gdb tests 2018-10-10 08:27:01 -06:00
lexical-scopes-in-block-expression.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
limited-debuginfo.rs Disable failing tests temporarily 2018-01-05 10:47:34 +00:00
macro-stepping.inc Exclude top-level macro expansions from source location override. 2017-02-08 22:10:33 -08:00
macro-stepping.rs Disable failing tests temporarily 2018-01-05 10:47:34 +00:00
method-on-enum.rs Disable failing tests temporarily 2018-01-05 10:47:34 +00:00
method-on-generic-struct.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
method-on-struct.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
method-on-trait.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
method-on-tuple-struct.rs Update enum debuginfo tests 2018-10-30 12:09:04 -06:00
multi-byte-chars.rs Enable test/debuginfo on android 2015-02-10 15:48:07 +09:00
multi-cgu.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
multiple-functions-equal-var-names.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
multiple-functions.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
name-shadowing-and-scope-nesting.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
nil-enum.rs Update enum debuginfo tests 2018-10-30 12:09:04 -06:00
no-debug-attribute.rs test: don't depend on locals being in scope on the return path. 2016-04-16 14:08:32 +03:00
option-like-enum.rs Disable failing tests temporarily 2018-01-05 10:47:34 +00:00
packed-struct-with-destructor.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
packed-struct.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
pretty-huge-vec.rs Use lazy iterator in vec/slice gdb pretty printers 2016-07-04 20:22:10 +02:00
pretty-std-collections.rs Rollup merge of #56144 - tromey:Bug-55771-btreemap, r=alexcrichton 2018-11-25 17:05:04 +01:00
pretty-std.rs Disable failing tests temporarily 2018-01-05 10:47:34 +00:00
pretty-uninitialized-vec.rs Use lazy iterator in vec/slice gdb pretty printers 2016-07-04 20:22:10 +02:00
recursive-enum.rs Feature-gate #[no_debug] and #[omit_gdb_pretty_printer_section] 2015-09-19 19:39:25 -04:00
recursive-struct-legacy.rs Add legacy debuginfo tests 2018-10-30 12:09:11 -06:00
recursive-struct.rs Update enum debuginfo tests 2018-10-30 12:09:04 -06:00
self-in-default-method.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
self-in-generic-default-method.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
shadowed-argument.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
shadowed-variable.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
should-fail.rs Restore working debuginfo tests by trimming comments from non-header directive lines 2018-01-03 15:03:00 +00:00
simd.rs adapt debuginfo tests for gdb with native rust support 2016-10-31 21:12:59 +01:00
simple-lexical-scope.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
simple-struct.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
simple-tuple.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
static-method-on-struct-and-enum.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
struct-in-enum.rs Disable failing tests temporarily 2018-01-05 10:47:34 +00:00
struct-in-struct.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
struct-namespace.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
struct-style-enum-legacy.rs Add legacy debuginfo tests 2018-10-30 12:09:11 -06:00
struct-style-enum.rs Update enum debuginfo tests 2018-10-30 12:09:04 -06:00
struct-with-destructor.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
text-to-include-1.txt Re-bork whitespace for text file (fixup #23385) 2015-03-17 16:00:39 +05:30
text-to-include-2.txt Re-bork whitespace for text file (fixup #23385) 2015-03-17 16:00:39 +05:30
text-to-include-3.txt Re-bork whitespace for text file (fixup #23385) 2015-03-17 16:00:39 +05:30
trait-pointers.rs Feature-gate #[no_debug] and #[omit_gdb_pretty_printer_section] 2015-09-19 19:39:25 -04:00
tuple-in-struct.rs adapt debuginfo tests for gdb with native rust support 2016-10-31 21:12:59 +01:00
tuple-in-tuple.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
tuple-struct.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
tuple-style-enum-legacy.rs Add legacy debuginfo tests 2018-10-30 12:09:11 -06:00
tuple-style-enum.rs Update enum debuginfo tests 2018-10-30 12:09:04 -06:00
type-names.rs Remove workarounds for #24958 2018-07-18 13:58:08 +02:00
union-smoke.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
unique-enum-legacy.rs Add legacy debuginfo tests 2018-10-30 12:09:11 -06:00
unique-enum.rs Update enum debuginfo tests 2018-10-30 12:09:04 -06:00
unreachable-locals.rs Feature-gate #[no_debug] and #[omit_gdb_pretty_printer_section] 2015-09-19 19:39:25 -04:00
unsized.rs Fix debuginfo for unsized struct members 2016-12-22 21:16:41 +10:00
var-captured-in-nested-closure.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
var-captured-in-sendable-closure.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
var-captured-in-stack-closure.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00
vec-slices.rs Update lldb 2018-11-06 11:46:25 -07:00
vec.rs Run debuginfo tests against rust-enabled lldb, when possible 2018-10-08 11:04:24 -06:00