Mercurial > emacs
diff src/.gdbinit @ 68857:faf10626ffee
(xwindow): Update the code to show the window box.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 13 Feb 2006 18:45:39 +0000 |
parents | 3bd95f4f2941 |
children | 7a7755ff46ed 428d132b4028 d57ee9eab157 |
line wrap: on
line diff
--- a/src/.gdbinit Mon Feb 13 16:18:46 2006 +0000 +++ b/src/.gdbinit Mon Feb 13 18:45:39 2006 +0000 @@ -548,7 +548,16 @@ define xwindow xgetptr $ print (struct window *) $ptr - printf "%dx%d+%d+%d\n", $->width, $->height, $->left, $->top + set $window = (struct window *) $ptr + xgetint $window->total_cols + set $width=$int + xgetint $window->total_lines + set $height=$int + xgetint $window->left_col + set $left=$int + xgetint $window->top_line + set $top=$int + printf "%dx%d+%d+%d\n", $width, $height, $left, $top end document xwindow Print $ as a window pointer, assuming it is an Emacs Lisp window value.