X-Git-Url: https://git.hcoop.net/bpt/emacs.git/blobdiff_plain/3628596ac2be344eb034e22e579a0690571fa8a9..1781b9e935bea6cf2905e612da94b70028b25733:/etc/emacs-buffer.gdb diff --git a/etc/emacs-buffer.gdb b/etc/emacs-buffer.gdb index 80f69c585d..f2584a2f50 100644 --- a/etc/emacs-buffer.gdb +++ b/etc/emacs-buffer.gdb @@ -70,21 +70,16 @@ # Code: -# Force loading of symbols, enough to give us gdb_valbits etc. +# Force loading of symbols, enough to give us VALMASK etc. set main # When nonzero, display some extra diagnostics in various commands set $yverbose = 1 set $yfile_buffers_only = 0 -set $tagmask = (((long)1 << gdb_gctypebits) - 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 - set $ptr = (gdb_use_union ? $ptr.u.val : $ptr & $valmask) | gdb_data_seg_bits + set $ptr = ((CHECK_LISP_OBJECT_TYPE ? $ptr.i : $ptr) & VALMASK) | DATA_SEG_BITS end define ybuffer-list