about summary refs log tree commit diff
path: root/tests/debuginfo
AgeCommit message (Collapse)AuthorLines
2024-06-01Increase vtable layout sizeMark Rousskov-3/+3
This improves LLVM's codegen by allowing vtable loads to be hoisted out of loops (as just one example).
2024-05-20Fix `tests/debuginfo/strings-and-strs`.Nicholas Nethercote-2/+2
It fails on my machine because it embeds pointer addresses in the expected output. This commit replaces the addresses with `0x[...]`.
2024-05-11lldb-formatters: Use StdSliceSyntheticProvider for &strVladimir Makayev-3/+66
2024-05-05Implement lldb formattter for "clang encoded" enums (LLDB 18.1+)Vladimir Makayev-23/+102
Summary: I landed a fix last year to enable `DW_TAG_variant_part` encoding in LLDBs (https://reviews.llvm.org/D149213). This PR is a corresponding fix in synthetic formatters to decode that information. This is in no way perfect implementation but at least it improves the status quo. But most types of enums will be visible and debuggable in some way. I've also updated most of the existing tests that touch enums and re-enabled test cases based on LLDB for enums. Test Plan: ran tests `./x test tests/debuginfo/`. Also tested manually in LLDB CLI and LLDB VSCode Other Thoughs A better approach would probably be adopting [formatters from codelldb](https://github.com/vadimcn/codelldb/blob/master/formatters/rust.py). There is some neat hack that hooks up summary provider via synthetic provider which can ultimately fix more display issues for Rust types and enums too. But getting it to work well might take more time that I have right now.
2024-04-26Update lldb only testsVadim Petrochenkov-0/+2
2024-04-25debuginfo: Stabilize `-Z debug-macros`, `-Z collapse-macro-debuginfo` and ↵Vadim Petrochenkov-92/+18
`#[collapse_debuginfo]` `-Z debug-macros` is "stabilized" by enabling it by default and removing. `-Z collapse-macro-debuginfo` is stabilized as `-C collapse-macro-debuginfo`. It now supports all typical boolean values (`parse_opt_bool`) in addition to just yes/no. Default value of `collapse_debuginfo` was changed from `false` to `external` (i.e. collapsed if external, not collapsed if local). `#[collapse_debuginfo]` attribute without a value is no longer supported to avoid guessing the default.
2024-04-24Error on using `yield` without also using `#[coroutine]` on the closureOli Scherer-10/+17
And suggest adding the `#[coroutine]` to the closure
2024-04-22Stabilize generic `NonZero`.Markus Reiter-2/+0
2024-04-15disable two debuginfo tests under gdb 15Rémy Rakic-0/+4
it seems gdb 15 regresses some of our debuginfo tests. disable them temporarily so that CI doesn't randomly start failing soon.
2024-03-29Add rust-lldb pretty printing for Path and PathBufNathan Henrie-0/+29
Fixes https://github.com/rust-lang/rust/issues/120553 Fixes https://github.com/rust-lang/rust/issues/48462
2024-03-17Auto merge of #121885 - reitermarkus:generic-nonzero-inner, ↵bors-1656/+1648
r=oli-obk,wesleywiser Move generic `NonZero` `rustc_layout_scalar_valid_range_start` attribute to inner type. Tracking issue: https://github.com/rust-lang/rust/issues/120257 r? `@dtolnay`
2024-03-15Fix unknown `dwim-print` command.Markus Reiter-4/+4
2024-03-15Fix remaining LLDB commands.Markus Reiter-29/+29
2024-03-15Use explicit LLDB commands instead of `print`/`p` aliases.Markus Reiter-838/+830
2024-03-14Remove LLDB persistent results in `compiletest`.Markus Reiter-826/+824
2024-03-14Fix `StdNonZeroNumberSummaryProvider`.Markus Reiter-12/+14
2024-03-14Try fixing `debuginfo` test.Markus Reiter-12/+12
2024-03-12std: move `Once` implementations to `sys`joboet-2/+2
2024-03-05Update debuginfo testsChris Denton-2/+2
2024-02-25Use generic `NonZero` in tests.Markus Reiter-54/+54
2024-02-22[AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives许杰友 Jieyou Xu (Joe)-406/+406
2024-02-22Ignore tidy linelength许杰友 Jieyou Xu (Joe)-0/+1
2024-02-16update debuginfo testjoboet-2/+2
2024-01-27Update tests.Markus Reiter-27/+27
2024-01-17Improved collapse_debuginfo attribute, added command-line flag (no|external|yes)Andrew Zhogin-1/+149
2024-01-12update debuginfo tests on Windowsjoboet-2/+2
2024-01-08Improved support of collapse_debuginfo attribute for macros.Andrew Zhogin-0/+462
2023-11-04Check alignment of pointers only when read/written throughBen Kimock-1/+1
2023-10-20s/generator/coroutine/Oli Scherer-24/+24
2023-10-20s/Generator/Coroutine/Oli Scherer-8/+8
2023-09-12Auto merge of #115128 - davidtwco:re-enable-debuginfo-test, r=wesleywiserbors-1/+0
tests: re-enable pretty-std-collections on macOS Fixes #78665. I made some small modifications to this test so that it would pass for me locally (though I was only able to test using lldb without built-in Rust support, but that seems to be the mode in which it would fail). I ran it a few hundred times with stage one and stage two to see if I could re-produce the spurious failures that were being reported in #78665 and couldn't. From the discussion in #78665, it seemed like this was related to Xcode versions and could be reproduced locally fairly easily. It's been a couple years since this was disabled so a lot has changed. If this starts failing spuriously again then we can disable it and I can look into that. r? `@wesleywiser` (discussed in wg-debugging's triage meeting)
2023-08-30tests: re-enable pretty-std-collections on macOSDavid Wood-1/+0
Signed-off-by: David Wood <david@davidtw.co>
2023-08-25tests: add test for #67992David Wood-0/+31
Signed-off-by: David Wood <david@davidtw.co>
2023-07-29Replace ignore-everything with only-archJubilee Young-10/+3
Combining revisions with only-arch allows specifying that a test only applies to a handful of targets. This allows removing a large amount of repetition in the test suite for tests that do not benefit. The revisions are suboptimal for this for some tests, so they aren't preferred in those cases.
2023-07-17Update natvis to match full type names for Arc, Rc, Weak, etcWesley Wiser-1/+1
Also update a test case to have the correct whitespace in a type name.
2023-07-03fix type bracesCyborus04-1/+1
2023-07-03Update `debuginfo` test output to describe new structure of `Rc`/`Arc`Trevor Gross-13/+13
2023-05-13Add multiple borrow test.Camille GILLOT-0/+8
2023-05-13Add debuginfo test.Camille GILLOT-0/+165
2023-05-02Rollup merge of #108668 - gibbyfree:stabilizedebuggervisualizer, r=wesleywiserDylan DPC-2/+0
Stabilize debugger_visualizer This stabilizes the `debugger_visualizer` attribute (#95939). * Marks the `debugger_visualizer` feature as `accepted`. * Marks the `debugger_visualizer` attribute as `ungated`. * Deletes feature gate test, removes feature gate from other tests. Closes #95939
2023-05-01remove bootstrap from testsGibby Free-2/+0
2023-04-27Remove repeated definite articlescui fliter-1/+1
Signed-off-by: cui fliter <imcusg@gmail.com>
2023-04-25Auto merge of #103093 - rytheo:linked-list-alloc-api, r=Mark-Simulacrumbors-2/+2
Add support for allocators in `LinkedList` Allows `LinkedList` to use a custom allocator
2023-04-24Add support for allocators in LinkedListRyan Lowe-2/+2
2023-04-23Fortify test.Camille GILLOT-7/+15
2023-04-16ci: add a runner for vanilla LLVM 16Josh Stone-0/+2
Like #107044, this will let us track compatibility with LLVM 16 going forward, especially after we eventually upgrade our own to the next. This also drops `tidy` here and in `x86_64-gnu-llvm-15`, syncing with that change in #106085.
2023-04-14rename rust-lldb to needs-rust-lldb for consistencyPietro Albini-9/+9
2023-04-05Fix function order in an msvc debuginfo testRémy Rakic-1/+1
The function names with const generic parameters are printed in a different order.
2023-04-05Fix a debuginfo test with a hard-coded hashThom Chiovoloni-2/+2
2023-03-13Bless debuginfo test.Camille GILLOT-1/+0