about summary refs log tree commit diff
path: root/src/test/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-06-15 15:21:45 +0000
committerbors <bors@rust-lang.org>2020-06-15 15:21:45 +0000
commitf315c35a77e40bd11ce81fedc0556be0f410bbf4 (patch)
treeb5cfdca90f9475d68f44b52f0df8b8d417733287 /src/test/debuginfo/enum-thinlto.rs
parentff4a2533a0720f9cdd86e02eafa3725f07aa7752 (diff)
parent47c26e69a986d25ed9d26aebc2787334956a89ae (diff)
downloadrust-f315c35a77e40bd11ce81fedc0556be0f410bbf4.tar.gz
rust-f315c35a77e40bd11ce81fedc0556be0f410bbf4.zip
Auto merge of #72357 - ortem:new-dbg-pretty-printers, r=pnkfelix
Implement new gdb/lldb pretty-printers

Reopened #60826

This PR replaces current gdb and lldb pretty-printers with new ones that were originally written for [IntelliJ Rust](https://github.com/intellij-rust/intellij-rust/tree/master/prettyPrinters).

The current state of lldb pretty-printers is poor, because [they don't use synthetic children](https://github.com/rust-lang/rust/issues/55586#issuecomment-436610063). When I started to reimplement lldb pretty-printers with synthetic children support, I've found current version strange and hard to support. I think `debugger_pretty_printers_common.py` is overkill, so I got rid of it.

The new pretty-printers have to support all types supported by current pretty-printers, and also support `Rc`, `Arc`, `Cell`, `Ref`, `RefCell`, `RefMut`, `HashMap`, `HashSet`.

Fixes #56252
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
-rw-r--r--src/test/debuginfo/enum-thinlto.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/debuginfo/enum-thinlto.rs b/src/test/debuginfo/enum-thinlto.rs
index 9359e55dcee..b10e04a4a9e 100644
--- a/src/test/debuginfo/enum-thinlto.rs
+++ b/src/test/debuginfo/enum-thinlto.rs
@@ -15,7 +15,8 @@
 // lldb-command:run
 
 // lldb-command:print *abc
-// lldbg-check:(enum_thinlto::ABC) $0 = ABC { }
+// lldbg-check:(enum_thinlto::ABC) $0 =
+// lldbr-check:(enum_thinlto::ABC) *abc = (x = 0, y = 8970181431921507452)
 
 #![allow(unused_variables)]
 #![feature(omit_gdb_pretty_printer_section)]