aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2012-07-04 10:04:09 -0700
committerPaul Eggert2012-07-04 10:04:09 -0700
commit065c9eb405d6b80fa96630a6f4b9c76dc6ab0486 (patch)
tree4d9628dd1641722ac64713f998f38105a533af1c /src
parent356e7178d24ca37e1b75c68489117001229725fe (diff)
downloademacs-065c9eb405d6b80fa96630a6f4b9c76dc6ab0486.tar.gz
emacs-065c9eb405d6b80fa96630a6f4b9c76dc6ab0486.zip
* emacs.c (gdb_pvec_type): Change it back to enum pvec_type.
This variable's comment says Emacs needs at least one GDB-visible symbol of type enum pvec_type, to work around GDB problems. The symbol's value doesn't matter.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/emacs.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 7f81f1e6b68..06f9f9370a0 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,10 @@
12012-07-04 Paul Eggert <eggert@cs.ucla.edu> 12012-07-04 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 * emacs.c (gdb_pvec_type): Change it back to enum pvec_type.
4 This variable's comment says Emacs needs at least one GDB-visible
5 symbol of type enum pvec_type, to work around GDB problems.
6 The symbol's value doesn't matter.
7
3 * alloc.c (PSEUDOVECTOR_NBYTES): Remove stray ';' 8 * alloc.c (PSEUDOVECTOR_NBYTES): Remove stray ';'
4 that causes compilation to fail on pre-C99 compilers. 9 that causes compilation to fail on pre-C99 compilers.
5 10
diff --git a/src/emacs.c b/src/emacs.c
index 143a44e0847..861c19ee0b5 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -119,7 +119,7 @@ ptrdiff_t PVEC_FLAG EXTERNALLY_VISIBLE = PSEUDOVECTOR_FLAG;
119ptrdiff_t gdb_array_mark_flag EXTERNALLY_VISIBLE = ARRAY_MARK_FLAG; 119ptrdiff_t gdb_array_mark_flag EXTERNALLY_VISIBLE = ARRAY_MARK_FLAG;
120/* GDB might say "No enum type named pvec_type" if we don't have at 120/* GDB might say "No enum type named pvec_type" if we don't have at
121 least one symbol with that type, and then xbacktrace could fail. */ 121 least one symbol with that type, and then xbacktrace could fail. */
122ptrdiff_t gdb_pvec_type EXTERNALLY_VISIBLE = PVEC_TYPE_MASK; 122enum pvec_type const gdb_pvec_type EXTERNALLY_VISIBLE = 0;
123 123
124/* Empty lisp strings. To avoid having to build any others. */ 124/* Empty lisp strings. To avoid having to build any others. */
125Lisp_Object empty_unibyte_string, empty_multibyte_string; 125Lisp_Object empty_unibyte_string, empty_multibyte_string;