about summary refs log tree commit diff
path: root/src/etc/gdb_lookup.py
AgeCommit message (Collapse)AuthorLines
2024-12-04Reformat Python code with `ruff`Jakub Beránek-2/+5
2023-10-20Rewrite gdb pretty-printer registrationTom Tromey-55/+78
Currently, the Rust pretty-printers are registered in gdb using the uninformative name "lookup": (gdb) info pretty-printer global pretty-printers: [...] objfile /home/tromey/[...] lookup It's nicer for users if the top-level registration is given a clear name. Additionally, gdb lets users individually enable and disable specific printers, provided they are registered correctly. This patch implements both these ideas. Now the output looks like: (gdb) info pretty-printer global pretty-printers: [...] objfile /home/tromey/[...] rust StdArc StdBTreeMap StdBTreeSet StdCell StdHashMap StdHashSet StdNonZeroNumber StdOsString StdRc StdRef StdRefCell StdRefMut StdSlice StdStr StdString StdVec StdVecDeque
2022-08-24Add GDB/LLDB pretty-printers for NonZero typesArtem Mukhin-0/+3
2021-07-03Support pretty printing slices using GDBEFanZh-3/+3
2020-09-08Implement HashSet in terms of hashbrown::HashSetMatt Brubeck-2/+2
2020-06-09Implement new gdb/lldb pretty-printersortem-0/+92
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.