OSDN Git Service

Nathanael Nerode <neroden@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git] / gcc / ada / debug.ads
1 ------------------------------------------------------------------------------
2 --                                                                          --
3 --                         GNAT COMPILER COMPONENTS                         --
4 --                                                                          --
5 --                                D E B U G                                 --
6 --                                                                          --
7 --                                 S p e c                                  --
8 --                                                                          --
9 --                                                                          --
10 --          Copyright (C) 1992-2002 Free Software Foundation, Inc.          --
11 --                                                                          --
12 -- GNAT is free software;  you can  redistribute it  and/or modify it under --
13 -- terms of the  GNU General Public License as published  by the Free Soft- --
14 -- ware  Foundation;  either version 2,  or (at your option) any later ver- --
15 -- sion.  GNAT is distributed in the hope that it will be useful, but WITH- --
16 -- OUT ANY WARRANTY;  without even the  implied warranty of MERCHANTABILITY --
17 -- or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License --
18 -- for  more details.  You should have  received  a copy of the GNU General --
19 -- Public License  distributed with GNAT;  see file COPYING.  If not, write --
20 -- to  the Free Software Foundation,  59 Temple Place - Suite 330,  Boston, --
21 -- MA 02111-1307, USA.                                                      --
22 --                                                                          --
23 -- As a special exception,  if other files  instantiate  generics from this --
24 -- unit, or you link  this unit with other files  to produce an executable, --
25 -- this  unit  does not  by itself cause  the resulting  executable  to  be --
26 -- covered  by the  GNU  General  Public  License.  This exception does not --
27 -- however invalidate  any other reasons why  the executable file  might be --
28 -- covered by the  GNU Public License.                                      --
29 --                                                                          --
30 -- GNAT was originally developed  by the GNAT team at  New York University. --
31 -- Extensive contributions were provided by Ada Core Technologies Inc.      --
32 --                                                                          --
33 ------------------------------------------------------------------------------
34
35 package Debug is
36 pragma Preelaborate (Debug);
37
38 --  This package contains global flags used to control the inclusion
39 --  of debugging code in various phases of the compiler. Some of these
40 --  flags are also used by the binder and gnatmake.
41
42    -------------------------
43    -- Dynamic Debug Flags --
44    -------------------------
45
46    --  Sixty two flags that can be used to active various specialized
47    --  debugging output information. The flags are preset to False, which
48    --  corresponds to the given output being suppressed. The individual
49    --  flags can be turned on using the undocumented switch dxxx where
50    --  xxx is a string of letters for flags to be turned on. Documentation
51    --  on the current usage of these flags is contained in the body of Debug
52    --  rather than the spec, so that we don't have to recompile the world
53    --  when a new debug flag is added
54
55    Debug_Flag_A : Boolean := False;
56    Debug_Flag_B : Boolean := False;
57    Debug_Flag_C : Boolean := False;
58    Debug_Flag_D : Boolean := False;
59    Debug_Flag_E : Boolean := False;
60    Debug_Flag_F : Boolean := False;
61    Debug_Flag_G : Boolean := False;
62    Debug_Flag_H : Boolean := False;
63    Debug_Flag_I : Boolean := False;
64    Debug_Flag_J : Boolean := False;
65    Debug_Flag_K : Boolean := False;
66    Debug_Flag_L : Boolean := False;
67    Debug_Flag_M : Boolean := False;
68    Debug_Flag_N : Boolean := False;
69    Debug_Flag_O : Boolean := False;
70    Debug_Flag_P : Boolean := False;
71    Debug_Flag_Q : Boolean := False;
72    Debug_Flag_R : Boolean := False;
73    Debug_Flag_S : Boolean := False;
74    Debug_Flag_T : Boolean := False;
75    Debug_Flag_U : Boolean := False;
76    Debug_Flag_V : Boolean := False;
77    Debug_Flag_W : Boolean := False;
78    Debug_Flag_X : Boolean := False;
79    Debug_Flag_Y : Boolean := False;
80    Debug_Flag_Z : Boolean := False;
81
82    Debug_Flag_AA : Boolean := False;
83    Debug_Flag_BB : Boolean := False;
84    Debug_Flag_CC : Boolean := False;
85    Debug_Flag_DD : Boolean := False;
86    Debug_Flag_EE : Boolean := False;
87    Debug_Flag_FF : Boolean := False;
88    Debug_Flag_GG : Boolean := False;
89    Debug_Flag_HH : Boolean := False;
90    Debug_Flag_II : Boolean := False;
91    Debug_Flag_JJ : Boolean := False;
92    Debug_Flag_KK : Boolean := False;
93    Debug_Flag_LL : Boolean := False;
94    Debug_Flag_MM : Boolean := False;
95    Debug_Flag_NN : Boolean := False;
96    Debug_Flag_OO : Boolean := False;
97    Debug_Flag_PP : Boolean := False;
98    Debug_Flag_QQ : Boolean := False;
99    Debug_Flag_RR : Boolean := False;
100    Debug_Flag_SS : Boolean := False;
101    Debug_Flag_TT : Boolean := False;
102    Debug_Flag_UU : Boolean := False;
103    Debug_Flag_VV : Boolean := False;
104    Debug_Flag_WW : Boolean := False;
105    Debug_Flag_XX : Boolean := False;
106    Debug_Flag_YY : Boolean := False;
107    Debug_Flag_ZZ : Boolean := False;
108
109    Debug_Flag_1 : Boolean := False;
110    Debug_Flag_2 : Boolean := False;
111    Debug_Flag_3 : Boolean := False;
112    Debug_Flag_4 : Boolean := False;
113    Debug_Flag_5 : Boolean := False;
114    Debug_Flag_6 : Boolean := False;
115    Debug_Flag_7 : Boolean := False;
116    Debug_Flag_8 : Boolean := False;
117    Debug_Flag_9 : Boolean := False;
118
119    function Get_Debug_Flag_K return Boolean;
120    --  This function is called from C code to get the setting of the K flag
121    --  (it does not work to try to access a constant object directly).
122
123    procedure Set_Debug_Flag (C : Character; Val : Boolean := True);
124    --  Where C is 0-9, A-Z, or a-z, sets the corresponding debug flag to
125    --  the given value. In the checks off version of debug, the call to
126    --  Set_Debug_Flag is always a null operation.
127
128 end Debug;