diff options
author | Eli Zaretskii <eliz@gnu.org> | 2014-07-28 10:10:17 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2014-07-28 10:10:17 +0300 |
commit | 29c3b7163526ad66fd3a9e4201797b2fca4c87be (patch) | |
tree | d26524aa446be982bbeeb49b8350655dcc2db644 | |
parent | bc7f1625f6a06f153feb4253684a41ae2d96fb36 (diff) | |
download | emacs-29c3b7163526ad66fd3a9e4201797b2fca4c87be.tar.gz |
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).
-rw-r--r-- | src/.gdbinit | 10 | ||||
-rw-r--r-- | src/ChangeLog | 6 |
2 files changed, 7 insertions, 9 deletions
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 <eliz@gnu.org> + + * .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 <jan.h.d@swipnet.se> * nsterm.m (applicationDidFinishLaunching:): Call |