aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/.gdbinit4
-rw-r--r--src/ChangeLog3
2 files changed, 6 insertions, 1 deletions
diff --git a/src/.gdbinit b/src/.gdbinit
index 74dbd7a4197..7cd828733b1 100644
--- a/src/.gdbinit
+++ b/src/.gdbinit
@@ -1259,7 +1259,9 @@ end
1259 1259
1260define xreload 1260define xreload
1261 set $tagmask = (((long)1 << gdb_gctypebits) - 1) 1261 set $tagmask = (((long)1 << gdb_gctypebits) - 1)
1262 set $valmask = gdb_use_lsb ? ~($tagmask) : ((long)1 << gdb_valbits) - 1 1262 # The consing_since_gc business widens the 1 to EMACS_INT,
1263 # a symbol not directly visible to GDB.
1264 set $valmask = gdb_use_lsb ? ~($tagmask) : ((consing_since_gc - consing_since_gc + 1) << gdb_valbits) - 1
1263end 1265end
1264document xreload 1266document xreload
1265 When starting Emacs a second time in the same gdb session under 1267 When starting Emacs a second time in the same gdb session under
diff --git a/src/ChangeLog b/src/ChangeLog
index 911799b2bd2..bd376e9b855 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,8 @@
12012-02-20 Paul Eggert <eggert@cs.ucla.edu> 12012-02-20 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 * .gdbinit (xreload): Don't assume EMACS_INT fits in 'long'
4 when computing $valmask.
5
3 Fix crash due to non-contiguous EMACS_INT (Bug#10780). 6 Fix crash due to non-contiguous EMACS_INT (Bug#10780).
4 * lisp.h (VALBITS): Move definition up, so that USE_LSB_TAG can use it. 7 * lisp.h (VALBITS): Move definition up, so that USE_LSB_TAG can use it.
5 (USE_LSB_TAG): Do not define if UINTPTR_MAX >> VALBITS == 0. 8 (USE_LSB_TAG): Do not define if UINTPTR_MAX >> VALBITS == 0.