X-Git-Url: https://git.hcoop.net/bpt/emacs.git/blobdiff_plain/792140469d3b08b167210b2e373de2f48533fbb9..8510724d46951d651a78424e12b93ccee100c665:/src/.gdbinit diff --git a/src/.gdbinit b/src/.gdbinit index 3901fcfbeb..fc2ad81702 100644 --- a/src/.gdbinit +++ b/src/.gdbinit @@ -1,5 +1,5 @@ # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2000, 2001, -# 2002, 2003, 2004, 2005, 2006, 2007, 2008 +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 # Free Software Foundation, Inc. # # This file is part of GNU Emacs. @@ -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