diff options
| author | Paul Eggert | 2012-07-27 13:50:02 -0700 |
|---|---|---|
| committer | Paul Eggert | 2012-07-27 13:50:02 -0700 |
| commit | c20fdd9eb75e484e12382494e4fb8931c753361b (patch) | |
| tree | 16ac14d6583363cb4f1bec13ec313960d48c4725 /src | |
| parent | cc436baac4522c48cd083a20f9e6a653f58e331f (diff) | |
| download | emacs-c20fdd9eb75e484e12382494e4fb8931c753361b.tar.gz emacs-c20fdd9eb75e484e12382494e4fb8931c753361b.zip | |
Adjust GDB to reflect pvec_type changes.
* .gdbinit (xvectype, xpr, xbacktrace): Adjust to reflect the
2012-07-04 changes to pseudovector representation. Problem
reported by Eli Zaretskii in <http://bugs.gnu.org/1995-05-30T23:07:27Z!kwzh@gnu.org#30>.
Diffstat (limited to 'src')
| -rw-r--r-- | src/.gdbinit | 14 | ||||
| -rw-r--r-- | src/ChangeLog | 7 |
2 files changed, 18 insertions, 3 deletions
diff --git a/src/.gdbinit b/src/.gdbinit index 25b555b8540..620ca63a0d6 100644 --- a/src/.gdbinit +++ b/src/.gdbinit | |||
| @@ -653,7 +653,11 @@ end | |||
| 653 | define xvectype | 653 | define xvectype |
| 654 | xgetptr $ | 654 | xgetptr $ |
| 655 | set $size = ((struct Lisp_Vector *) $ptr)->header.size | 655 | set $size = ((struct Lisp_Vector *) $ptr)->header.size |
| 656 | output ($size & PSEUDOVECTOR_FLAG) ? (enum pvec_type) ($size & PVEC_TYPE_MASK) : $size & ~ARRAY_MARK_FLAG | 656 | if ($size & PSEUDOVECTOR_FLAG) |
| 657 | output (enum pvec_type) (($size & PVEC_TYPE_MASK) >> PSEUDOVECTOR_SIZE_BITS) | ||
| 658 | else | ||
| 659 | output $size & ~ARRAY_MARK_FLAG | ||
| 660 | end | ||
| 657 | echo \n | 661 | echo \n |
| 658 | end | 662 | end |
| 659 | document xvectype | 663 | document xvectype |
| @@ -992,7 +996,7 @@ define xpr | |||
| 992 | if $type == Lisp_Vectorlike | 996 | if $type == Lisp_Vectorlike |
| 993 | set $size = ((struct Lisp_Vector *) $ptr)->header.size | 997 | set $size = ((struct Lisp_Vector *) $ptr)->header.size |
| 994 | if ($size & PSEUDOVECTOR_FLAG) | 998 | if ($size & PSEUDOVECTOR_FLAG) |
| 995 | set $vec = (enum pvec_type) ($size & PVEC_TYPE_MASK) | 999 | set $vec = (enum pvec_type) (($size & PVEC_TYPE_MASK) >> PSEUDOVECTOR_SIZE_BITS) |
| 996 | if $vec == PVEC_NORMAL_VECTOR | 1000 | if $vec == PVEC_NORMAL_VECTOR |
| 997 | xvector | 1001 | xvector |
| 998 | end | 1002 | end |
| @@ -1127,7 +1131,11 @@ define xbacktrace | |||
| 1127 | if $type == Lisp_Vectorlike | 1131 | if $type == Lisp_Vectorlike |
| 1128 | xgetptr (*$bt->function) | 1132 | xgetptr (*$bt->function) |
| 1129 | set $size = ((struct Lisp_Vector *) $ptr)->header.size | 1133 | set $size = ((struct Lisp_Vector *) $ptr)->header.size |
| 1130 | output ($size & PSEUDOVECTOR_FLAG) ? (enum pvec_type) ($size & PVEC_TYPE_MASK) : $size & ~ARRAY_MARK_FLAG | 1134 | if ($size & PSEUDOVECTOR_FLAG) |
| 1135 | output (enum pvec_type) (($size & PVEC_TYPE_MASK) >> PSEUDOVECTOR_SIZE_BITS) | ||
| 1136 | else | ||
| 1137 | output $size & ~ARRAY_MARK_FLAG | ||
| 1138 | end | ||
| 1131 | else | 1139 | else |
| 1132 | printf "Lisp type %d", $type | 1140 | printf "Lisp type %d", $type |
| 1133 | end | 1141 | end |
diff --git a/src/ChangeLog b/src/ChangeLog index 392e25398db..42b92de5c26 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2012-07-27 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Adjust GDB to reflect pvec_type changes (Bug#12036). | ||
| 4 | * .gdbinit (xvectype, xpr, xbacktrace): Adjust to reflect the | ||
| 5 | 2012-07-04 changes to pseudovector representation. Problem | ||
| 6 | reported by Eli Zaretskii in <http://bugs.gnu.org/12036#30>. | ||
| 7 | |||
| 1 | 2012-07-27 Michael Albinus <michael.albinus@gmx.de> | 8 | 2012-07-27 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 9 | ||
| 3 | * dbusbind.c (XD_DBUS_VALIDATE_BUS_ADDRESS): Canonicalize session | 10 | * dbusbind.c (XD_DBUS_VALIDATE_BUS_ADDRESS): Canonicalize session |