# HG changeset patch # User Kenichi Handa # Date 1201503937 0 # Node ID 99ac532a6a03bb8df2cdf1525ef6b4d0b3337314 # Parent b93ade1a36024f5792dc0949eeb5826bebb4491b (xfontset): New function. diff -r b93ade1a3602 -r 99ac532a6a03 src/.gdbinit --- 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