From: Kim F. Storm Date: Thu, 14 Jul 2005 11:30:35 +0000 (+0000) Subject: (pitx): Fix output format. Print string charpos. X-Git-Tag: emacs-pretest-22.0.90~8148 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=501b66fa1c8d51e9252098d1dc19ce00de0ac94f;p=emacs.git (pitx): Fix output format. Print string charpos. --- diff --git a/src/.gdbinit b/src/.gdbinit index 8b1dcb4df5b..ea1ac2ef666 100644 --- a/src/.gdbinit +++ b/src/.gdbinit @@ -129,20 +129,24 @@ define pitx end if ($it->what == IT_CHARACTER) if ($it->len == 1 && $it->c >= ' ' && it->c < 255) - printf "ch='%c'", $it->c + printf " ch='%c'", $it->c else - printf "ch=[%d,%d]", $it->c, $it->len + printf " ch=[%d,%d]", $it->c, $it->len end else if ($it->what == IT_IMAGE) - printf "IMAGE=%d", $it->image_id + printf " IMAGE=%d", $it->image_id else + printf " " output $it->what end end if ($it->method != GET_FROM_BUFFER) printf " next=" output $it->method + if ($it->method == GET_FROM_STRING) + printf "[%d]", $it->current.string_pos.charpos + end end printf "\n" if ($it->region_beg_charpos >= 0)