From 648c128b5f5eb8988aabcc2073b706d2561acd15 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Fri, 17 Nov 2017 17:41:23 +0200 Subject: [PATCH] More fixes in src/.gdbinit * src/.gdbinit (pwinx): Update to match 'struct window'. (pcursorx): Use "." instead of "->" because the argument is a struct, not a pointer. --- src/.gdbinit | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/src/.gdbinit b/src/.gdbinit index 48bb5dfadb8..e22d03ea476 100644 --- a/src/.gdbinit +++ b/src/.gdbinit @@ -352,7 +352,7 @@ end define pcursorx set $cp = $arg0 - printf "y=%d x=%d vpos=%d hpos=%d", $cp->y, $cp->x, $cp->vpos, $cp->hpos + printf "y=%d x=%d vpos=%d hpos=%d", $cp.y, $cp.x, $cp.vpos, $cp.hpos end document pcursorx Pretty print a window cursor. @@ -369,11 +369,11 @@ end define pwinx set $w = $arg0 - if ($w->mini_p != Qnil) + if ($w->mini != 0) printf "Mini " end - printf "Window %d ", $int - xgetptr $w->buffer + printf "Window %d ", $w->sequence_number + xgetptr $w->contents set $tem = (struct buffer *) $ptr xgetptr $tem->name_ printf "%s", ((struct Lisp_String *) $ptr)->u.s.data @@ -381,16 +381,14 @@ define pwinx xgetptr $w->start set $tem = (struct Lisp_Marker *) $ptr printf "start=%d end:", $tem->charpos - if ($w->window_end_valid != Qnil) - xgetint $w->window_end_pos - printf "pos=%d", $int - xgetint $w->window_end_vpos - printf " vpos=%d", $int + if ($w->window_end_valid != 0) + printf "pos=%d", $w->window_end_pos + printf " vpos=%d", $w->window_end_vpos else printf "invalid" end printf " vscroll=%d", $w->vscroll - if ($w->force_start != Qnil) + if ($w->force_start != 0) printf " FORCE_START" end if ($w->must_be_updated_p) -- 2.39.2