diff options
| author | Paul Eggert | 2018-01-02 22:38:01 -0800 |
|---|---|---|
| committer | Paul Eggert | 2018-01-02 22:38:48 -0800 |
| commit | f8b4e87d5d4f57954b50677add76ce5136211dc1 (patch) | |
| tree | 81010e4c0ec9f1bca24c53fd19280371f80c754b /src | |
| parent | b6add8c7cfc6d36f9dd8ad99be06bd8ab41cc6f8 (diff) | |
| download | emacs-f8b4e87d5d4f57954b50677add76ce5136211dc1.tar.gz emacs-f8b4e87d5d4f57954b50677add76ce5136211dc1.zip | |
Fix .gdbinit to work with Lisp_Word
Problem reported by Stefan Monnier (Bug#29957).
* src/.gdbinit (xgetptr, xgetint, xgettype):
Cast Lisp_Word value to EMACS_INT, since it might be a pointer now.
Diffstat (limited to 'src')
| -rw-r--r-- | src/.gdbinit | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/.gdbinit b/src/.gdbinit index de35ef1be70..a5411e66d56 100644 --- a/src/.gdbinit +++ b/src/.gdbinit | |||
| @@ -49,7 +49,7 @@ define xgetptr | |||
| 49 | else | 49 | else |
| 50 | set $bugfix = $arg0 | 50 | set $bugfix = $arg0 |
| 51 | end | 51 | end |
| 52 | set $ptr = $bugfix & VALMASK | 52 | set $ptr = (EMACS_INT) $bugfix & VALMASK |
| 53 | end | 53 | end |
| 54 | 54 | ||
| 55 | define xgetint | 55 | define xgetint |
| @@ -58,7 +58,7 @@ define xgetint | |||
| 58 | else | 58 | else |
| 59 | set $bugfix = $arg0 | 59 | set $bugfix = $arg0 |
| 60 | end | 60 | end |
| 61 | set $int = $bugfix << (USE_LSB_TAG ? 0 : INTTYPEBITS) >> INTTYPEBITS | 61 | set $int = (EMACS_INT) $bugfix << (USE_LSB_TAG ? 0 : INTTYPEBITS) >> INTTYPEBITS |
| 62 | end | 62 | end |
| 63 | 63 | ||
| 64 | define xgettype | 64 | define xgettype |
| @@ -67,7 +67,7 @@ define xgettype | |||
| 67 | else | 67 | else |
| 68 | set $bugfix = $arg0 | 68 | set $bugfix = $arg0 |
| 69 | end | 69 | end |
| 70 | set $type = (enum Lisp_Type) (USE_LSB_TAG ? $bugfix & (1 << GCTYPEBITS) - 1 : (EMACS_UINT) $bugfix >> VALBITS) | 70 | set $type = (enum Lisp_Type) (USE_LSB_TAG ? (EMACS_INT) $bugfix & (1 << GCTYPEBITS) - 1 : (EMACS_UINT) $bugfix >> VALBITS) |
| 71 | end | 71 | end |
| 72 | 72 | ||
| 73 | define xgetsym | 73 | define xgetsym |