# HG changeset patch # User Eli Zaretskii # Date 1271682335 -10800 # Node ID 8cc4089eeeaa94843d0fd3137772d7a76fee9bf8 # Parent e4d7764c4cbebc547e2f135130d666cb74cc8615 .gdbinit (xsubchartable): New command. diff -r e4d7764c4cbe -r 8cc4089eeeaa src/.gdbinit --- a/src/.gdbinit Mon Apr 19 15:12:13 2010 +0300 +++ b/src/.gdbinit Mon Apr 19 16:05:35 2010 +0300 @@ -889,6 +889,19 @@ This command assumes that $ is an Emacs Lisp char-table value. end +define xsubchartable + xgetptr $ + print (struct Lisp_Sub_Char_Table *) $ptr + xgetint $->depth + set $depth = $int + xgetint $->min_char + printf "Depth: %d, Min char: %d (0x%x)\n", $depth, $int, $int +end +document xsubchartable +Print the address of the sub-char-table $, its depth and min-char. +This command assumes that $ is an Emacs Lisp sub-char-table value. +end + define xboolvector xgetptr $ print (struct Lisp_Bool_Vector *) $ptr diff -r e4d7764c4cbe -r 8cc4089eeeaa src/ChangeLog --- a/src/ChangeLog Mon Apr 19 15:12:13 2010 +0300 +++ b/src/ChangeLog Mon Apr 19 16:05:35 2010 +0300 @@ -1,5 +1,7 @@ 2010-04-19 Eli Zaretskii + * .gdbinit (xsubchartable): New command. + * xdisp.c (display_line): Don't write beyond the last glyph row in the desired matrix. Fixes a crash in "emacs -nw", see http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html