X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/c243bc792c65a94733ecdbfa2aa7f5a38a76885e..c5e4379cef494adeed3ce4ba3c610819c088cda8:/etc/emacs-buffer.gdb diff --git a/etc/emacs-buffer.gdb b/etc/emacs-buffer.gdb index 1378e5b81f..80f69c585d 100644 --- a/etc/emacs-buffer.gdb +++ b/etc/emacs-buffer.gdb @@ -1,6 +1,6 @@ # emacs-buffer.gdb --- gdb macros for recovering buffers from emacs coredumps -# Copyright (C) 2005, 06, 2011 Free Software Foundation, Inc. +# Copyright (C) 2005-2012 Free Software Foundation, Inc. # Maintainer: Noah Friedman # Created: 2005-04-28 @@ -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