]> git.eshelyaron.com Git - emacs.git/commitdiff
*** empty log message ***
authorKenichi Handa <handa@m17n.org>
Sun, 8 Jun 2008 11:01:55 +0000 (11:01 +0000)
committerKenichi Handa <handa@m17n.org>
Sun, 8 Jun 2008 11:01:55 +0000 (11:01 +0000)
src/.gdbinit

index 3901fcfbebc17fa18ee172be5134fa168af6b722..fd911b9cbd600babac9549b1eba4da42b70d289f 100644 (file)
@@ -1039,6 +1039,23 @@ define xfontset
   echo \n
 end
 
+define xfont
+  xgetptr $
+  set $size = (((struct Lisp_Vector *) $ptr)->size & 0x1FF)
+  if $size == FONT_SPEC_MAX
+    print (struct font_spec *) $ptr
+  else
+    if $size == FONT_ENTITY_MAX
+      print (struct font_entity *) $ptr
+    else
+      print (struct font *) $ptr
+    end
+  end
+end
+document xfont
+Print $ assuming it is a list font (font-spec, font-entity, or font-object).
+end
+
 define xbacktrace
   set $bt = backtrace_list
   while $bt