Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite gdb pretty-printer registration #116978

Merged
merged 1 commit into from
Oct 23, 2023

Commits on Oct 20, 2023

  1. 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
    tromey committed Oct 20, 2023
    Configuration menu
    Copy the full SHA
    e98beb5 View commit details
    Browse the repository at this point in the history