Mercurial > emacs
changeset 91354:99ac532a6a03
(xfontset): New function.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Mon, 28 Jan 2008 07:05:37 +0000 |
parents | b93ade1a3602 |
children | 8e67cd1b2741 |
files | src/.gdbinit |
diffstat | 1 files changed, 23 insertions(+), 0 deletions(-) [+] |
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