X-Git-Url: http://git.hcoop.net/bpt/emacs.git/blobdiff_plain/f6f3d0b9133d06b29523c7bc744130cddc5c8d6b..a73d7753f965734247be482efa125da5235996da:/src/.gdbinit diff --git a/src/.gdbinit b/src/.gdbinit index 5a940e667d..4eed8c4c70 100644 --- a/src/.gdbinit +++ b/src/.gdbinit @@ -754,7 +754,7 @@ define xchartable print (struct Lisp_Char_Table *) $ptr printf "Purpose: " xprintsym $->purpose - printf " %d extra slots", ($->size & 0x1ff) - 388 + printf " %d extra slots", ($->size & 0x1ff) - 68 echo \n end document xchartable @@ -992,6 +992,29 @@ document xprintsym Print argument as a symbol. end +define xcoding + set $tmp = (struct Lisp_Hash_Table *) ((Vcoding_system_hash_table & $valmask) | gdb_data_seg_bits) + set $tmp = (struct Lisp_Vector *) (($tmp->key_and_value & $valmask) | gdb_data_seg_bits) + set $name = $tmp->contents[$arg0 * 2] + print $name + pr + print $tmp->contents[$arg0 * 2 + 1] + pr +end +document xcoding + Print the name and attributes of coding system that has ID (argument). +end + +define xcharset + set $tmp = (struct Lisp_Hash_Table *) ((Vcharset_hash_table & $valmask) | gdb_data_seg_bits) + set $tmp = (struct Lisp_Vector *) (($tmp->key_and_value & $valmask) | gdb_data_seg_bits) + p $tmp->contents[$arg0->hash_index * 2] + pr +end +document xcharset + Print the name of charset that has ID (argument). +end + define xbacktrace set $bt = backtrace_list while $bt