mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-03 02:31:03 -08:00
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.
This commit is contained in:
parent
2d2f658128
commit
cb3a28cc90
4 changed files with 13 additions and 2 deletions
|
|
@ -78,7 +78,9 @@ set $yverbose = 1
|
|||
set $yfile_buffers_only = 0
|
||||
|
||||
set $tagmask = (((long)1 << gdb_gctypebits) - 1)
|
||||
set $valmask = gdb_use_lsb ? ~($tagmask) : ((long)1 << gdb_valbits) - 1
|
||||
# The consing_since_gc business widens the 1 to EMACS_INT,
|
||||
# a symbol not directly visible to GDB.
|
||||
set $valmask = gdb_use_lsb ? ~($tagmask) : ((consing_since_gc - consing_since_gc + 1) << gdb_valbits) - 1
|
||||
|
||||
define ygetptr
|
||||
set $ptr = $arg0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue