diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2017-05-06 14:24:12 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2017-05-06 14:25:13 -0700 |
commit | 7cd7f5b4032092389a00e23af3ab435628febed3 (patch) | |
tree | 2ebfac740178bfbbadf0299e59aeb221e43cdad7 /src/.gdbinit | |
parent | 0a13c725132ade2709da217cac70e3847a387c58 (diff) | |
download | emacs-7cd7f5b4032092389a00e23af3ab435628febed3.tar.gz |
Pretty-print const Lisp_Objects in .gdbinit
* 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
Diffstat (limited to 'src/.gdbinit')
-rw-r--r-- | src/.gdbinit | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/.gdbinit b/src/.gdbinit index 0596188e050..29689e20a95 100644 --- a/src/.gdbinit +++ b/src/.gdbinit @@ -1280,7 +1280,7 @@ if hasattr(gdb, 'printing'): 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 |