From: Eli Zaretskii Date: Mon, 28 Jul 2014 07:10:17 +0000 (+0300) Subject: Fix GDB xwindow command. X-Git-Tag: emacs-24.3.93~35 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=29c3b7163526ad66fd3a9e4201797b2fca4c87be;p=emacs.git Fix GDB xwindow command. src/.gdbinit (xwindow): The members total_cols, total_lines, left_col, and top_line are C integers (and has been so for the last 1.5 years). --- diff --git a/src/.gdbinit b/src/.gdbinit index 715744bc18e..a74fe3db7a1 100644 --- a/src/.gdbinit +++ b/src/.gdbinit @@ -820,15 +820,7 @@ define xwindow xgetptr $ print (struct window *) $ptr 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 + printf "%dx%d+%d+%d\n", $window->total_cols, $window->total_lines, $window->left_col, $window->top_line end document xwindow Print $ as a window pointer, assuming it is an Emacs Lisp window value. diff --git a/src/ChangeLog b/src/ChangeLog index f39526f4f4b..64fb82b78a3 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2014-07-28 Eli Zaretskii + + * .gdbinit (xwindow): The members total_cols, total_lines, + left_col, and top_line are C integers (and has been so for the + last 1.5 years). + 2014-07-20 Jan Djärv * nsterm.m (applicationDidFinishLaunching:): Call