Subversion Repositories tendra.SVN

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 7u83 1
/*
2
    		 Crown Copyright (c) 1997
3
 
4
    This TenDRA(r) Computer Program is subject to Copyright
5
    owned by the United Kingdom Secretary of State for Defence
6
    acting through the Defence Evaluation and Research Agency
7
    (DERA).  It is made available to Recipients with a
8
    royalty-free licence for its use, reproduction, transfer
9
    to other parties and amendment for any purpose not excluding
10
    product development provided that any such use et cetera
11
    shall be deemed to be acceptance of the following conditions:-
12
 
13
        (1) Its Recipients shall ensure that this Notice is
14
        reproduced upon any copies or amended versions of it;
15
 
16
        (2) Any amended version of it shall be clearly marked to
17
        show both the nature of and the organisation responsible
18
        for the relevant amendment or amendments;
19
 
20
        (3) Its onward transfer from a recipient to another
21
        party shall be deemed to be that party's acceptance of
22
        these conditions;
23
 
24
        (4) DERA gives no warranty or assurance as to its
25
        quality or suitability for any purpose and DERA accepts
26
        no liability whatsoever in relation to any use to which
27
        it may be put.
28
*/
29
 
30
 
31
/* sol86/diag_config.h */
32
 
33
/**********************************************************************
34
$Author: release $
35
$Date: 1998/01/17 15:55:52 $
36
$Revision: 1.1.1.1 $
37
$Log: diag_config.h,v $
38
 * Revision 1.1.1.1  1998/01/17  15:55:52  release
39
 * First version to be checked into rolling release.
40
 *
41
 * Revision 1.9  1998/01/09  14:47:46  pwe
42
 * prep restructure
43
 *
44
 * Revision 1.8  1997/10/23  09:37:26  pwe
45
 * extra_diags
46
 *
47
 * Revision 1.7  1997/08/23  13:46:01  pwe
48
 * initial ANDF-DE
49
 *
50
 * Revision 1.6  1997/04/02  10:33:40  pwe
51
 * diagnose pl_tests
52
 *
53
 * Revision 1.5  1997/03/20  16:24:32  pwe
54
 * dwarf2
55
 *
56
 * Revision 1.4  1995/03/17  18:31:25  pwe
57
 * stabs diagnostics for solaris and linux
58
 *
59
 * Revision 1.3  1995/01/30  12:57:35  pwe
60
 * Ownership -> PWE, tidy banners
61
 *
62
 * Revision 1.2  1994/07/13  07:46:54  jmf
63
 * Added Log
64
 *
65
**********************************************************************/
66
 
67
#ifndef diag_config_key
68
#define diag_config_key
69
 
70
 
71
typedef long OUTPUT_REC ;
72
 
73
#ifdef NEWDIAGS
74
 
75
extern int dwarf2;
76
extern void dw2_proc_start PROTO_S ((exp p, dg_name d));
77
extern void dw2_proc_end PROTO_S ((exp p));
78
extern void dw2_code_info PROTO_S ((dg_info d, void (*mcode)(void *), void * args));
79
extern void dw2_start_basic_block PROTO_S ((void));
80
 
81
extern void code_diag_info PROTO_S ((diag_info * d, void (*mcode)(void *), void * args));
82
extern void out_diag_global PROTO_S ((dg_name di, int global, int cname, char* pname));
83
extern void diag_proc_begin PROTO_S ((dg_name di, int global, int cname, char* pname));
84
extern void diag_proc_end PROTO_S ((void));
85
 
86
 
87
 
88
#define DIAG_VAL_BEGIN(d,g,c,s)	if (!dwarf2) \
89
				  out_diag_global (d, g, c, s);
90
 
91
#define DIAG_VAL_END(d)	
92
 
93
#define DIAG_PROC_BEGIN(d,g,c,s,p) if (dwarf2) \
94
				  dw2_proc_start (p, d);\
95
				else \
96
				  diag_proc_begin (d, g, c, s);
97
 
98
#define DIAG_PROC_END(d,p)	if (dwarf2) \
99
				  dw2_proc_end (p);\
100
				else \
101
				  diag_proc_end ();
102
 
103
#define CODE_DIAG_INFO(d,n,x,a)	if (dwarf2) \
104
				  dw2_code_info (d, x, a);\
105
				else \
106
				  code_diag_info (d, x, a);
107
 
108
 
109
#define START_BB()		if (dwarf2) \
110
				  dw2_start_basic_block ();
111
 
112
 
113
#else
114
 
115
#define INSPECT_FILENAME( x )	stab_collect_files ( x )
116
#define NEW_DIAG_GLOBAL( x )	( x )
117
#define OUTPUT_DIAG_TAGS()	stab_tagdefs ()
118
#define OUTPUT_GLOBALS_TAB()	stab_typedefs ()
119
 
120
extern void stab_collect_files PROTO_S ((dg_filename f));
121
extern void stab_tagdefs PROTO_S((void));
122
extern void stab_typedefs PROTO_S((void));
123
 
124
#endif
125
 
126
#define STABS
127
 
128
extern void init_stab_aux PROTO_S((void));
129
 
130
#endif