xref: /dflybsd-src/contrib/gdb-7/gdb/ada-lang.h (revision de8e141f24382815c10a4012d209bbbf7abf1112)
15796c8dcSSimon Schubert /* Ada language support definitions for GDB, the GNU debugger.
25796c8dcSSimon Schubert 
3*ef5ccd6cSJohn Marino    Copyright (C) 1992-2013 Free Software Foundation, Inc.
45796c8dcSSimon Schubert 
55796c8dcSSimon Schubert    This file is part of GDB.
65796c8dcSSimon Schubert 
75796c8dcSSimon Schubert    This program is free software; you can redistribute it and/or modify
85796c8dcSSimon Schubert    it under the terms of the GNU General Public License as published by
95796c8dcSSimon Schubert    the Free Software Foundation; either version 3 of the License, or
105796c8dcSSimon Schubert    (at your option) any later version.
115796c8dcSSimon Schubert 
125796c8dcSSimon Schubert    This program is distributed in the hope that it will be useful,
135796c8dcSSimon Schubert    but WITHOUT ANY WARRANTY; without even the implied warranty of
145796c8dcSSimon Schubert    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
155796c8dcSSimon Schubert    GNU General Public License for more details.
165796c8dcSSimon Schubert 
175796c8dcSSimon Schubert    You should have received a copy of the GNU General Public License
185796c8dcSSimon Schubert    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
195796c8dcSSimon Schubert 
205796c8dcSSimon Schubert #if !defined (ADA_LANG_H)
215796c8dcSSimon Schubert #define ADA_LANG_H 1
225796c8dcSSimon Schubert 
235796c8dcSSimon Schubert struct frame_info;
24a45ae5f8SJohn Marino struct inferior;
25*ef5ccd6cSJohn Marino struct type_print_options;
265796c8dcSSimon Schubert 
275796c8dcSSimon Schubert #include "value.h"
285796c8dcSSimon Schubert #include "gdbtypes.h"
295796c8dcSSimon Schubert #include "breakpoint.h"
305796c8dcSSimon Schubert 
315796c8dcSSimon Schubert /* Names of specific files known to be part of the runtime
325796c8dcSSimon Schubert    system and that might consider (confusing) debugging information.
335796c8dcSSimon Schubert    Each name (a basic regular expression string) is followed by a
345796c8dcSSimon Schubert    comma.  FIXME: Should be part of a configuration file.  */
355796c8dcSSimon Schubert #if defined(__alpha__) && defined(__osf__)
365796c8dcSSimon Schubert #define ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS \
375796c8dcSSimon Schubert    "^[agis]-.*\\.ad[bs]$", \
385796c8dcSSimon Schubert    "/usr/shlib/libpthread\\.so",
395796c8dcSSimon Schubert #elif defined (__linux__)
405796c8dcSSimon Schubert #define ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS \
415796c8dcSSimon Schubert    "^[agis]-.*\\.ad[bs]$", \
425796c8dcSSimon Schubert    "/lib.*/libpthread\\.so[.0-9]*$", "/lib.*/libpthread\\.a$", \
435796c8dcSSimon Schubert    "/lib.*/libc\\.so[.0-9]*$", "/lib.*/libc\\.a$",
445796c8dcSSimon Schubert #endif
455796c8dcSSimon Schubert 
465796c8dcSSimon Schubert #if !defined (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS)
475796c8dcSSimon Schubert #define ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS \
48*ef5ccd6cSJohn Marino    "^unwind-seh.c$", \
495796c8dcSSimon Schubert    "^[agis]-.*\\.ad[bs]$",
505796c8dcSSimon Schubert #endif
515796c8dcSSimon Schubert 
525796c8dcSSimon Schubert /* Names of compiler-generated auxiliary functions probably of no
535796c8dcSSimon Schubert    interest to users.  Each name (a basic regular expression string)
545796c8dcSSimon Schubert    is followed by a comma.  */
555796c8dcSSimon Schubert #define ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS \
56c50c785cSJohn Marino    "___clean[.$a-zA-Z0-9_]*$", \
57c50c785cSJohn Marino    "___finalizer[.$a-zA-Z0-9_]*$",
585796c8dcSSimon Schubert 
595796c8dcSSimon Schubert /* The maximum number of frame levels searched for non-local,
605796c8dcSSimon Schubert  * non-global symbols.  This limit exists as a precaution to prevent
615796c8dcSSimon Schubert  * infinite search loops when the stack is screwed up.  */
625796c8dcSSimon Schubert #define MAX_ENCLOSING_FRAME_LEVELS 7
635796c8dcSSimon Schubert 
645796c8dcSSimon Schubert /* Maximum number of steps followed in looking for the ultimate
655796c8dcSSimon Schubert    referent of a renaming.  This prevents certain infinite loops that
665796c8dcSSimon Schubert    can otherwise result.  */
675796c8dcSSimon Schubert #define MAX_RENAMING_CHAIN_LENGTH 10
685796c8dcSSimon Schubert 
695796c8dcSSimon Schubert struct block;
705796c8dcSSimon Schubert 
715796c8dcSSimon Schubert /* Corresponding encoded/decoded names and opcodes for Ada user-definable
725796c8dcSSimon Schubert    operators.  */
735796c8dcSSimon Schubert struct ada_opname_map
745796c8dcSSimon Schubert {
755796c8dcSSimon Schubert   const char *encoded;
765796c8dcSSimon Schubert   const char *decoded;
775796c8dcSSimon Schubert   enum exp_opcode op;
785796c8dcSSimon Schubert };
795796c8dcSSimon Schubert 
805796c8dcSSimon Schubert /* Table of Ada operators in encoded and decoded forms.  */
815796c8dcSSimon Schubert /* Defined in ada-lang.c */
825796c8dcSSimon Schubert extern const struct ada_opname_map ada_opname_table[];
835796c8dcSSimon Schubert 
84*ef5ccd6cSJohn Marino /* A tuple representing one instance of a symbol-lookup operation.  */
85*ef5ccd6cSJohn Marino 
86*ef5ccd6cSJohn Marino struct ada_symbol_info
87*ef5ccd6cSJohn Marino {
88*ef5ccd6cSJohn Marino   /* The symbol that was found.  */
895796c8dcSSimon Schubert   struct symbol *sym;
90*ef5ccd6cSJohn Marino 
91*ef5ccd6cSJohn Marino   /* The block where the symbol was found.  */
92*ef5ccd6cSJohn Marino   const struct block *block;
935796c8dcSSimon Schubert };
945796c8dcSSimon Schubert 
955796c8dcSSimon Schubert /* Denotes a type of renaming symbol (see ada_parse_renaming).  */
965796c8dcSSimon Schubert enum ada_renaming_category
975796c8dcSSimon Schubert   {
985796c8dcSSimon Schubert     /* Indicates a symbol that does not encode a renaming.  */
995796c8dcSSimon Schubert     ADA_NOT_RENAMING,
1005796c8dcSSimon Schubert 
1015796c8dcSSimon Schubert     /* For symbols declared
1025796c8dcSSimon Schubert          Foo : TYPE renamed OBJECT;  */
1035796c8dcSSimon Schubert     ADA_OBJECT_RENAMING,
1045796c8dcSSimon Schubert 
1055796c8dcSSimon Schubert     /* For symbols declared
1065796c8dcSSimon Schubert          Foo : exception renames EXCEPTION;  */
1075796c8dcSSimon Schubert     ADA_EXCEPTION_RENAMING,
1085796c8dcSSimon Schubert     /* For packages declared
1095796c8dcSSimon Schubert           package Foo renames PACKAGE; */
1105796c8dcSSimon Schubert     ADA_PACKAGE_RENAMING,
1115796c8dcSSimon Schubert     /* For subprograms declared
1125796c8dcSSimon Schubert           SUBPROGRAM_SPEC renames SUBPROGRAM;
1135796c8dcSSimon Schubert        (Currently not used).  */
1145796c8dcSSimon Schubert     ADA_SUBPROGRAM_RENAMING
1155796c8dcSSimon Schubert   };
1165796c8dcSSimon Schubert 
1175796c8dcSSimon Schubert /* Ada task structures.  */
1185796c8dcSSimon Schubert 
1195796c8dcSSimon Schubert struct ada_task_info
1205796c8dcSSimon Schubert {
1215796c8dcSSimon Schubert   /* The PTID of the thread that this task runs on.  This ptid is computed
1225796c8dcSSimon Schubert      in a target-dependent way from the associated Task Control Block.  */
1235796c8dcSSimon Schubert   ptid_t ptid;
1245796c8dcSSimon Schubert 
1255796c8dcSSimon Schubert   /* The ID of the task.  */
1265796c8dcSSimon Schubert   CORE_ADDR task_id;
1275796c8dcSSimon Schubert 
1285796c8dcSSimon Schubert   /* The name of the task.  */
1295796c8dcSSimon Schubert   char name[257];
1305796c8dcSSimon Schubert 
1315796c8dcSSimon Schubert   /* The current state of the task.  */
1325796c8dcSSimon Schubert   int state;
1335796c8dcSSimon Schubert 
1345796c8dcSSimon Schubert   /* The priority associated to the task.  */
1355796c8dcSSimon Schubert   int priority;
1365796c8dcSSimon Schubert 
1375796c8dcSSimon Schubert   /* If non-zero, the task ID of the parent task.  */
1385796c8dcSSimon Schubert   CORE_ADDR parent;
1395796c8dcSSimon Schubert 
1405796c8dcSSimon Schubert   /* If the task is waiting on a task entry, this field contains
1415796c8dcSSimon Schubert      the ID of the other task.  Zero otherwise.  */
1425796c8dcSSimon Schubert   CORE_ADDR called_task;
1435796c8dcSSimon Schubert 
1445796c8dcSSimon Schubert   /* If the task is accepting a rendezvous with another task, this field
1455796c8dcSSimon Schubert      contains the ID of the calling task.  Zero otherwise.  */
1465796c8dcSSimon Schubert   CORE_ADDR caller_task;
1475796c8dcSSimon Schubert };
1485796c8dcSSimon Schubert 
1495796c8dcSSimon Schubert /* Assuming V points to an array of S objects,  make sure that it contains at
1505796c8dcSSimon Schubert    least M objects, updating V and S as necessary.  */
1515796c8dcSSimon Schubert 
1525796c8dcSSimon Schubert #define GROW_VECT(v, s, m)                                    \
1535796c8dcSSimon Schubert    if ((s) < (m)) (v) = grow_vect (v, &(s), m, sizeof *(v));
1545796c8dcSSimon Schubert 
1555796c8dcSSimon Schubert extern void *grow_vect (void *, size_t *, size_t, int);
1565796c8dcSSimon Schubert 
1575796c8dcSSimon Schubert extern int ada_get_field_index (const struct type *type,
1585796c8dcSSimon Schubert                                 const char *field_name,
1595796c8dcSSimon Schubert                                 int maybe_missing);
1605796c8dcSSimon Schubert 
1615796c8dcSSimon Schubert extern int ada_parse (void);    /* Defined in ada-exp.y */
1625796c8dcSSimon Schubert 
1635796c8dcSSimon Schubert extern void ada_error (char *); /* Defined in ada-exp.y */
1645796c8dcSSimon Schubert 
1655796c8dcSSimon Schubert                         /* Defined in ada-typeprint.c */
166cf7f2e2dSJohn Marino extern void ada_print_type (struct type *, const char *, struct ui_file *, int,
167*ef5ccd6cSJohn Marino                             int, const struct type_print_options *);
1685796c8dcSSimon Schubert 
169cf7f2e2dSJohn Marino extern void ada_print_typedef (struct type *type, struct symbol *new_symbol,
170cf7f2e2dSJohn Marino 			       struct ui_file *stream);
171cf7f2e2dSJohn Marino 
172*ef5ccd6cSJohn Marino extern void ada_val_print (struct type *, const gdb_byte *, int, CORE_ADDR,
1735796c8dcSSimon Schubert 			   struct ui_file *, int,
174cf7f2e2dSJohn Marino 			   const struct value *,
1755796c8dcSSimon Schubert 			   const struct value_print_options *);
1765796c8dcSSimon Schubert 
177*ef5ccd6cSJohn Marino extern void ada_value_print (struct value *, struct ui_file *,
1785796c8dcSSimon Schubert 			     const struct value_print_options *);
1795796c8dcSSimon Schubert 
1805796c8dcSSimon Schubert                                 /* Defined in ada-lang.c */
1815796c8dcSSimon Schubert 
1825796c8dcSSimon Schubert extern void ada_emit_char (int, struct type *, struct ui_file *, int, int);
1835796c8dcSSimon Schubert 
1845796c8dcSSimon Schubert extern void ada_printchar (int, struct type *, struct ui_file *);
1855796c8dcSSimon Schubert 
1865796c8dcSSimon Schubert extern void ada_printstr (struct ui_file *, struct type *, const gdb_byte *,
187cf7f2e2dSJohn Marino 			  unsigned int, const char *, int,
1885796c8dcSSimon Schubert 			  const struct value_print_options *);
1895796c8dcSSimon Schubert 
1905796c8dcSSimon Schubert struct value *ada_convert_actual (struct value *actual,
191c50c785cSJohn Marino                                   struct type *formal_type0);
1925796c8dcSSimon Schubert 
1935796c8dcSSimon Schubert extern struct value *ada_value_subscript (struct value *, int,
1945796c8dcSSimon Schubert                                           struct value **);
1955796c8dcSSimon Schubert 
196cf7f2e2dSJohn Marino extern void ada_fixup_array_indexes_type (struct type *index_desc_type);
197cf7f2e2dSJohn Marino 
1985796c8dcSSimon Schubert extern struct type *ada_array_element_type (struct type *, int);
1995796c8dcSSimon Schubert 
2005796c8dcSSimon Schubert extern int ada_array_arity (struct type *);
2015796c8dcSSimon Schubert 
2025796c8dcSSimon Schubert struct type *ada_type_of_array (struct value *, int);
2035796c8dcSSimon Schubert 
2045796c8dcSSimon Schubert extern struct value *ada_coerce_to_simple_array_ptr (struct value *);
2055796c8dcSSimon Schubert 
206c50c785cSJohn Marino struct value *ada_coerce_to_simple_array (struct value *);
207c50c785cSJohn Marino 
2085796c8dcSSimon Schubert extern int ada_is_simple_array_type (struct type *);
2095796c8dcSSimon Schubert 
2105796c8dcSSimon Schubert extern int ada_is_array_descriptor_type (struct type *);
2115796c8dcSSimon Schubert 
2125796c8dcSSimon Schubert extern int ada_is_bogus_array_descriptor (struct type *);
2135796c8dcSSimon Schubert 
214cf7f2e2dSJohn Marino extern LONGEST ada_discrete_type_low_bound (struct type *);
215cf7f2e2dSJohn Marino 
216cf7f2e2dSJohn Marino extern LONGEST ada_discrete_type_high_bound (struct type *);
217cf7f2e2dSJohn Marino 
218*ef5ccd6cSJohn Marino extern struct value *ada_get_decoded_value (struct value *value);
219*ef5ccd6cSJohn Marino 
220*ef5ccd6cSJohn Marino extern struct type *ada_get_decoded_type (struct type *type);
221*ef5ccd6cSJohn Marino 
222*ef5ccd6cSJohn Marino extern const char *ada_decode_symbol (const struct general_symbol_info *);
2235796c8dcSSimon Schubert 
2245796c8dcSSimon Schubert extern const char *ada_decode (const char*);
2255796c8dcSSimon Schubert 
226cf7f2e2dSJohn Marino extern enum language ada_update_initial_language (enum language);
2275796c8dcSSimon Schubert 
2285796c8dcSSimon Schubert extern void clear_ada_sym_cache (void);
2295796c8dcSSimon Schubert 
2305796c8dcSSimon Schubert extern int ada_lookup_symbol_list (const char *, const struct block *,
2315796c8dcSSimon Schubert                                    domain_enum, struct ada_symbol_info**);
2325796c8dcSSimon Schubert 
2335796c8dcSSimon Schubert extern char *ada_fold_name (const char *);
2345796c8dcSSimon Schubert 
2355796c8dcSSimon Schubert extern struct symbol *ada_lookup_symbol (const char *, const struct block *,
2365796c8dcSSimon Schubert                                          domain_enum, int *);
2375796c8dcSSimon Schubert 
238*ef5ccd6cSJohn Marino extern void ada_lookup_encoded_symbol
239*ef5ccd6cSJohn Marino   (const char *name, const struct block *block, domain_enum namespace,
240*ef5ccd6cSJohn Marino    struct ada_symbol_info *symbol_info);
2415796c8dcSSimon Schubert 
2425796c8dcSSimon Schubert extern struct minimal_symbol *ada_lookup_simple_minsym (const char *);
2435796c8dcSSimon Schubert 
2445796c8dcSSimon Schubert extern void ada_fill_in_ada_prototype (struct symbol *);
2455796c8dcSSimon Schubert 
2465796c8dcSSimon Schubert extern int user_select_syms (struct ada_symbol_info *, int, int);
2475796c8dcSSimon Schubert 
2485796c8dcSSimon Schubert extern int get_selections (int *, int, int, int, char *);
2495796c8dcSSimon Schubert 
2505796c8dcSSimon Schubert extern int ada_scan_number (const char *, int, LONGEST *, int *);
2515796c8dcSSimon Schubert 
2525796c8dcSSimon Schubert extern struct type *ada_parent_type (struct type *);
2535796c8dcSSimon Schubert 
2545796c8dcSSimon Schubert extern int ada_is_ignored_field (struct type *, int);
2555796c8dcSSimon Schubert 
256cf7f2e2dSJohn Marino extern int ada_is_constrained_packed_array_type (struct type *);
2575796c8dcSSimon Schubert 
2585796c8dcSSimon Schubert extern struct value *ada_value_primitive_packed_val (struct value *,
2595796c8dcSSimon Schubert 						     const gdb_byte *,
2605796c8dcSSimon Schubert                                                      long, int, int,
2615796c8dcSSimon Schubert                                                      struct type *);
2625796c8dcSSimon Schubert 
2635796c8dcSSimon Schubert extern struct type *ada_coerce_to_simple_array_type (struct type *);
2645796c8dcSSimon Schubert 
2655796c8dcSSimon Schubert extern int ada_is_character_type (struct type *);
2665796c8dcSSimon Schubert 
2675796c8dcSSimon Schubert extern int ada_is_string_type (struct type *);
2685796c8dcSSimon Schubert 
2695796c8dcSSimon Schubert extern int ada_is_tagged_type (struct type *, int);
2705796c8dcSSimon Schubert 
2715796c8dcSSimon Schubert extern int ada_is_tag_type (struct type *);
2725796c8dcSSimon Schubert 
2735796c8dcSSimon Schubert extern struct type *ada_tag_type (struct value *);
2745796c8dcSSimon Schubert 
2755796c8dcSSimon Schubert extern struct value *ada_value_tag (struct value *);
2765796c8dcSSimon Schubert 
2775796c8dcSSimon Schubert extern const char *ada_tag_name (struct value *);
2785796c8dcSSimon Schubert 
279*ef5ccd6cSJohn Marino extern struct value *ada_tag_value_at_base_address (struct value *obj);
280*ef5ccd6cSJohn Marino 
2815796c8dcSSimon Schubert extern int ada_is_parent_field (struct type *, int);
2825796c8dcSSimon Schubert 
2835796c8dcSSimon Schubert extern int ada_is_wrapper_field (struct type *, int);
2845796c8dcSSimon Schubert 
2855796c8dcSSimon Schubert extern int ada_is_variant_part (struct type *, int);
2865796c8dcSSimon Schubert 
2875796c8dcSSimon Schubert extern struct type *ada_variant_discrim_type (struct type *, struct type *);
2885796c8dcSSimon Schubert 
2895796c8dcSSimon Schubert extern int ada_is_others_clause (struct type *, int);
2905796c8dcSSimon Schubert 
2915796c8dcSSimon Schubert extern int ada_in_variant (LONGEST, struct type *, int);
2925796c8dcSSimon Schubert 
2935796c8dcSSimon Schubert extern char *ada_variant_discrim_name (struct type *);
2945796c8dcSSimon Schubert 
2955796c8dcSSimon Schubert extern struct value *ada_value_struct_elt (struct value *, char *, int);
2965796c8dcSSimon Schubert 
2975796c8dcSSimon Schubert extern int ada_is_aligner_type (struct type *);
2985796c8dcSSimon Schubert 
2995796c8dcSSimon Schubert extern struct type *ada_aligned_type (struct type *);
3005796c8dcSSimon Schubert 
3015796c8dcSSimon Schubert extern const gdb_byte *ada_aligned_value_addr (struct type *,
3025796c8dcSSimon Schubert 					       const gdb_byte *);
3035796c8dcSSimon Schubert 
3045796c8dcSSimon Schubert extern const char *ada_attribute_name (enum exp_opcode);
3055796c8dcSSimon Schubert 
3065796c8dcSSimon Schubert extern int ada_is_fixed_point_type (struct type *);
3075796c8dcSSimon Schubert 
3085796c8dcSSimon Schubert extern int ada_is_system_address_type (struct type *);
3095796c8dcSSimon Schubert 
3105796c8dcSSimon Schubert extern DOUBLEST ada_delta (struct type *);
3115796c8dcSSimon Schubert 
3125796c8dcSSimon Schubert extern DOUBLEST ada_fixed_to_float (struct type *, LONGEST);
3135796c8dcSSimon Schubert 
3145796c8dcSSimon Schubert extern LONGEST ada_float_to_fixed (struct type *, DOUBLEST);
3155796c8dcSSimon Schubert 
3165796c8dcSSimon Schubert extern struct type *ada_system_address_type (void);
3175796c8dcSSimon Schubert 
3185796c8dcSSimon Schubert extern int ada_which_variant_applies (struct type *, struct type *,
3195796c8dcSSimon Schubert 				      const gdb_byte *);
3205796c8dcSSimon Schubert 
3215796c8dcSSimon Schubert extern struct type *ada_to_fixed_type (struct type *, const gdb_byte *,
3225796c8dcSSimon Schubert 				       CORE_ADDR, struct value *,
3235796c8dcSSimon Schubert                                        int check_tag);
3245796c8dcSSimon Schubert 
325cf7f2e2dSJohn Marino extern struct value *ada_to_fixed_value (struct value *val);
326cf7f2e2dSJohn Marino 
3275796c8dcSSimon Schubert extern struct type *ada_template_to_fixed_record_type_1 (struct type *type,
3285796c8dcSSimon Schubert 							 const gdb_byte *valaddr,
3295796c8dcSSimon Schubert 							 CORE_ADDR address,
3305796c8dcSSimon Schubert 							 struct value *dval0,
3315796c8dcSSimon Schubert 							 int keep_dynamic_fields);
3325796c8dcSSimon Schubert 
3335796c8dcSSimon Schubert extern int ada_name_prefix_len (const char *);
3345796c8dcSSimon Schubert 
335*ef5ccd6cSJohn Marino extern const char *ada_type_name (struct type *);
3365796c8dcSSimon Schubert 
3375796c8dcSSimon Schubert extern struct type *ada_find_parallel_type (struct type *,
3385796c8dcSSimon Schubert                                             const char *suffix);
3395796c8dcSSimon Schubert 
3405796c8dcSSimon Schubert extern LONGEST get_int_var_value (char *, int *);
3415796c8dcSSimon Schubert 
342*ef5ccd6cSJohn Marino extern struct symbol *ada_find_renaming_symbol (struct symbol *name_sym,
343*ef5ccd6cSJohn Marino                                                 const struct block *block);
3445796c8dcSSimon Schubert 
3455796c8dcSSimon Schubert extern int ada_prefer_type (struct type *, struct type *);
3465796c8dcSSimon Schubert 
3475796c8dcSSimon Schubert extern struct type *ada_get_base_type (struct type *);
3485796c8dcSSimon Schubert 
3495796c8dcSSimon Schubert extern struct type *ada_check_typedef (struct type *);
3505796c8dcSSimon Schubert 
3515796c8dcSSimon Schubert extern char *ada_encode (const char *);
3525796c8dcSSimon Schubert 
3535796c8dcSSimon Schubert extern const char *ada_enum_name (const char *);
3545796c8dcSSimon Schubert 
3555796c8dcSSimon Schubert extern int ada_is_modular_type (struct type *);
3565796c8dcSSimon Schubert 
3575796c8dcSSimon Schubert extern ULONGEST ada_modulus (struct type *);
3585796c8dcSSimon Schubert 
3595796c8dcSSimon Schubert extern struct value *ada_value_ind (struct value *);
3605796c8dcSSimon Schubert 
3615796c8dcSSimon Schubert extern void ada_print_scalar (struct type *, LONGEST, struct ui_file *);
3625796c8dcSSimon Schubert 
3635796c8dcSSimon Schubert extern int ada_is_range_type_name (const char *);
3645796c8dcSSimon Schubert 
3655796c8dcSSimon Schubert extern enum ada_renaming_category ada_parse_renaming (struct symbol *,
3665796c8dcSSimon Schubert 						      const char **,
3675796c8dcSSimon Schubert 						      int *, const char **);
3685796c8dcSSimon Schubert 
3695796c8dcSSimon Schubert extern void ada_find_printable_frame (struct frame_info *fi);
3705796c8dcSSimon Schubert 
3715796c8dcSSimon Schubert extern char *ada_breakpoint_rewrite (char *, int *);
3725796c8dcSSimon Schubert 
3735796c8dcSSimon Schubert extern char *ada_main_name (void);
3745796c8dcSSimon Schubert 
375a45ae5f8SJohn Marino extern char *ada_name_for_lookup (const char *name);
376a45ae5f8SJohn Marino 
3775796c8dcSSimon Schubert /* Tasking-related: ada-tasks.c */
3785796c8dcSSimon Schubert 
3795796c8dcSSimon Schubert extern int valid_task_id (int);
3805796c8dcSSimon Schubert 
3815796c8dcSSimon Schubert extern int ada_get_task_number (ptid_t);
3825796c8dcSSimon Schubert 
383c50c785cSJohn Marino typedef void (ada_task_list_iterator_ftype) (struct ada_task_info *task);
384c50c785cSJohn Marino extern void iterate_over_live_ada_tasks
385c50c785cSJohn Marino   (ada_task_list_iterator_ftype *iterator);
386c50c785cSJohn Marino 
387a45ae5f8SJohn Marino extern int ada_build_task_list (void);
3885796c8dcSSimon Schubert 
389a45ae5f8SJohn Marino extern void print_ada_task_info (struct ui_out *uiout,
390a45ae5f8SJohn Marino 				 char *taskno_str,
391a45ae5f8SJohn Marino 				 struct inferior *inf);
3925796c8dcSSimon Schubert 
3935796c8dcSSimon Schubert #endif
394