emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r108869: * emacs.c (gdb_pvec_type): C


From: Paul Eggert
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r108869: * emacs.c (gdb_pvec_type): Change it back to enum pvec_type.
Date: Wed, 04 Jul 2012 10:04:09 -0700
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 108869
committer: Paul Eggert <address@hidden>
branch nick: trunk
timestamp: Wed 2012-07-04 10:04:09 -0700
message:
  * 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.
modified:
  src/ChangeLog
  src/emacs.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2012-07-04 16:52:51 +0000
+++ b/src/ChangeLog     2012-07-04 17:04:09 +0000
@@ -1,5 +1,10 @@
 2012-07-04  Paul Eggert  <address@hidden>
 
+       * 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.
 

=== modified file 'src/emacs.c'
--- a/src/emacs.c       2012-07-04 14:38:02 +0000
+++ b/src/emacs.c       2012-07-04 17:04:09 +0000
@@ -119,7 +119,7 @@
 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;


reply via email to

[Prev in Thread] Current Thread [Next in Thread]