mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-25 14:27:34 +00:00
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.
This commit is contained in:
parent
a73e4f53ab
commit
a37166eb80
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue