~ubuntu-branches/ubuntu/quantal/libgc/quantal

« back to all changes in this revision

Viewing changes to include/private/dbg_mlc.h

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Egger
  • Date: 2011-02-19 12:19:56 UTC
  • mfrom: (1.3.2 upstream) (0.1.5 experimental)
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: james.westby@ubuntu.com-20110219121956-67rb69xlt5nud3v2
Tags: 1:7.1-5
Upload to unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
  /* get them anyway.                                                   */
39
39
    typedef GC_word GC_hidden_pointer;
40
40
#   define HIDE_POINTER(p) (~(GC_hidden_pointer)(p))
41
 
#   define REVEAL_POINTER(p) ((GC_PTR)(HIDE_POINTER(p)))
 
41
#   define REVEAL_POINTER(p) ((void *)(HIDE_POINTER(p)))
42
42
#endif /* HIDE_POINTER */
43
43
 
44
44
# define START_FLAG ((word)0xfedcedcb)
95
95
#       ifdef MAKE_BACK_GRAPH
96
96
          GC_hidden_pointer oh_bg_ptr;
97
97
#       endif
98
 
#       if defined(ALIGN_DOUBLE) && \
99
 
            (defined(KEEP_BACK_PTRS) != defined(MAKE_BACK_GRAPH))
 
98
#       if defined(KEEP_BACK_PTRS) != defined(MAKE_BACK_GRAPH)
 
99
          /* Keep double-pointer-sized alignment.       */
100
100
          word oh_dummy;
101
101
#       endif
102
102
#   endif
103
 
    GC_CONST char * oh_string;  /* object descriptor string     */
 
103
    const char * oh_string;     /* object descriptor string     */
104
104
    word oh_int;                /* object descriptor integers   */
105
105
#   ifdef NEED_CALLINFO
106
106
      struct callinfo oh_ci[NFRAMES];
132
132
/* lock.                                                        */
133
133
/* PRINT_CALL_CHAIN prints the call chain stored in an object   */
134
134
/* to stderr.  It requires that we do not hold the lock.        */
135
 
#ifdef SAVE_CALL_CHAIN
 
135
#if defined(SAVE_CALL_CHAIN)
 
136
    struct callinfo;
 
137
    void GC_save_callers(struct callinfo info[NFRAMES]);
 
138
    void GC_print_callers(struct callinfo info[NFRAMES]);
136
139
#   define ADD_CALL_CHAIN(base, ra) GC_save_callers(((oh *)(base)) -> oh_ci)
137
140
#   define PRINT_CALL_CHAIN(base) GC_print_callers(((oh *)(base)) -> oh_ci)
138
 
#else
139
 
# ifdef GC_ADD_CALLER
 
141
#elif defined(GC_ADD_CALLER)
 
142
    struct callinfo;
 
143
    void GC_print_callers(struct callinfo info[NFRAMES]);
140
144
#   define ADD_CALL_CHAIN(base, ra) ((oh *)(base)) -> oh_ci[0].ci_pc = (ra)
141
145
#   define PRINT_CALL_CHAIN(base) GC_print_callers(((oh *)(base)) -> oh_ci)
142
 
# else
 
146
#else
143
147
#   define ADD_CALL_CHAIN(base, ra)
144
148
#   define PRINT_CALL_CHAIN(base)
145
 
# endif
146
149
#endif
147
150
 
148
151
# ifdef GC_ADD_CALLER