projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a73e4f5
)
Port .gdbinit to unsigned-pointer platforms
author
Paul Eggert
<eggert@cs.ucla.edu>
Sun, 27 May 2018 00:32:56 +0000
(17:32 -0700)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Sun, 27 May 2018 00:33:21 +0000
(17:33 -0700)
* 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.
src/.gdbinit
patch
|
blob
|
history
diff --git
a/src/.gdbinit
b/src/.gdbinit
index eb4d57a5fbbd15ed2242c96dc56c300a006411b6..7a0cf02ea13a88a317c698e2df7a934d747160c5 100644
(file)
--- 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)
-
el
if (ival >> VALBITS) & 1:
+ if (ival >> VALBITS) & 1:
ival = ival | (-1 << VALBITS)
else:
ival = ival & ((1 << VALBITS) - 1)