Fix pgx in .gdbinit when CHECK_LISP_OBJECT_TYPE is defined.
authorEli Zaretskii <eliz@gnu.org>
Fri, 23 Nov 2012 07:54:33 +0000 (09:54 +0200)
committerEli Zaretskii <eliz@gnu.org>
Fri, 23 Nov 2012 07:54:33 +0000 (09:54 +0200)
 src/.gdbinit (pgx): If the glyph's object is a string, display the
 pointer to string data, rather than the value of the string object
 itself (which barfs under CHECK_LISP_OBJECT_TYPE).

src/.gdbinit
src/ChangeLog

index 952d739..98ae247 100644 (file)
@@ -495,7 +495,8 @@ define pgx
   end
   xgettype ($g.object)
   if ($type == Lisp_String)
-    printf " str=%x[%d]", $g.object, $g.charpos
+    xgetptr $g.object
+    printf " str=0x%x[%d]", ((struct Lisp_String *)$ptr)->data, $g.charpos
   else
     printf " pos=%d", $g.charpos
   end
index f760adf..7460e2c 100644 (file)
@@ -1,3 +1,9 @@
+2012-11-23  Eli Zaretskii  <eliz@gnu.org>
+
+       * .gdbinit (pgx): If the glyph's object is a string, display the
+       pointer to string data, rather than the value of the string object
+       itself (which barfs under CHECK_LISP_OBJECT_TYPE).
+
 2012-11-21  Eli Zaretskii  <eliz@gnu.org>
 
        * indent.c (Fvertical_motion): If the starting position is covered