Commit Graph

6 Commits

Author SHA1 Message Date
bors
adcc5f3bdc Auto merge of #160377 - Walnut356:gdb_di_repr, r=Kobzol,jieyouxu
Add `gdb-repr` directive for `tests/debuginfo`



Part of https://github.com/rust-lang/rust/issues/148483 and followup to https://github.com/rust-lang/rust/pull/158298. Applies (approximately) identical logic to GDB.

I still need to test things on `windows-gnu` (and locally try a few more tests to see if there's any glaring issues). There's also a few bike-sheddy things.

The main way this differs from the LLDB implementation is that GDB doesn't use `lldb_batchmode/runner.py` to orchestrate the commands. Instead, I have `compiletest` import `from_gdb.py` which registers a custom `repr` CLI command. GDB's batch processing works as normal, but dispatches to our logic automatically whenever it encounters `repr <var_name>`.

An additional `repr-finalize` CLI command is also registered to implement the checks that ensure we encountered all expected types/vars, and verifies that there were no errors before saving blessed data.

r? @Kobzol, @jieyouxu
2026-09-12 14:45:47 +00:00
Walnut
7e0525173e convert basic-types to gdb-repr 2026-09-08 05:01:45 -05:00
Walnut
cc3786db90 force u8/i8 numeric formatting for lldb 2026-09-06 03:09:37 -05:00
Walnut
dae325089f lower minimum lldb to 21.1 2026-08-17 00:38:40 -05:00
Walnut
817d95a65e json trimming 2026-08-15 07:07:59 -05:00
Walnut
64f6b622ac add lldb-repr check logic 2026-07-25 05:26:07 -05:00