Mercurial > emacs
diff src/.gdbinit @ 91354:99ac532a6a03
(xfontset): New function.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Mon, 28 Jan 2008 07:05:37 +0000 |
parents | bdb3fe0ba9fa |
children | c70e45a7acfd |
line wrap: on
line diff
--- a/src/.gdbinit Mon Jan 28 07:05:07 2008 +0000 +++ b/src/.gdbinit Mon Jan 28 07:05:37 2008 +0000 @@ -1015,6 +1015,29 @@ Print the name of charset that has ID (argument). end +define xfontset + xgetptr $ + set $tbl = (struct Lisp_Char_Table *) $ptr + print $tbl + xgetint $tbl->extras[0] + printf " ID:%d", $int + xgettype $tbl->extras[1] + xgetptr $tbl->extras[1] + if $type == Lisp_String + set $ptr = (struct Lisp_String *) $ptr + printf " Name:" + xprintstr $ptr + else + xgetptr $tbl->extras[2] + set $ptr = (struct Lisp_Char_Table *) $ptr + xgetptr $ptr->extras[1] + set $ptr = (struct Lisp_String *) $ptr + printf " Realized from:" + xprintstr $ptr + end + echo \n +end + define xbacktrace set $bt = backtrace_list while $bt