xref: /dflybsd-src/contrib/gdb-7/gdb/ada-lang.h (revision 5796c8dc12c637f18a1740c26afd8d40ffa9b719)
1*5796c8dcSSimon Schubert /* Ada language support definitions for GDB, the GNU debugger.
2*5796c8dcSSimon Schubert 
3*5796c8dcSSimon Schubert    Copyright (C) 1992, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
4*5796c8dcSSimon Schubert    2007, 2008, 2009 Free Software Foundation, Inc.
5*5796c8dcSSimon Schubert 
6*5796c8dcSSimon Schubert    This file is part of GDB.
7*5796c8dcSSimon Schubert 
8*5796c8dcSSimon Schubert    This program is free software; you can redistribute it and/or modify
9*5796c8dcSSimon Schubert    it under the terms of the GNU General Public License as published by
10*5796c8dcSSimon Schubert    the Free Software Foundation; either version 3 of the License, or
11*5796c8dcSSimon Schubert    (at your option) any later version.
12*5796c8dcSSimon Schubert 
13*5796c8dcSSimon Schubert    This program is distributed in the hope that it will be useful,
14*5796c8dcSSimon Schubert    but WITHOUT ANY WARRANTY; without even the implied warranty of
15*5796c8dcSSimon Schubert    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16*5796c8dcSSimon Schubert    GNU General Public License for more details.
17*5796c8dcSSimon Schubert 
18*5796c8dcSSimon Schubert    You should have received a copy of the GNU General Public License
19*5796c8dcSSimon Schubert    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
20*5796c8dcSSimon Schubert 
21*5796c8dcSSimon Schubert #if !defined (ADA_LANG_H)
22*5796c8dcSSimon Schubert #define ADA_LANG_H 1
23*5796c8dcSSimon Schubert 
24*5796c8dcSSimon Schubert struct partial_symbol;
25*5796c8dcSSimon Schubert struct frame_info;
26*5796c8dcSSimon Schubert 
27*5796c8dcSSimon Schubert #include "value.h"
28*5796c8dcSSimon Schubert #include "gdbtypes.h"
29*5796c8dcSSimon Schubert #include "breakpoint.h"
30*5796c8dcSSimon Schubert 
31*5796c8dcSSimon Schubert /* Names of specific files known to be part of the runtime
32*5796c8dcSSimon Schubert    system and that might consider (confusing) debugging information.
33*5796c8dcSSimon Schubert    Each name (a basic regular expression string) is followed by a
34*5796c8dcSSimon Schubert    comma.  FIXME: Should be part of a configuration file. */
35*5796c8dcSSimon Schubert #if defined(__alpha__) && defined(__osf__)
36*5796c8dcSSimon Schubert #define ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS \
37*5796c8dcSSimon Schubert    "^[agis]-.*\\.ad[bs]$", \
38*5796c8dcSSimon Schubert    "/usr/shlib/libpthread\\.so",
39*5796c8dcSSimon Schubert #elif defined (__linux__)
40*5796c8dcSSimon Schubert #define ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS \
41*5796c8dcSSimon Schubert    "^[agis]-.*\\.ad[bs]$", \
42*5796c8dcSSimon Schubert    "/lib.*/libpthread\\.so[.0-9]*$", "/lib.*/libpthread\\.a$", \
43*5796c8dcSSimon Schubert    "/lib.*/libc\\.so[.0-9]*$", "/lib.*/libc\\.a$",
44*5796c8dcSSimon Schubert #endif
45*5796c8dcSSimon Schubert 
46*5796c8dcSSimon Schubert #if !defined (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS)
47*5796c8dcSSimon Schubert #define ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS \
48*5796c8dcSSimon Schubert    "^[agis]-.*\\.ad[bs]$",
49*5796c8dcSSimon Schubert #endif
50*5796c8dcSSimon Schubert 
51*5796c8dcSSimon Schubert /* Names of compiler-generated auxiliary functions probably of no
52*5796c8dcSSimon Schubert    interest to users. Each name (a basic regular expression string)
53*5796c8dcSSimon Schubert    is followed by a comma. */
54*5796c8dcSSimon Schubert #define ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS \
55*5796c8dcSSimon Schubert    "___clean[.$a-zA-Z0-9_]*$",
56*5796c8dcSSimon Schubert 
57*5796c8dcSSimon Schubert /* The maximum number of frame levels searched for non-local,
58*5796c8dcSSimon Schubert  * non-global symbols.  This limit exists as a precaution to prevent
59*5796c8dcSSimon Schubert  * infinite search loops when the stack is screwed up. */
60*5796c8dcSSimon Schubert #define MAX_ENCLOSING_FRAME_LEVELS 7
61*5796c8dcSSimon Schubert 
62*5796c8dcSSimon Schubert /* Maximum number of steps followed in looking for the ultimate
63*5796c8dcSSimon Schubert    referent of a renaming.  This prevents certain infinite loops that
64*5796c8dcSSimon Schubert    can otherwise result. */
65*5796c8dcSSimon Schubert #define MAX_RENAMING_CHAIN_LENGTH 10
66*5796c8dcSSimon Schubert 
67*5796c8dcSSimon Schubert struct block;
68*5796c8dcSSimon Schubert 
69*5796c8dcSSimon Schubert /* Corresponding encoded/decoded names and opcodes for Ada user-definable
70*5796c8dcSSimon Schubert    operators. */
71*5796c8dcSSimon Schubert struct ada_opname_map
72*5796c8dcSSimon Schubert {
73*5796c8dcSSimon Schubert   const char *encoded;
74*5796c8dcSSimon Schubert   const char *decoded;
75*5796c8dcSSimon Schubert   enum exp_opcode op;
76*5796c8dcSSimon Schubert };
77*5796c8dcSSimon Schubert 
78*5796c8dcSSimon Schubert /* Table of Ada operators in encoded and decoded forms. */
79*5796c8dcSSimon Schubert /* Defined in ada-lang.c */
80*5796c8dcSSimon Schubert extern const struct ada_opname_map ada_opname_table[];
81*5796c8dcSSimon Schubert 
82*5796c8dcSSimon Schubert /* A tuple, (symbol, block), representing one instance of a
83*5796c8dcSSimon Schubert  * symbol-lookup operation. */
84*5796c8dcSSimon Schubert struct ada_symbol_info {
85*5796c8dcSSimon Schubert   struct symbol* sym;
86*5796c8dcSSimon Schubert   struct block* block;
87*5796c8dcSSimon Schubert };
88*5796c8dcSSimon Schubert 
89*5796c8dcSSimon Schubert /* Denotes a type of renaming symbol (see ada_parse_renaming).  */
90*5796c8dcSSimon Schubert enum ada_renaming_category
91*5796c8dcSSimon Schubert   {
92*5796c8dcSSimon Schubert     /* Indicates a symbol that does not encode a renaming.  */
93*5796c8dcSSimon Schubert     ADA_NOT_RENAMING,
94*5796c8dcSSimon Schubert 
95*5796c8dcSSimon Schubert     /* For symbols declared
96*5796c8dcSSimon Schubert          Foo : TYPE renamed OBJECT;  */
97*5796c8dcSSimon Schubert     ADA_OBJECT_RENAMING,
98*5796c8dcSSimon Schubert 
99*5796c8dcSSimon Schubert     /* For symbols declared
100*5796c8dcSSimon Schubert          Foo : exception renames EXCEPTION;  */
101*5796c8dcSSimon Schubert     ADA_EXCEPTION_RENAMING,
102*5796c8dcSSimon Schubert     /* For packages declared
103*5796c8dcSSimon Schubert           package Foo renames PACKAGE; */
104*5796c8dcSSimon Schubert     ADA_PACKAGE_RENAMING,
105*5796c8dcSSimon Schubert     /* For subprograms declared
106*5796c8dcSSimon Schubert           SUBPROGRAM_SPEC renames SUBPROGRAM;
107*5796c8dcSSimon Schubert        (Currently not used).  */
108*5796c8dcSSimon Schubert     ADA_SUBPROGRAM_RENAMING
109*5796c8dcSSimon Schubert   };
110*5796c8dcSSimon Schubert 
111*5796c8dcSSimon Schubert /* Ada task structures.  */
112*5796c8dcSSimon Schubert 
113*5796c8dcSSimon Schubert struct ada_task_info
114*5796c8dcSSimon Schubert {
115*5796c8dcSSimon Schubert   /* The PTID of the thread that this task runs on.  This ptid is computed
116*5796c8dcSSimon Schubert      in a target-dependent way from the associated Task Control Block.  */
117*5796c8dcSSimon Schubert   ptid_t ptid;
118*5796c8dcSSimon Schubert 
119*5796c8dcSSimon Schubert   /* The ID of the task.  */
120*5796c8dcSSimon Schubert   CORE_ADDR task_id;
121*5796c8dcSSimon Schubert 
122*5796c8dcSSimon Schubert   /* The name of the task.  */
123*5796c8dcSSimon Schubert   char name[257];
124*5796c8dcSSimon Schubert 
125*5796c8dcSSimon Schubert   /* The current state of the task.  */
126*5796c8dcSSimon Schubert   int state;
127*5796c8dcSSimon Schubert 
128*5796c8dcSSimon Schubert   /* The priority associated to the task.  */
129*5796c8dcSSimon Schubert   int priority;
130*5796c8dcSSimon Schubert 
131*5796c8dcSSimon Schubert   /* If non-zero, the task ID of the parent task.  */
132*5796c8dcSSimon Schubert   CORE_ADDR parent;
133*5796c8dcSSimon Schubert 
134*5796c8dcSSimon Schubert   /* If the task is waiting on a task entry, this field contains
135*5796c8dcSSimon Schubert      the ID of the other task.  Zero otherwise.  */
136*5796c8dcSSimon Schubert   CORE_ADDR called_task;
137*5796c8dcSSimon Schubert 
138*5796c8dcSSimon Schubert   /* If the task is accepting a rendezvous with another task, this field
139*5796c8dcSSimon Schubert      contains the ID of the calling task.  Zero otherwise.  */
140*5796c8dcSSimon Schubert   CORE_ADDR caller_task;
141*5796c8dcSSimon Schubert };
142*5796c8dcSSimon Schubert 
143*5796c8dcSSimon Schubert /* Assuming V points to an array of S objects,  make sure that it contains at
144*5796c8dcSSimon Schubert    least M objects, updating V and S as necessary. */
145*5796c8dcSSimon Schubert 
146*5796c8dcSSimon Schubert #define GROW_VECT(v, s, m)                                              \
147*5796c8dcSSimon Schubert    if ((s) < (m)) (v) = grow_vect (v, &(s), m, sizeof *(v));
148*5796c8dcSSimon Schubert 
149*5796c8dcSSimon Schubert extern void *grow_vect (void *, size_t *, size_t, int);
150*5796c8dcSSimon Schubert 
151*5796c8dcSSimon Schubert extern int ada_get_field_index (const struct type *type,
152*5796c8dcSSimon Schubert                                 const char *field_name,
153*5796c8dcSSimon Schubert                                 int maybe_missing);
154*5796c8dcSSimon Schubert 
155*5796c8dcSSimon Schubert extern int ada_parse (void);    /* Defined in ada-exp.y */
156*5796c8dcSSimon Schubert 
157*5796c8dcSSimon Schubert extern void ada_error (char *); /* Defined in ada-exp.y */
158*5796c8dcSSimon Schubert 
159*5796c8dcSSimon Schubert                         /* Defined in ada-typeprint.c */
160*5796c8dcSSimon Schubert extern void ada_print_type (struct type *, char *, struct ui_file *, int,
161*5796c8dcSSimon Schubert                             int);
162*5796c8dcSSimon Schubert 
163*5796c8dcSSimon Schubert extern int ada_val_print (struct type *, const gdb_byte *, int, CORE_ADDR,
164*5796c8dcSSimon Schubert                           struct ui_file *, int,
165*5796c8dcSSimon Schubert 			  const struct value_print_options *);
166*5796c8dcSSimon Schubert 
167*5796c8dcSSimon Schubert extern int ada_value_print (struct value *, struct ui_file *,
168*5796c8dcSSimon Schubert 			    const struct value_print_options *);
169*5796c8dcSSimon Schubert 
170*5796c8dcSSimon Schubert                                 /* Defined in ada-lang.c */
171*5796c8dcSSimon Schubert 
172*5796c8dcSSimon Schubert extern void ada_emit_char (int, struct type *, struct ui_file *, int, int);
173*5796c8dcSSimon Schubert 
174*5796c8dcSSimon Schubert extern void ada_printchar (int, struct type *, struct ui_file *);
175*5796c8dcSSimon Schubert 
176*5796c8dcSSimon Schubert extern void ada_printstr (struct ui_file *, struct type *, const gdb_byte *,
177*5796c8dcSSimon Schubert 			  unsigned int, int,
178*5796c8dcSSimon Schubert 			  const struct value_print_options *);
179*5796c8dcSSimon Schubert 
180*5796c8dcSSimon Schubert struct value *ada_convert_actual (struct value *actual,
181*5796c8dcSSimon Schubert                                   struct type *formal_type0,
182*5796c8dcSSimon Schubert 				  struct gdbarch *gdbarch,
183*5796c8dcSSimon Schubert                                   CORE_ADDR *sp);
184*5796c8dcSSimon Schubert 
185*5796c8dcSSimon Schubert extern struct value *ada_value_subscript (struct value *, int,
186*5796c8dcSSimon Schubert                                           struct value **);
187*5796c8dcSSimon Schubert 
188*5796c8dcSSimon Schubert extern struct type *ada_array_element_type (struct type *, int);
189*5796c8dcSSimon Schubert 
190*5796c8dcSSimon Schubert extern int ada_array_arity (struct type *);
191*5796c8dcSSimon Schubert 
192*5796c8dcSSimon Schubert struct type *ada_type_of_array (struct value *, int);
193*5796c8dcSSimon Schubert 
194*5796c8dcSSimon Schubert extern struct value *ada_coerce_to_simple_array_ptr (struct value *);
195*5796c8dcSSimon Schubert 
196*5796c8dcSSimon Schubert extern int ada_is_simple_array_type (struct type *);
197*5796c8dcSSimon Schubert 
198*5796c8dcSSimon Schubert extern int ada_is_array_descriptor_type (struct type *);
199*5796c8dcSSimon Schubert 
200*5796c8dcSSimon Schubert extern int ada_is_bogus_array_descriptor (struct type *);
201*5796c8dcSSimon Schubert 
202*5796c8dcSSimon Schubert extern char *ada_decode_symbol (const struct general_symbol_info*);
203*5796c8dcSSimon Schubert 
204*5796c8dcSSimon Schubert extern const char *ada_decode (const char*);
205*5796c8dcSSimon Schubert 
206*5796c8dcSSimon Schubert extern enum language ada_update_initial_language (enum language,
207*5796c8dcSSimon Schubert 						  struct partial_symtab*);
208*5796c8dcSSimon Schubert 
209*5796c8dcSSimon Schubert extern void clear_ada_sym_cache (void);
210*5796c8dcSSimon Schubert 
211*5796c8dcSSimon Schubert extern int ada_lookup_symbol_list (const char *, const struct block *,
212*5796c8dcSSimon Schubert                                    domain_enum, struct ada_symbol_info**);
213*5796c8dcSSimon Schubert 
214*5796c8dcSSimon Schubert extern char *ada_fold_name (const char *);
215*5796c8dcSSimon Schubert 
216*5796c8dcSSimon Schubert extern struct symbol *ada_lookup_symbol (const char *, const struct block *,
217*5796c8dcSSimon Schubert                                          domain_enum, int *);
218*5796c8dcSSimon Schubert 
219*5796c8dcSSimon Schubert extern struct symbol *
220*5796c8dcSSimon Schubert ada_lookup_encoded_symbol (const char *, const struct block *,
221*5796c8dcSSimon Schubert 			   domain_enum namespace, struct block **);
222*5796c8dcSSimon Schubert 
223*5796c8dcSSimon Schubert extern struct minimal_symbol *ada_lookup_simple_minsym (const char *);
224*5796c8dcSSimon Schubert 
225*5796c8dcSSimon Schubert extern void ada_fill_in_ada_prototype (struct symbol *);
226*5796c8dcSSimon Schubert 
227*5796c8dcSSimon Schubert extern int user_select_syms (struct ada_symbol_info *, int, int);
228*5796c8dcSSimon Schubert 
229*5796c8dcSSimon Schubert extern int get_selections (int *, int, int, int, char *);
230*5796c8dcSSimon Schubert 
231*5796c8dcSSimon Schubert extern char *ada_start_decode_line_1 (char *);
232*5796c8dcSSimon Schubert 
233*5796c8dcSSimon Schubert extern struct symtabs_and_lines ada_finish_decode_line_1 (char **,
234*5796c8dcSSimon Schubert                                                           struct symtab *,
235*5796c8dcSSimon Schubert                                                           int, char ***);
236*5796c8dcSSimon Schubert 
237*5796c8dcSSimon Schubert extern struct symtabs_and_lines ada_sals_for_line (const char*, int,
238*5796c8dcSSimon Schubert 						   int, char***, int);
239*5796c8dcSSimon Schubert 
240*5796c8dcSSimon Schubert extern int ada_scan_number (const char *, int, LONGEST *, int *);
241*5796c8dcSSimon Schubert 
242*5796c8dcSSimon Schubert extern struct type *ada_parent_type (struct type *);
243*5796c8dcSSimon Schubert 
244*5796c8dcSSimon Schubert extern int ada_is_ignored_field (struct type *, int);
245*5796c8dcSSimon Schubert 
246*5796c8dcSSimon Schubert extern int ada_is_packed_array_type (struct type *);
247*5796c8dcSSimon Schubert 
248*5796c8dcSSimon Schubert extern struct value *ada_value_primitive_packed_val (struct value *,
249*5796c8dcSSimon Schubert 						     const gdb_byte *,
250*5796c8dcSSimon Schubert                                                      long, int, int,
251*5796c8dcSSimon Schubert                                                      struct type *);
252*5796c8dcSSimon Schubert 
253*5796c8dcSSimon Schubert extern struct type *ada_coerce_to_simple_array_type (struct type *);
254*5796c8dcSSimon Schubert 
255*5796c8dcSSimon Schubert extern int ada_is_character_type (struct type *);
256*5796c8dcSSimon Schubert 
257*5796c8dcSSimon Schubert extern int ada_is_string_type (struct type *);
258*5796c8dcSSimon Schubert 
259*5796c8dcSSimon Schubert extern int ada_is_tagged_type (struct type *, int);
260*5796c8dcSSimon Schubert 
261*5796c8dcSSimon Schubert extern int ada_is_tag_type (struct type *);
262*5796c8dcSSimon Schubert 
263*5796c8dcSSimon Schubert extern struct type *ada_tag_type (struct value *);
264*5796c8dcSSimon Schubert 
265*5796c8dcSSimon Schubert extern struct value *ada_value_tag (struct value *);
266*5796c8dcSSimon Schubert 
267*5796c8dcSSimon Schubert extern const char *ada_tag_name (struct value *);
268*5796c8dcSSimon Schubert 
269*5796c8dcSSimon Schubert extern int ada_is_parent_field (struct type *, int);
270*5796c8dcSSimon Schubert 
271*5796c8dcSSimon Schubert extern int ada_is_wrapper_field (struct type *, int);
272*5796c8dcSSimon Schubert 
273*5796c8dcSSimon Schubert extern int ada_is_variant_part (struct type *, int);
274*5796c8dcSSimon Schubert 
275*5796c8dcSSimon Schubert extern struct type *ada_variant_discrim_type (struct type *, struct type *);
276*5796c8dcSSimon Schubert 
277*5796c8dcSSimon Schubert extern int ada_is_others_clause (struct type *, int);
278*5796c8dcSSimon Schubert 
279*5796c8dcSSimon Schubert extern int ada_in_variant (LONGEST, struct type *, int);
280*5796c8dcSSimon Schubert 
281*5796c8dcSSimon Schubert extern char *ada_variant_discrim_name (struct type *);
282*5796c8dcSSimon Schubert 
283*5796c8dcSSimon Schubert extern struct value *ada_value_struct_elt (struct value *, char *, int);
284*5796c8dcSSimon Schubert 
285*5796c8dcSSimon Schubert extern int ada_is_aligner_type (struct type *);
286*5796c8dcSSimon Schubert 
287*5796c8dcSSimon Schubert extern struct type *ada_aligned_type (struct type *);
288*5796c8dcSSimon Schubert 
289*5796c8dcSSimon Schubert extern const gdb_byte *ada_aligned_value_addr (struct type *,
290*5796c8dcSSimon Schubert 					       const gdb_byte *);
291*5796c8dcSSimon Schubert 
292*5796c8dcSSimon Schubert extern const char *ada_attribute_name (enum exp_opcode);
293*5796c8dcSSimon Schubert 
294*5796c8dcSSimon Schubert extern int ada_is_fixed_point_type (struct type *);
295*5796c8dcSSimon Schubert 
296*5796c8dcSSimon Schubert extern int ada_is_system_address_type (struct type *);
297*5796c8dcSSimon Schubert 
298*5796c8dcSSimon Schubert extern DOUBLEST ada_delta (struct type *);
299*5796c8dcSSimon Schubert 
300*5796c8dcSSimon Schubert extern DOUBLEST ada_fixed_to_float (struct type *, LONGEST);
301*5796c8dcSSimon Schubert 
302*5796c8dcSSimon Schubert extern LONGEST ada_float_to_fixed (struct type *, DOUBLEST);
303*5796c8dcSSimon Schubert 
304*5796c8dcSSimon Schubert extern int ada_is_vax_floating_type (struct type *);
305*5796c8dcSSimon Schubert 
306*5796c8dcSSimon Schubert extern int ada_vax_float_type_suffix (struct type *);
307*5796c8dcSSimon Schubert 
308*5796c8dcSSimon Schubert extern struct value *ada_vax_float_print_function (struct type *);
309*5796c8dcSSimon Schubert 
310*5796c8dcSSimon Schubert extern struct type *ada_system_address_type (void);
311*5796c8dcSSimon Schubert 
312*5796c8dcSSimon Schubert extern int ada_which_variant_applies (struct type *, struct type *,
313*5796c8dcSSimon Schubert 				      const gdb_byte *);
314*5796c8dcSSimon Schubert 
315*5796c8dcSSimon Schubert extern struct type *ada_to_fixed_type (struct type *, const gdb_byte *,
316*5796c8dcSSimon Schubert 				       CORE_ADDR, struct value *,
317*5796c8dcSSimon Schubert                                        int check_tag);
318*5796c8dcSSimon Schubert 
319*5796c8dcSSimon Schubert extern struct type *ada_template_to_fixed_record_type_1 (struct type *type,
320*5796c8dcSSimon Schubert 							 const gdb_byte *valaddr,
321*5796c8dcSSimon Schubert 							 CORE_ADDR address,
322*5796c8dcSSimon Schubert 							 struct value *dval0,
323*5796c8dcSSimon Schubert 							 int keep_dynamic_fields);
324*5796c8dcSSimon Schubert 
325*5796c8dcSSimon Schubert extern int ada_name_prefix_len (const char *);
326*5796c8dcSSimon Schubert 
327*5796c8dcSSimon Schubert extern char *ada_type_name (struct type *);
328*5796c8dcSSimon Schubert 
329*5796c8dcSSimon Schubert extern struct type *ada_find_parallel_type (struct type *,
330*5796c8dcSSimon Schubert                                             const char *suffix);
331*5796c8dcSSimon Schubert 
332*5796c8dcSSimon Schubert extern LONGEST get_int_var_value (char *, int *);
333*5796c8dcSSimon Schubert 
334*5796c8dcSSimon Schubert extern struct symbol *ada_find_any_symbol (const char *name);
335*5796c8dcSSimon Schubert 
336*5796c8dcSSimon Schubert extern struct type *ada_find_any_type (const char *name);
337*5796c8dcSSimon Schubert 
338*5796c8dcSSimon Schubert extern struct symbol *ada_find_renaming_symbol (const char *name,
339*5796c8dcSSimon Schubert                                                 struct block *block);
340*5796c8dcSSimon Schubert 
341*5796c8dcSSimon Schubert extern int ada_prefer_type (struct type *, struct type *);
342*5796c8dcSSimon Schubert 
343*5796c8dcSSimon Schubert extern struct type *ada_get_base_type (struct type *);
344*5796c8dcSSimon Schubert 
345*5796c8dcSSimon Schubert extern struct type *ada_check_typedef (struct type *);
346*5796c8dcSSimon Schubert 
347*5796c8dcSSimon Schubert extern char *ada_encode (const char *);
348*5796c8dcSSimon Schubert 
349*5796c8dcSSimon Schubert extern const char *ada_enum_name (const char *);
350*5796c8dcSSimon Schubert 
351*5796c8dcSSimon Schubert extern int ada_is_modular_type (struct type *);
352*5796c8dcSSimon Schubert 
353*5796c8dcSSimon Schubert extern ULONGEST ada_modulus (struct type *);
354*5796c8dcSSimon Schubert 
355*5796c8dcSSimon Schubert extern struct value *ada_value_ind (struct value *);
356*5796c8dcSSimon Schubert 
357*5796c8dcSSimon Schubert extern void ada_print_scalar (struct type *, LONGEST, struct ui_file *);
358*5796c8dcSSimon Schubert 
359*5796c8dcSSimon Schubert extern int ada_is_range_type_name (const char *);
360*5796c8dcSSimon Schubert 
361*5796c8dcSSimon Schubert extern enum ada_renaming_category ada_parse_renaming (struct symbol *,
362*5796c8dcSSimon Schubert 						      const char **,
363*5796c8dcSSimon Schubert 						      int *, const char **);
364*5796c8dcSSimon Schubert 
365*5796c8dcSSimon Schubert extern void ada_find_printable_frame (struct frame_info *fi);
366*5796c8dcSSimon Schubert 
367*5796c8dcSSimon Schubert extern char *ada_breakpoint_rewrite (char *, int *);
368*5796c8dcSSimon Schubert 
369*5796c8dcSSimon Schubert extern char *ada_main_name (void);
370*5796c8dcSSimon Schubert 
371*5796c8dcSSimon Schubert /* Tasking-related: ada-tasks.c */
372*5796c8dcSSimon Schubert 
373*5796c8dcSSimon Schubert extern int valid_task_id (int);
374*5796c8dcSSimon Schubert 
375*5796c8dcSSimon Schubert extern int ada_get_task_number (ptid_t);
376*5796c8dcSSimon Schubert 
377*5796c8dcSSimon Schubert extern int ada_build_task_list (int warn_if_null);
378*5796c8dcSSimon Schubert 
379*5796c8dcSSimon Schubert extern int ada_exception_catchpoint_p (struct breakpoint *b);
380*5796c8dcSSimon Schubert 
381*5796c8dcSSimon Schubert extern struct symtab_and_line
382*5796c8dcSSimon Schubert   ada_decode_exception_location (char *args, char **addr_string,
383*5796c8dcSSimon Schubert                                  char **exp_string, char **cond_string,
384*5796c8dcSSimon Schubert                                  struct expression **cond,
385*5796c8dcSSimon Schubert                                  struct breakpoint_ops **ops);
386*5796c8dcSSimon Schubert 
387*5796c8dcSSimon Schubert extern struct symtab_and_line
388*5796c8dcSSimon Schubert   ada_decode_assert_location (char *args, char **addr_string,
389*5796c8dcSSimon Schubert                               struct breakpoint_ops **ops);
390*5796c8dcSSimon Schubert 
391*5796c8dcSSimon Schubert 
392*5796c8dcSSimon Schubert #endif
393