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
..
2025-08-01 20:04:59 +00:00
2026-09-12 14:45:47 +00:00
2026-02-02 18:13:43 -08:00
2026-08-23 00:57:14 -05:00
2026-09-11 17:08:12 +02:00
2026-09-06 05:28:04 -05:00
2026-09-08 05:05:37 -05:00
2025-11-25 06:13:45 +01:00
2026-09-07 04:52:01 -05:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2026-09-06 03:09:37 -05:00
2025-11-25 06:13:45 +01:00
2026-02-02 18:13:43 -08:00
2026-06-01 00:57:56 -05:00
2026-04-02 09:44:38 -05:00
2026-09-07 04:52:01 -05:00
2026-04-02 09:44:38 -05:00
2026-09-06 05:28:04 -05:00
2026-02-02 18:13:43 -08:00
2026-06-01 00:57:56 -05:00
2026-09-06 05:28:04 -05:00
2025-11-25 06:13:45 +01:00
2026-09-07 04:52:01 -05:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-08-01 20:04:59 +00:00
2025-08-01 20:04:59 +00:00
2026-07-16 21:10:15 -05:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2026-02-02 18:13:43 -08:00
2026-04-02 09:44:38 -05:00
2025-10-13 15:20:49 +02:00
2026-08-25 08:03:22 +00:00
2026-09-06 05:28:04 -05:00
2026-08-25 08:03:22 +00:00
2025-11-25 06:13:45 +01:00
2026-07-16 21:10:15 -05:00
2025-11-25 06:13:45 +01:00
2024-12-04 23:03:44 +01:00
2024-12-04 23:03:44 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2026-02-02 18:13:43 -08:00
2026-09-06 05:28:04 -05:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2026-02-02 18:13:43 -08:00
2025-11-25 06:13:45 +01:00
2026-07-17 00:17:09 +08:00
2026-04-23 12:13:19 +10:00
2026-02-02 18:13:43 -08:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2026-06-01 00:57:56 -05:00
2025-11-25 06:13:45 +01:00
2026-06-01 00:57:56 -05:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2026-09-07 04:52:01 -05:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2026-06-01 00:57:56 -05:00
2026-02-02 18:13:43 -08:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2026-07-16 21:10:15 -05:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2026-03-16 18:39:40 +01:00
2025-11-25 06:13:45 +01:00
2026-02-02 18:13:43 -08:00
2026-09-07 04:52:01 -05:00
2026-06-01 00:57:56 -05:00
2026-06-01 00:57:56 -05:00
2026-06-01 00:57:56 -05:00
2026-05-03 10:59:52 +02:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2026-09-07 04:52:01 -05:00
2026-06-01 00:57:56 -05:00
2026-02-02 18:13:43 -08:00
2026-09-06 05:28:04 -05:00
2026-09-06 05:28:04 -05:00
2026-06-01 00:57:56 -05:00
2026-08-11 14:13:19 +08:00
2026-09-07 04:52:01 -05:00
2025-11-25 06:13:45 +01:00
2026-04-02 09:44:38 -05:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2026-03-02 11:57:03 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-06-16 23:04:33 +00:00
2026-09-06 03:09:37 -05:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2026-06-01 00:57:56 -05:00
2026-06-01 00:57:56 -05:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2026-09-06 05:28:04 -05:00
2026-04-02 09:44:38 -05:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2026-09-07 04:52:01 -05:00
2026-02-02 18:13:43 -08:00
2026-09-06 05:28:04 -05:00
2025-11-25 06:13:45 +01:00
2026-02-02 18:13:43 -08:00
2026-09-06 05:28:04 -05:00
2026-09-07 04:52:01 -05:00
2025-11-29 15:59:11 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2026-04-02 09:44:38 -05:00
2026-06-01 00:57:56 -05:00
2026-02-02 18:13:43 -08:00
2025-11-25 06:13:45 +01:00
2026-09-06 03:09:37 -05:00
2026-04-02 09:44:38 -05:00
2025-11-25 06:13:45 +01:00
2025-08-01 20:04:59 +00:00
2026-02-23 23:32:56 +08:00
2025-11-25 06:13:45 +01:00
2026-06-01 00:57:56 -05:00
2026-06-01 00:57:56 -05:00
2026-06-01 00:57:56 -05:00
2026-09-07 04:08:12 -05:00
2026-06-01 00:57:56 -05:00
2026-07-16 21:10:15 -05:00