X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/6e9ddbb313cf7db66550f93a74cbba12e39e93c0..844de5015c8d5861af5daa83e75d6db74510fad4:/etc/emacs-buffer.gdb diff --git a/etc/emacs-buffer.gdb b/etc/emacs-buffer.gdb index 2bd2fa2379..cdcb666df6 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-2012 Free Software Foundation, Inc. +# Copyright (C) 2005-2015 Free Software Foundation, Inc. # Maintainer: Noah Friedman # Created: 2005-04-28 @@ -29,8 +29,8 @@ # The Emacs executable must have debugging symbols for this to work. # But you never strip Emacs, right? # -# The main commands of interest are `ybuffer-list', `yfile-buffers', -# `ysave-buffer', and `ybuffer-contents'. The `y' prefix avoids any +# The main commands of interest are 'ybuffer-list', 'yfile-buffers', +# 'ysave-buffer', and 'ybuffer-contents'. The 'y' prefix avoids any # namespace collisions with emacs/src/.gdbinit. # Since the internal data structures in Emacs occasionally from time to @@ -70,19 +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) -set $valmask = gdb_use_lsb ? ~($tagmask) : ((long)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 end define ybuffer-list @@ -132,7 +129,7 @@ end document ybuffer-list Display a list of buffer names, sizes, and other attributes. The buffer number in the first column is used as an argument - to some other emacs-buffer recovery commands, e.g. `ysave-buffer'. + to some other emacs-buffer recovery commands, e.g. 'ysave-buffer'. end define yfile-buffers @@ -141,7 +138,7 @@ define yfile-buffers end document yfile-buffers Display a list of buffers which are associated with files. - This is like `ybuffer-list', but only buffers that were visiting files + This is like 'ybuffer-list', but only buffers that were visiting files are displayed. end @@ -168,7 +165,7 @@ define yset-buffer end document yset-buffer Set current buffer (for other emacs-buffer recovery commands) to the ARG'th - buffer as displayed by `ybuffer-list'. + buffer as displayed by 'ybuffer-list'. end define yget-buffer-pointers @@ -187,9 +184,9 @@ define yget-buffer-pointers end document yget-buffer-pointers Update convenience variables with address pointers for the ARG'th buffer - as displayed by `ybuffer-list'. + as displayed by 'ybuffer-list'. - This also sets the current buffer using `yset-buffer' (which see). + This also sets the current buffer using 'yset-buffer' (which see). end define yget-current-buffer-name @@ -223,11 +220,11 @@ define ydump-buffer end end document ydump-buffer - Write contents of buffer N (as numbered according to `ybuffer-list') to + Write contents of buffer N (as numbered according to 'ybuffer-list') to file FILE. - This is mainly used as an internal subroutine for `ysave-buffer' and - `ybuffer-contents', which see. + This is mainly used as an internal subroutine for 'ysave-buffer' and + 'ybuffer-contents', which see. end define ysave-buffer @@ -245,7 +242,7 @@ define ysave-buffer end end document ysave-buffer - Save contents of buffer N (as numbered according to `ybuffer-list') to + Save contents of buffer N (as numbered according to 'ybuffer-list') to file FILE. end @@ -261,7 +258,7 @@ define ybuffer-contents end end document ybuffer-contents - Write contents of buffer N (numbered according to `ybuffer-list') to stdout. + Write contents of buffer N (numbered according to 'ybuffer-list') to stdout. end # local variables: