summaryrefslogtreecommitdiff
path: root/src/.gdbinit
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>2008-01-28 07:05:37 +0000
committerKenichi Handa <handa@m17n.org>2008-01-28 07:05:37 +0000
commit9e067dbc984eb89a5acbe1d6837f03dfce4ba07d (patch)
tree4de80e927c0c216376d16efa8b44b3ae4cbc18d5 /src/.gdbinit
parent6c8ec042df4e4c84e2841a1a5109a53df5fbfee3 (diff)
downloademacs-9e067dbc984eb89a5acbe1d6837f03dfce4ba07d.tar.gz
(xfontset): New function.
Diffstat (limited to 'src/.gdbinit')
-rw-r--r--src/.gdbinit23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/.gdbinit b/src/.gdbinit
index 2c3750bd8de..be7473f0a82 100644
--- a/src/.gdbinit
+++ b/src/.gdbinit
@@ -1015,6 +1015,29 @@ document xcharset
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