Skip to content
Snippets Groups Projects
  • Tom Tromey's avatar
    cb275538
    Use registry in gdbarch · cb275538
    Tom Tromey authored
    gdbarch implements its own registry-like approach.  This patch changes
    it to instead use registry.h.  It's a rather large patch but largely
    uninteresting -- it's mostly a straightforward conversion from the old
    approach to the new one.
    
    The main benefit of this change is that it introduces type safety to
    the gdbarch registry.  It also removes a bunch of code.
    
    One possible drawback is that, previously, the gdbarch registry
    differentiated between pre- and post-initialization setup.  This
    doesn't seem very important to me, though.
    
    
    cb275538
    History
    Use registry in gdbarch
    Tom Tromey authored
    gdbarch implements its own registry-like approach.  This patch changes
    it to instead use registry.h.  It's a rather large patch but largely
    uninteresting -- it's mostly a straightforward conversion from the old
    approach to the new one.
    
    The main benefit of this change is that it introduces type safety to
    the gdbarch registry.  It also removes a bunch of code.
    
    One possible drawback is that, previously, the gdbarch registry
    differentiated between pre- and post-initialization setup.  This
    doesn't seem very important to me, though.