diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-10-23 16:23:52 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-23 16:23:52 +0200 |
| commit | 5f96976e82b16b27804862a9e65de7115ea238e8 (patch) | |
| tree | 81a201728ea3472d58cc6404384d47b0b837ef78 /compiler/rustc_codegen_cranelift/example/std_example.rs | |
| parent | 726709bca40fdeb94cb2b4c1be03846c2a7f833d (diff) | |
| parent | e98beb5aeb74371cd03c7aed8e8427dc4a65ce1f (diff) | |
| download | rust-5f96976e82b16b27804862a9e65de7115ea238e8.tar.gz rust-5f96976e82b16b27804862a9e65de7115ea238e8.zip | |
Rollup merge of #116978 - tromey:rust-printers-cleanup, r=Mark-Simulacrum
Rewrite gdb pretty-printer registration
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
Diffstat (limited to 'compiler/rustc_codegen_cranelift/example/std_example.rs')
0 files changed, 0 insertions, 0 deletions
