aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2018-01-02 22:38:01 -0800
committerPaul Eggert2018-01-02 22:38:48 -0800
commitf8b4e87d5d4f57954b50677add76ce5136211dc1 (patch)
tree81010e4c0ec9f1bca24c53fd19280371f80c754b /src
parentb6add8c7cfc6d36f9dd8ad99be06bd8ab41cc6f8 (diff)
downloademacs-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/.gdbinit6
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
53end 53end
54 54
55define xgetint 55define 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
62end 62end
63 63
64define xgettype 64define 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)
71end 71end
72 72
73define xgetsym 73define xgetsym