diff options
| author | Tom Tromey <tromey@adacore.com> | 2023-10-20 08:35:09 -0600 |
|---|---|---|
| committer | Tom Tromey <tromey@adacore.com> | 2023-10-20 10:35:28 -0600 |
| commit | e98beb5aeb74371cd03c7aed8e8427dc4a65ce1f (patch) | |
| tree | 6c89a4aa946c6ca0fd5974fe4b08cdc813027bde /compiler/rustc_codegen_cranelift/example/std_example.rs | |
| parent | e76cb8c49831ff80d7d2e16319c86edbaa9edb8c (diff) | |
| download | rust-e98beb5aeb74371cd03c7aed8e8427dc4a65ce1f.tar.gz rust-e98beb5aeb74371cd03c7aed8e8427dc4a65ce1f.zip | |
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
