]> git.eshelyaron.com Git - emacs.git/commitdiff
* emacs.c (gdb_pvec_type): Change it back to enum pvec_type.
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 4 Jul 2012 17:04:09 +0000 (10:04 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 4 Jul 2012 17:04:09 +0000 (10:04 -0700)
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.

src/ChangeLog
src/emacs.c

index 7f81f1e6b6828c67108c3308a2117fec159962bc..06f9f9370a0d687680943fd6ebaeada261ae5d5d 100644 (file)
@@ -1,5 +1,10 @@
 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * 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.
+
        * alloc.c (PSEUDOVECTOR_NBYTES): Remove stray ';'
        that causes compilation to fail on pre-C99 compilers.
 
index 143a44e084737ee50776d3d9ac42fea77eb5aa2b..861c19ee0b5fe74c658d0de131744e9f32a5c244 100644 (file)
@@ -119,7 +119,7 @@ ptrdiff_t PVEC_FLAG EXTERNALLY_VISIBLE = PSEUDOVECTOR_FLAG;
 ptrdiff_t gdb_array_mark_flag EXTERNALLY_VISIBLE = ARRAY_MARK_FLAG;
 /* GDB might say "No enum type named pvec_type" if we don't have at
    least one symbol with that type, and then xbacktrace could fail.  */
-ptrdiff_t gdb_pvec_type EXTERNALLY_VISIBLE = PVEC_TYPE_MASK;
+enum pvec_type const gdb_pvec_type EXTERNALLY_VISIBLE = 0;
 
 /* Empty lisp strings.  To avoid having to build any others.  */
 Lisp_Object empty_unibyte_string, empty_multibyte_string;