diff options
| -rw-r--r-- | etc/emacs-buffer.gdb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/etc/emacs-buffer.gdb b/etc/emacs-buffer.gdb index cdcb666df61..8f6c321c05b 100644 --- a/etc/emacs-buffer.gdb +++ b/etc/emacs-buffer.gdb | |||
| @@ -33,7 +33,7 @@ | |||
| 33 | # 'ysave-buffer', and 'ybuffer-contents'. The 'y' prefix avoids any | 33 | # 'ysave-buffer', and 'ybuffer-contents'. The 'y' prefix avoids any |
| 34 | # namespace collisions with emacs/src/.gdbinit. | 34 | # namespace collisions with emacs/src/.gdbinit. |
| 35 | 35 | ||
| 36 | # Since the internal data structures in Emacs occasionally from time to | 36 | # Since the internal data structures in Emacs change from time to |
| 37 | # time, you should use the version of this file that came with your | 37 | # time, you should use the version of this file that came with your |
| 38 | # particular Emacs version; older versions might not work anymore. | 38 | # particular Emacs version; older versions might not work anymore. |
| 39 | 39 | ||
| @@ -213,8 +213,12 @@ define ydump-buffer | |||
| 213 | set $endptr = $beg + $buf->gpt_byte - 1 | 213 | set $endptr = $beg + $buf->gpt_byte - 1 |
| 214 | dump binary memory $arg1 $beg $endptr | 214 | dump binary memory $arg1 $beg $endptr |
| 215 | else | 215 | else |
| 216 | dump binary memory $arg1 $beg $gap-1 | 216 | if $gap - $beg > 1 |
| 217 | append binary memory $arg1 $gap_end $end | 217 | dump binary memory $arg1 $beg $gap-1 |
| 218 | append binary memory $arg1 $gap_end $end | ||
| 219 | else | ||
| 220 | dump binary memory $arg1 $gap_end $end | ||
| 221 | end | ||
| 218 | set $endptr = $end | 222 | set $endptr = $end |
| 219 | end | 223 | end |
| 220 | end | 224 | end |