diff options
| author | Paul Eggert | 2012-07-26 01:12:03 -0700 |
|---|---|---|
| committer | Paul Eggert | 2012-07-26 01:12:03 -0700 |
| commit | 1781b9e935bea6cf2905e612da94b70028b25733 (patch) | |
| tree | c03ca850b6186d9cb0370f541b2561167512106b /src/ChangeLog | |
| parent | 3628596ac2be344eb034e22e579a0690571fa8a9 (diff) | |
| download | emacs-1781b9e935bea6cf2905e612da94b70028b25733.tar.gz emacs-1781b9e935bea6cf2905e612da94b70028b25733.zip | |
Simplify export of symbols to GDB; fix related .gdbinit bugs.
* etc/emacs-buffer.gdb ($tagmask, $valmask): Remove.
(ygetptr): Adjust to recent changes in lisp.h and emacs.c,
by using VALMASK instead of $valmask, CHECK_LISP_OBJECT_TYPE
instead of gdb_use_union, and DATA_SEG_BITS instead of
gdb_data_seg_bits. Also, use $ptr.i rather than $ptr.u.val.
* src/.gdbinit (xgetptr, xgetint, xgettype): Don't use "set $bugfix =
$bugfix.i", as this doesn't work (with GDB 7.4.1, anyway).
(xgetptr, xgetint, xgettype, xcoding, xcharset, xprintbytestr):
Adjust to changes in lisp.h and emacs.c, by using
CHECK_LISP_OBJECT_TYPE rather than gdb_use_struct, VALMASK instead
of $valmask, DATA_SEG_BITS instead of gdb_data_seg_bits,
INTTYPEBITS instead of gdb_gctypebits - 1, USE_LSB_TAG instead of
gdb_use_lsb, (1 << GCTYPEBITS) - 1 instead of $tagmask, VALBITS
instead of gdb_valbits.
(xvectype, xvector, xpr, xprintstr, xbacktrace): Similarly, use
PSEUDOVECTOR_FLAG instead of PVEC_FLAG, and ARRAY_MARK_FLAG
instead of gdb_array_mark_flag.
(xboolvector): Get size from $->size, not $->header.size.
Use BOOL_VECTOR_BITS_PER_CHAR rather than mystery constants.
(xreload, hook-run, hookpost-run): Remove.
* src/emacs.c: Include <verify.h>.
(gdb_use_lsb, gdb_use_struct, gdb_valbits, gdb_gctypebits)
(gdb_data_seg_bits, PVEC_FLAG, gdb_array_mark_flag, gdb_pvec_type):
Remove.
(gdb_CHECK_LISP_OBJECT_TYPE, gdb_DATA_SEG_BITS, gdb_GCTYPEBITS)
(gdb_USE_LSB_TAG): New enum constants.
(CHECK_LISP_OBJECT_TYPE, DATA_SEG_BITS, GCTYPEBITS, USE_LSB_TAG):
Also define these as enum constants, so they're visible to GDB.
(ARRAY_MARK_FLAG_VAL, PSEUDOVECTOR_FLAG_VAL, VALMASK_VAL): New macros.
(ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG, VALMASK): Also define these
as constants, so they're visible to GDB.
* src/lisp.h (VALBITS, INTTYPEBITS, FIXNUM_BITS, PSEUDOVECTOR_SIZE_BITS)
(PSEUDOVECTOR_SIZE_MASK, PVEC_TYPE_MASK, BOOL_VECTOR_BITS_PER_CHAR):
Now enum constants, not macros, so they're visible to GDB.
(CHECK_LISP_OBJECT_TYPE, DATA_SEG_BITS): Default to 0, as this is
more convenient now. All uses changed.
(VALMASK) [USE_LSB_TAG]: Also define in this case.
* src/mem-limits.h (EXCEEDS_LISP_PTR): Adjust to DATA_SEG_BITS change.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 3b85ef30795..71fc1056391 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,40 @@ | |||
| 1 | 2012-07-26 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Simplify export of symbols to GDB; fix related .gdbinit bugs. | ||
| 4 | * .gdbinit (xgetptr, xgetint, xgettype): Don't use "set $bugfix = | ||
| 5 | $bugfix.i", as this doesn't work (with GDB 7.4.1, anyway). | ||
| 6 | (xgetptr, xgetint, xgettype, xcoding, xcharset, xprintbytestr): | ||
| 7 | Adjust to changes in lisp.h and emacs.c, by using | ||
| 8 | CHECK_LISP_OBJECT_TYPE rather than gdb_use_struct, VALMASK instead | ||
| 9 | of $valmask, DATA_SEG_BITS instead of gdb_data_seg_bits, | ||
| 10 | INTTYPEBITS instead of gdb_gctypebits - 1, USE_LSB_TAG instead of | ||
| 11 | gdb_use_lsb, (1 << GCTYPEBITS) - 1 instead of $tagmask, VALBITS | ||
| 12 | instead of gdb_valbits. | ||
| 13 | (xvectype, xvector, xpr, xprintstr, xbacktrace): Similarly, use | ||
| 14 | PSEUDOVECTOR_FLAG instead of PVEC_FLAG, and ARRAY_MARK_FLAG | ||
| 15 | instead of gdb_array_mark_flag. | ||
| 16 | (xboolvector): Get size from $->size, not $->header.size. | ||
| 17 | Use BOOL_VECTOR_BITS_PER_CHAR rather than mystery constants. | ||
| 18 | (xreload, hook-run, hookpost-run): Remove. | ||
| 19 | * emacs.c: Include <verify.h>. | ||
| 20 | (gdb_use_lsb, gdb_use_struct, gdb_valbits, gdb_gctypebits) | ||
| 21 | (gdb_data_seg_bits, PVEC_FLAG, gdb_array_mark_flag, gdb_pvec_type): | ||
| 22 | Remove. | ||
| 23 | (gdb_CHECK_LISP_OBJECT_TYPE, gdb_DATA_SEG_BITS, gdb_GCTYPEBITS) | ||
| 24 | (gdb_USE_LSB_TAG): New enum constants. | ||
| 25 | (CHECK_LISP_OBJECT_TYPE, DATA_SEG_BITS, GCTYPEBITS, USE_LSB_TAG): | ||
| 26 | Also define these as enum constants, so they're visible to GDB. | ||
| 27 | (ARRAY_MARK_FLAG_VAL, PSEUDOVECTOR_FLAG_VAL, VALMASK_VAL): New macros. | ||
| 28 | (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG, VALMASK): Also define these | ||
| 29 | as constants, so they're visible to GDB. | ||
| 30 | * lisp.h (VALBITS, INTTYPEBITS, FIXNUM_BITS, PSEUDOVECTOR_SIZE_BITS) | ||
| 31 | (PSEUDOVECTOR_SIZE_MASK, PVEC_TYPE_MASK, BOOL_VECTOR_BITS_PER_CHAR): | ||
| 32 | Now enum constants, not macros, so they're visible to GDB. | ||
| 33 | (CHECK_LISP_OBJECT_TYPE, DATA_SEG_BITS): Default to 0, as this is | ||
| 34 | more convenient now. All uses changed. | ||
| 35 | (VALMASK) [USE_LSB_TAG]: Also define in this case. | ||
| 36 | * mem-limits.h (EXCEEDS_LISP_PTR): Adjust to DATA_SEG_BITS change. | ||
| 37 | |||
| 1 | 2012-07-26 Dmitry Antipov <dmantipov@yandex.ru> | 38 | 2012-07-26 Dmitry Antipov <dmantipov@yandex.ru> |
| 2 | 39 | ||
| 3 | Explicitly free restriction data that are not needed anymore. | 40 | Explicitly free restriction data that are not needed anymore. |