Skip to content

Commit 1ddc308

Browse files
committed
Implement new gdb/lldb pretty-printers
Replace old GDB and LLDB pretty-printers with new ones which were originally written for IntelliJ Rust. New LLDB pretty-printers support synthetic children. New GDB/LLDB pretty-printers support all Rust types supported by old pretty-printers, and also support: Rc, Arc, Cell, Ref, RefCell, RefMut, HashMap, HashSet.
1 parent 11f6096 commit 1ddc308

17 files changed

+1463
-1202
lines changed

src/bootstrap/dist.rs

+5-3
Original file line numberDiff line numberDiff line change
@@ -621,19 +621,21 @@ impl Step for DebuggerScripts {
621621
cp_debugger_script("natvis/libcore.natvis");
622622
cp_debugger_script("natvis/libstd.natvis");
623623
} else {
624-
cp_debugger_script("debugger_pretty_printers_common.py");
624+
cp_debugger_script("rust_types.py");
625625

626626
// gdb debugger scripts
627627
builder.install(&builder.src.join("src/etc/rust-gdb"), &sysroot.join("bin"), 0o755);
628628
builder.install(&builder.src.join("src/etc/rust-gdbgui"), &sysroot.join("bin"), 0o755);
629629

630630
cp_debugger_script("gdb_load_rust_pretty_printers.py");
631-
cp_debugger_script("gdb_rust_pretty_printing.py");
631+
cp_debugger_script("gdb_lookup.py");
632+
cp_debugger_script("gdb_providers.py");
632633

633634
// lldb debugger scripts
634635
builder.install(&builder.src.join("src/etc/rust-lldb"), &sysroot.join("bin"), 0o755);
635636

636-
cp_debugger_script("lldb_rust_formatters.py");
637+
cp_debugger_script("lldb_lookup.py");
638+
cp_debugger_script("lldb_providers.py");
637639
}
638640
}
639641
}

0 commit comments

Comments
 (0)