From: Paul Eggert Date: Sun, 27 May 2018 00:32:56 +0000 (-0700) Subject: Port .gdbinit to unsigned-pointer platforms X-Git-Tag: emacs-27.0.90~4984 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a37166eb80458e87880893e7b8aa98a2a7ce394b;p=emacs.git Port .gdbinit to unsigned-pointer platforms * src/.gdbinit (Lisp_Object_Printer.to_string): Don’t assume that GDB treats C pointers as signed integers. Problem found with GDB Fedora 8.1-15.fc28. --- diff --git a/src/.gdbinit b/src/.gdbinit index eb4d57a5fbb..7a0cf02ea13 100644 --- a/src/.gdbinit +++ b/src/.gdbinit @@ -1355,7 +1355,7 @@ if hasattr(gdb, 'printing'): if itype == Lisp_Int0 or itype == Lisp_Int1: if USE_LSB_TAG: ival = ival >> (GCTYPEBITS - 1) - elif (ival >> VALBITS) & 1: + if (ival >> VALBITS) & 1: ival = ival | (-1 << VALBITS) else: ival = ival & ((1 << VALBITS) - 1)