diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2018-05-26 17:32:56 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2018-05-26 17:33:21 -0700 |
commit | a37166eb80458e87880893e7b8aa98a2a7ce394b (patch) | |
tree | 3da777490cf334a18d3e1b700dd3ad740ef1052e /src/.gdbinit | |
parent | a73e4f53ab86c69fdb8f5869173d6693d73e6fb2 (diff) | |
download | emacs-a37166eb80458e87880893e7b8aa98a2a7ce394b.tar.gz |
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.
Diffstat (limited to 'src/.gdbinit')
-rw-r--r-- | src/.gdbinit | 2 |
1 files changed, 1 insertions, 1 deletions
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) |