* src/.gdbinit (Emacs_Pretty_Printers.__call__):
Compare unqualified type to Lisp_Object, to do the right thing
when the expression has type ‘Lisp_Object const’.
Problem reported by Eli Zaretskii in:
http://lists.gnu.org/archive/html/emacs-devel/2017-05/msg00138.html
RegexpCollectionPrettyPrinter except when printing Lisp_Object."""
def __call__ (self, val):
"""Look up the pretty-printer for the provided value."""
- type = val.type
+ type = val.type.unqualified ()
typename = type.tag or type.name
basic_type = gdb.types.get_basic_type (type)
basic_typename = basic_type.tag or basic_type.name