about summary refs log tree commit diff
path: root/tests/debuginfo
AgeCommit message (Collapse)AuthorLines
2024-08-18Fix up a special caseBen Kimock-7/+0
2024-08-18Replace gdbr with gdbgBen Kimock-461/+461
2024-08-18Delete gdbg commandsBen Kimock-398/+0
2024-08-16Enable more debuginfo tests on WindowsBen Kimock-12/+8
2024-08-16Re-enable debuginfo tests on freebsdBen Kimock-4/+0
2024-08-16Auto merge of #128913 - saethlin:unignore-debuginfo-tests, r=compiler-errorsbors-72/+48
Enable debuginfo tests that have been "temporarily disabled" for the past 6 years The PR history is a bit of a mess because I had to test this a lot with try-jobs, so I'll try to summarize the non-obvious changes here. A number of tests now have `min-lldb-version: 1800`. Those tests should have gotten an lldb version jump either in https://github.com/rust-lang/rust/pull/124781 or long ago. Note that all such tests with that lldb version requirement do not run in Apple CI. `tests/debuginfo/drop-locations.rs` is staying disabled for now because gdb doesn't know to stop on the drop calls produced by a `}`: https://github.com/rust-lang/rust/issues/128971 `tests/debuginfo/function-arg-initialization.rs` now has `-Zmir-enable-passes=-SingleUseConsts`; without that we initialize the const before the function prelude: https://github.com/rust-lang/rust/issues/128945 `tests/debuginfo/by-value-non-immediate-argument.rs` fails because we don't generate a function prelude for unused non-immediate arguments, even with all optimizations disabled, and this seems to confuse debuggers on aarch64: https://github.com/rust-lang/rust/issues/128973 `tests/debuginfo/pretty-std.rs` is staying disabled on windows-gnu because our test harness doesn't know how to load our pretty-printers on that target: https://github.com/rust-lang/rust/issues/128981 `tests/debuginfo/method-on-enum.rs` and `tests/debuginfo/option-like-enum.rs` encounter some kind of gdb bug on i686-pc-windows-gnu. I don't know enough about that situation to write a good issue. I plan on doing more work on this test suite. There's clearly a lot more basic cleanup work to do here.
2024-08-15Disable macro-stepping on current lldbBen Kimock-1/+2
2024-08-13Require gdb version on some testsBen Kimock-9/+4
2024-08-13Use the `enum2$` Natvis visualiser for repr128 C-style enumsbeetrees-0/+50
2024-08-11Fix debuginfo providers/testsBen Kimock-6/+6
2024-08-11Enable debuginfo tests that have been temporarily disabled for yearsBen Kimock-71/+51
2024-08-09Polymorphize RawVecBen Kimock-1/+1
2024-08-07Disallow setting built-in cfgs via set the command-lineUrgau-2/+2
2024-07-09Add Natvis visualiser and debuginfo tests for `f16`beetrees-33/+152
2024-06-13Add debuginfo tests for collapse_debuginfo for statics.Dario Nieuwenhuis-0/+48
2024-06-05remove const arg windows debug info testsBoxy-3/+0
2024-06-05Fix function-names.rs testMichael Goulet-2/+2
2024-06-05Bless tests and handle tests/crashesBoxy-2/+2
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>