diff options
| author | Paul Eggert | 2012-02-20 16:07:53 -0800 |
|---|---|---|
| committer | Paul Eggert | 2012-02-20 16:07:53 -0800 |
| commit | cb3a28cc909e79244a477dcc357e38da658a8992 (patch) | |
| tree | f782cc1941a9aa4fde43789f81ec0ba00b9ad3c4 /src | |
| parent | 2d2f6581283113ad4c806e7f176724e7d3013172 (diff) | |
| download | emacs-cb3a28cc909e79244a477dcc357e38da658a8992.tar.gz emacs-cb3a28cc909e79244a477dcc357e38da658a8992.zip | |
In GDB scripts, don't assume that EMACS_INT fits in long.
* etc/emacs-buffer.gdb ($valmask): Don't assume EMACS_INT fits in 'long'.
* src/.gdbinit (xreload): Likewise.
Diffstat (limited to 'src')
| -rw-r--r-- | src/.gdbinit | 4 | ||||
| -rw-r--r-- | src/ChangeLog | 3 |
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 | ||
| 1260 | define xreload | 1260 | define 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 | ||
| 1263 | end | 1265 | end |
| 1264 | document xreload | 1266 | document 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 @@ | |||
| 1 | 2012-02-20 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2012-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. |