diff options
| author | Kenichi Handa | 2008-06-08 11:01:55 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2008-06-08 11:01:55 +0000 |
| commit | 322081f146a566355e6592f017733a170ed969b1 (patch) | |
| tree | 469f892f96847f35500b069761a32c9c707c28e8 /src | |
| parent | 48846dc595ab1fcd3713457b0c6c379a54fdf2d1 (diff) | |
| download | emacs-322081f146a566355e6592f017733a170ed969b1.tar.gz emacs-322081f146a566355e6592f017733a170ed969b1.zip | |
*** empty log message ***
Diffstat (limited to 'src')
| -rw-r--r-- | src/.gdbinit | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/.gdbinit b/src/.gdbinit index 3901fcfbebc..fd911b9cbd6 100644 --- a/src/.gdbinit +++ b/src/.gdbinit | |||
| @@ -1039,6 +1039,23 @@ define xfontset | |||
| 1039 | echo \n | 1039 | echo \n |
| 1040 | end | 1040 | end |
| 1041 | 1041 | ||
| 1042 | define xfont | ||
| 1043 | xgetptr $ | ||
| 1044 | set $size = (((struct Lisp_Vector *) $ptr)->size & 0x1FF) | ||
| 1045 | if $size == FONT_SPEC_MAX | ||
| 1046 | print (struct font_spec *) $ptr | ||
| 1047 | else | ||
| 1048 | if $size == FONT_ENTITY_MAX | ||
| 1049 | print (struct font_entity *) $ptr | ||
| 1050 | else | ||
| 1051 | print (struct font *) $ptr | ||
| 1052 | end | ||
| 1053 | end | ||
| 1054 | end | ||
| 1055 | document xfont | ||
| 1056 | Print $ assuming it is a list font (font-spec, font-entity, or font-object). | ||
| 1057 | end | ||
| 1058 | |||
| 1042 | define xbacktrace | 1059 | define xbacktrace |
| 1043 | set $bt = backtrace_list | 1060 | set $bt = backtrace_list |
| 1044 | while $bt | 1061 | while $bt |