15796c8dcSSimon Schubert /* Ada language support definitions for GDB, the GNU debugger. 25796c8dcSSimon Schubert 3*a45ae5f8SJohn Marino Copyright (C) 1992, 1997-2005, 2007-2012 Free Software Foundation, 4*a45ae5f8SJohn Marino Inc. 55796c8dcSSimon Schubert 65796c8dcSSimon Schubert This file is part of GDB. 75796c8dcSSimon Schubert 85796c8dcSSimon Schubert This program is free software; you can redistribute it and/or modify 95796c8dcSSimon Schubert it under the terms of the GNU General Public License as published by 105796c8dcSSimon Schubert the Free Software Foundation; either version 3 of the License, or 115796c8dcSSimon Schubert (at your option) any later version. 125796c8dcSSimon Schubert 135796c8dcSSimon Schubert This program is distributed in the hope that it will be useful, 145796c8dcSSimon Schubert but WITHOUT ANY WARRANTY; without even the implied warranty of 155796c8dcSSimon Schubert MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 165796c8dcSSimon Schubert GNU General Public License for more details. 175796c8dcSSimon Schubert 185796c8dcSSimon Schubert You should have received a copy of the GNU General Public License 195796c8dcSSimon Schubert along with this program. If not, see <http://www.gnu.org/licenses/>. */ 205796c8dcSSimon Schubert 215796c8dcSSimon Schubert #if !defined (ADA_LANG_H) 225796c8dcSSimon Schubert #define ADA_LANG_H 1 235796c8dcSSimon Schubert 245796c8dcSSimon Schubert struct frame_info; 25*a45ae5f8SJohn Marino struct inferior; 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 \ 485796c8dcSSimon Schubert "^[agis]-.*\\.ad[bs]$", 495796c8dcSSimon Schubert #endif 505796c8dcSSimon Schubert 515796c8dcSSimon Schubert /* Names of compiler-generated auxiliary functions probably of no 525796c8dcSSimon Schubert interest to users. Each name (a basic regular expression string) 535796c8dcSSimon Schubert is followed by a comma. */ 545796c8dcSSimon Schubert #define ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS \ 55c50c785cSJohn Marino "___clean[.$a-zA-Z0-9_]*$", \ 56c50c785cSJohn Marino "___finalizer[.$a-zA-Z0-9_]*$", 575796c8dcSSimon Schubert 585796c8dcSSimon Schubert /* The maximum number of frame levels searched for non-local, 595796c8dcSSimon Schubert * non-global symbols. This limit exists as a precaution to prevent 605796c8dcSSimon Schubert * infinite search loops when the stack is screwed up. */ 615796c8dcSSimon Schubert #define MAX_ENCLOSING_FRAME_LEVELS 7 625796c8dcSSimon Schubert 635796c8dcSSimon Schubert /* Maximum number of steps followed in looking for the ultimate 645796c8dcSSimon Schubert referent of a renaming. This prevents certain infinite loops that 655796c8dcSSimon Schubert can otherwise result. */ 665796c8dcSSimon Schubert #define MAX_RENAMING_CHAIN_LENGTH 10 675796c8dcSSimon Schubert 685796c8dcSSimon Schubert struct block; 695796c8dcSSimon Schubert 705796c8dcSSimon Schubert /* Corresponding encoded/decoded names and opcodes for Ada user-definable 715796c8dcSSimon Schubert operators. */ 725796c8dcSSimon Schubert struct ada_opname_map 735796c8dcSSimon Schubert { 745796c8dcSSimon Schubert const char *encoded; 755796c8dcSSimon Schubert const char *decoded; 765796c8dcSSimon Schubert enum exp_opcode op; 775796c8dcSSimon Schubert }; 785796c8dcSSimon Schubert 795796c8dcSSimon Schubert /* Table of Ada operators in encoded and decoded forms. */ 805796c8dcSSimon Schubert /* Defined in ada-lang.c */ 815796c8dcSSimon Schubert extern const struct ada_opname_map ada_opname_table[]; 825796c8dcSSimon Schubert 835796c8dcSSimon Schubert /* A tuple, (symbol, block), representing one instance of a 845796c8dcSSimon Schubert * symbol-lookup operation. */ 855796c8dcSSimon Schubert struct ada_symbol_info { 865796c8dcSSimon Schubert struct symbol* sym; 875796c8dcSSimon Schubert struct block* block; 885796c8dcSSimon Schubert }; 895796c8dcSSimon Schubert 905796c8dcSSimon Schubert /* Denotes a type of renaming symbol (see ada_parse_renaming). */ 915796c8dcSSimon Schubert enum ada_renaming_category 925796c8dcSSimon Schubert { 935796c8dcSSimon Schubert /* Indicates a symbol that does not encode a renaming. */ 945796c8dcSSimon Schubert ADA_NOT_RENAMING, 955796c8dcSSimon Schubert 965796c8dcSSimon Schubert /* For symbols declared 975796c8dcSSimon Schubert Foo : TYPE renamed OBJECT; */ 985796c8dcSSimon Schubert ADA_OBJECT_RENAMING, 995796c8dcSSimon Schubert 1005796c8dcSSimon Schubert /* For symbols declared 1015796c8dcSSimon Schubert Foo : exception renames EXCEPTION; */ 1025796c8dcSSimon Schubert ADA_EXCEPTION_RENAMING, 1035796c8dcSSimon Schubert /* For packages declared 1045796c8dcSSimon Schubert package Foo renames PACKAGE; */ 1055796c8dcSSimon Schubert ADA_PACKAGE_RENAMING, 1065796c8dcSSimon Schubert /* For subprograms declared 1075796c8dcSSimon Schubert SUBPROGRAM_SPEC renames SUBPROGRAM; 1085796c8dcSSimon Schubert (Currently not used). */ 1095796c8dcSSimon Schubert ADA_SUBPROGRAM_RENAMING 1105796c8dcSSimon Schubert }; 1115796c8dcSSimon Schubert 1125796c8dcSSimon Schubert /* Ada task structures. */ 1135796c8dcSSimon Schubert 1145796c8dcSSimon Schubert struct ada_task_info 1155796c8dcSSimon Schubert { 1165796c8dcSSimon Schubert /* The PTID of the thread that this task runs on. This ptid is computed 1175796c8dcSSimon Schubert in a target-dependent way from the associated Task Control Block. */ 1185796c8dcSSimon Schubert ptid_t ptid; 1195796c8dcSSimon Schubert 1205796c8dcSSimon Schubert /* The ID of the task. */ 1215796c8dcSSimon Schubert CORE_ADDR task_id; 1225796c8dcSSimon Schubert 1235796c8dcSSimon Schubert /* The name of the task. */ 1245796c8dcSSimon Schubert char name[257]; 1255796c8dcSSimon Schubert 1265796c8dcSSimon Schubert /* The current state of the task. */ 1275796c8dcSSimon Schubert int state; 1285796c8dcSSimon Schubert 1295796c8dcSSimon Schubert /* The priority associated to the task. */ 1305796c8dcSSimon Schubert int priority; 1315796c8dcSSimon Schubert 1325796c8dcSSimon Schubert /* If non-zero, the task ID of the parent task. */ 1335796c8dcSSimon Schubert CORE_ADDR parent; 1345796c8dcSSimon Schubert 1355796c8dcSSimon Schubert /* If the task is waiting on a task entry, this field contains 1365796c8dcSSimon Schubert the ID of the other task. Zero otherwise. */ 1375796c8dcSSimon Schubert CORE_ADDR called_task; 1385796c8dcSSimon Schubert 1395796c8dcSSimon Schubert /* If the task is accepting a rendezvous with another task, this field 1405796c8dcSSimon Schubert contains the ID of the calling task. Zero otherwise. */ 1415796c8dcSSimon Schubert CORE_ADDR caller_task; 1425796c8dcSSimon Schubert }; 1435796c8dcSSimon Schubert 1445796c8dcSSimon Schubert /* Assuming V points to an array of S objects, make sure that it contains at 1455796c8dcSSimon Schubert least M objects, updating V and S as necessary. */ 1465796c8dcSSimon Schubert 1475796c8dcSSimon Schubert #define GROW_VECT(v, s, m) \ 1485796c8dcSSimon Schubert if ((s) < (m)) (v) = grow_vect (v, &(s), m, sizeof *(v)); 1495796c8dcSSimon Schubert 1505796c8dcSSimon Schubert extern void *grow_vect (void *, size_t *, size_t, int); 1515796c8dcSSimon Schubert 1525796c8dcSSimon Schubert extern int ada_get_field_index (const struct type *type, 1535796c8dcSSimon Schubert const char *field_name, 1545796c8dcSSimon Schubert int maybe_missing); 1555796c8dcSSimon Schubert 1565796c8dcSSimon Schubert extern int ada_parse (void); /* Defined in ada-exp.y */ 1575796c8dcSSimon Schubert 1585796c8dcSSimon Schubert extern void ada_error (char *); /* Defined in ada-exp.y */ 1595796c8dcSSimon Schubert 1605796c8dcSSimon Schubert /* Defined in ada-typeprint.c */ 161cf7f2e2dSJohn Marino extern void ada_print_type (struct type *, const char *, struct ui_file *, int, 1625796c8dcSSimon Schubert int); 1635796c8dcSSimon Schubert 164cf7f2e2dSJohn Marino extern void ada_print_typedef (struct type *type, struct symbol *new_symbol, 165cf7f2e2dSJohn Marino struct ui_file *stream); 166cf7f2e2dSJohn Marino 1675796c8dcSSimon Schubert extern int ada_val_print (struct type *, const gdb_byte *, int, CORE_ADDR, 1685796c8dcSSimon Schubert struct ui_file *, int, 169cf7f2e2dSJohn Marino const struct value *, 1705796c8dcSSimon Schubert const struct value_print_options *); 1715796c8dcSSimon Schubert 1725796c8dcSSimon Schubert extern int ada_value_print (struct value *, struct ui_file *, 1735796c8dcSSimon Schubert const struct value_print_options *); 1745796c8dcSSimon Schubert 1755796c8dcSSimon Schubert /* Defined in ada-lang.c */ 1765796c8dcSSimon Schubert 1775796c8dcSSimon Schubert extern void ada_emit_char (int, struct type *, struct ui_file *, int, int); 1785796c8dcSSimon Schubert 1795796c8dcSSimon Schubert extern void ada_printchar (int, struct type *, struct ui_file *); 1805796c8dcSSimon Schubert 1815796c8dcSSimon Schubert extern void ada_printstr (struct ui_file *, struct type *, const gdb_byte *, 182cf7f2e2dSJohn Marino unsigned int, const char *, int, 1835796c8dcSSimon Schubert const struct value_print_options *); 1845796c8dcSSimon Schubert 1855796c8dcSSimon Schubert struct value *ada_convert_actual (struct value *actual, 186c50c785cSJohn Marino struct type *formal_type0); 1875796c8dcSSimon Schubert 1885796c8dcSSimon Schubert extern struct value *ada_value_subscript (struct value *, int, 1895796c8dcSSimon Schubert struct value **); 1905796c8dcSSimon Schubert 191cf7f2e2dSJohn Marino extern void ada_fixup_array_indexes_type (struct type *index_desc_type); 192cf7f2e2dSJohn Marino 1935796c8dcSSimon Schubert extern struct type *ada_array_element_type (struct type *, int); 1945796c8dcSSimon Schubert 1955796c8dcSSimon Schubert extern int ada_array_arity (struct type *); 1965796c8dcSSimon Schubert 1975796c8dcSSimon Schubert struct type *ada_type_of_array (struct value *, int); 1985796c8dcSSimon Schubert 1995796c8dcSSimon Schubert extern struct value *ada_coerce_to_simple_array_ptr (struct value *); 2005796c8dcSSimon Schubert 201c50c785cSJohn Marino struct value *ada_coerce_to_simple_array (struct value *); 202c50c785cSJohn Marino 2035796c8dcSSimon Schubert extern int ada_is_simple_array_type (struct type *); 2045796c8dcSSimon Schubert 2055796c8dcSSimon Schubert extern int ada_is_array_descriptor_type (struct type *); 2065796c8dcSSimon Schubert 2075796c8dcSSimon Schubert extern int ada_is_bogus_array_descriptor (struct type *); 2085796c8dcSSimon Schubert 209cf7f2e2dSJohn Marino extern LONGEST ada_discrete_type_low_bound (struct type *); 210cf7f2e2dSJohn Marino 211cf7f2e2dSJohn Marino extern LONGEST ada_discrete_type_high_bound (struct type *); 212cf7f2e2dSJohn Marino 2135796c8dcSSimon Schubert extern char *ada_decode_symbol (const struct general_symbol_info*); 2145796c8dcSSimon Schubert 2155796c8dcSSimon Schubert extern const char *ada_decode (const char*); 2165796c8dcSSimon Schubert 217cf7f2e2dSJohn Marino extern enum language ada_update_initial_language (enum language); 2185796c8dcSSimon Schubert 2195796c8dcSSimon Schubert extern void clear_ada_sym_cache (void); 2205796c8dcSSimon Schubert 2215796c8dcSSimon Schubert extern int ada_lookup_symbol_list (const char *, const struct block *, 2225796c8dcSSimon Schubert domain_enum, struct ada_symbol_info**); 2235796c8dcSSimon Schubert 2245796c8dcSSimon Schubert extern char *ada_fold_name (const char *); 2255796c8dcSSimon Schubert 2265796c8dcSSimon Schubert extern struct symbol *ada_lookup_symbol (const char *, const struct block *, 2275796c8dcSSimon Schubert domain_enum, int *); 2285796c8dcSSimon Schubert 2295796c8dcSSimon Schubert extern struct symbol * 2305796c8dcSSimon Schubert ada_lookup_encoded_symbol (const char *, const struct block *, 2315796c8dcSSimon Schubert domain_enum namespace, struct block **); 2325796c8dcSSimon Schubert 2335796c8dcSSimon Schubert extern struct minimal_symbol *ada_lookup_simple_minsym (const char *); 2345796c8dcSSimon Schubert 2355796c8dcSSimon Schubert extern void ada_fill_in_ada_prototype (struct symbol *); 2365796c8dcSSimon Schubert 2375796c8dcSSimon Schubert extern int user_select_syms (struct ada_symbol_info *, int, int); 2385796c8dcSSimon Schubert 2395796c8dcSSimon Schubert extern int get_selections (int *, int, int, int, char *); 2405796c8dcSSimon Schubert 2415796c8dcSSimon Schubert extern int ada_scan_number (const char *, int, LONGEST *, int *); 2425796c8dcSSimon Schubert 2435796c8dcSSimon Schubert extern struct type *ada_parent_type (struct type *); 2445796c8dcSSimon Schubert 2455796c8dcSSimon Schubert extern int ada_is_ignored_field (struct type *, int); 2465796c8dcSSimon Schubert 247cf7f2e2dSJohn Marino extern int ada_is_constrained_packed_array_type (struct type *); 2485796c8dcSSimon Schubert 2495796c8dcSSimon Schubert extern struct value *ada_value_primitive_packed_val (struct value *, 2505796c8dcSSimon Schubert const gdb_byte *, 2515796c8dcSSimon Schubert long, int, int, 2525796c8dcSSimon Schubert struct type *); 2535796c8dcSSimon Schubert 2545796c8dcSSimon Schubert extern struct type *ada_coerce_to_simple_array_type (struct type *); 2555796c8dcSSimon Schubert 2565796c8dcSSimon Schubert extern int ada_is_character_type (struct type *); 2575796c8dcSSimon Schubert 2585796c8dcSSimon Schubert extern int ada_is_string_type (struct type *); 2595796c8dcSSimon Schubert 2605796c8dcSSimon Schubert extern int ada_is_tagged_type (struct type *, int); 2615796c8dcSSimon Schubert 2625796c8dcSSimon Schubert extern int ada_is_tag_type (struct type *); 2635796c8dcSSimon Schubert 2645796c8dcSSimon Schubert extern struct type *ada_tag_type (struct value *); 2655796c8dcSSimon Schubert 2665796c8dcSSimon Schubert extern struct value *ada_value_tag (struct value *); 2675796c8dcSSimon Schubert 2685796c8dcSSimon Schubert extern const char *ada_tag_name (struct value *); 2695796c8dcSSimon Schubert 2705796c8dcSSimon Schubert extern int ada_is_parent_field (struct type *, int); 2715796c8dcSSimon Schubert 2725796c8dcSSimon Schubert extern int ada_is_wrapper_field (struct type *, int); 2735796c8dcSSimon Schubert 2745796c8dcSSimon Schubert extern int ada_is_variant_part (struct type *, int); 2755796c8dcSSimon Schubert 2765796c8dcSSimon Schubert extern struct type *ada_variant_discrim_type (struct type *, struct type *); 2775796c8dcSSimon Schubert 2785796c8dcSSimon Schubert extern int ada_is_others_clause (struct type *, int); 2795796c8dcSSimon Schubert 2805796c8dcSSimon Schubert extern int ada_in_variant (LONGEST, struct type *, int); 2815796c8dcSSimon Schubert 2825796c8dcSSimon Schubert extern char *ada_variant_discrim_name (struct type *); 2835796c8dcSSimon Schubert 2845796c8dcSSimon Schubert extern struct value *ada_value_struct_elt (struct value *, char *, int); 2855796c8dcSSimon Schubert 2865796c8dcSSimon Schubert extern int ada_is_aligner_type (struct type *); 2875796c8dcSSimon Schubert 2885796c8dcSSimon Schubert extern struct type *ada_aligned_type (struct type *); 2895796c8dcSSimon Schubert 2905796c8dcSSimon Schubert extern const gdb_byte *ada_aligned_value_addr (struct type *, 2915796c8dcSSimon Schubert const gdb_byte *); 2925796c8dcSSimon Schubert 2935796c8dcSSimon Schubert extern const char *ada_attribute_name (enum exp_opcode); 2945796c8dcSSimon Schubert 2955796c8dcSSimon Schubert extern int ada_is_fixed_point_type (struct type *); 2965796c8dcSSimon Schubert 2975796c8dcSSimon Schubert extern int ada_is_system_address_type (struct type *); 2985796c8dcSSimon Schubert 2995796c8dcSSimon Schubert extern DOUBLEST ada_delta (struct type *); 3005796c8dcSSimon Schubert 3015796c8dcSSimon Schubert extern DOUBLEST ada_fixed_to_float (struct type *, LONGEST); 3025796c8dcSSimon Schubert 3035796c8dcSSimon Schubert extern LONGEST ada_float_to_fixed (struct type *, DOUBLEST); 3045796c8dcSSimon Schubert 3055796c8dcSSimon Schubert extern struct type *ada_system_address_type (void); 3065796c8dcSSimon Schubert 3075796c8dcSSimon Schubert extern int ada_which_variant_applies (struct type *, struct type *, 3085796c8dcSSimon Schubert const gdb_byte *); 3095796c8dcSSimon Schubert 3105796c8dcSSimon Schubert extern struct type *ada_to_fixed_type (struct type *, const gdb_byte *, 3115796c8dcSSimon Schubert CORE_ADDR, struct value *, 3125796c8dcSSimon Schubert int check_tag); 3135796c8dcSSimon Schubert 314cf7f2e2dSJohn Marino extern struct value *ada_to_fixed_value (struct value *val); 315cf7f2e2dSJohn Marino 3165796c8dcSSimon Schubert extern struct type *ada_template_to_fixed_record_type_1 (struct type *type, 3175796c8dcSSimon Schubert const gdb_byte *valaddr, 3185796c8dcSSimon Schubert CORE_ADDR address, 3195796c8dcSSimon Schubert struct value *dval0, 3205796c8dcSSimon Schubert int keep_dynamic_fields); 3215796c8dcSSimon Schubert 3225796c8dcSSimon Schubert extern int ada_name_prefix_len (const char *); 3235796c8dcSSimon Schubert 3245796c8dcSSimon Schubert extern char *ada_type_name (struct type *); 3255796c8dcSSimon Schubert 3265796c8dcSSimon Schubert extern struct type *ada_find_parallel_type (struct type *, 3275796c8dcSSimon Schubert const char *suffix); 3285796c8dcSSimon Schubert 3295796c8dcSSimon Schubert extern LONGEST get_int_var_value (char *, int *); 3305796c8dcSSimon Schubert 3315796c8dcSSimon Schubert extern struct symbol *ada_find_any_symbol (const char *name); 3325796c8dcSSimon Schubert 3335796c8dcSSimon Schubert extern struct type *ada_find_any_type (const char *name); 3345796c8dcSSimon Schubert 3355796c8dcSSimon Schubert extern struct symbol *ada_find_renaming_symbol (const char *name, 3365796c8dcSSimon Schubert struct block *block); 3375796c8dcSSimon Schubert 3385796c8dcSSimon Schubert extern int ada_prefer_type (struct type *, struct type *); 3395796c8dcSSimon Schubert 3405796c8dcSSimon Schubert extern struct type *ada_get_base_type (struct type *); 3415796c8dcSSimon Schubert 3425796c8dcSSimon Schubert extern struct type *ada_check_typedef (struct type *); 3435796c8dcSSimon Schubert 3445796c8dcSSimon Schubert extern char *ada_encode (const char *); 3455796c8dcSSimon Schubert 3465796c8dcSSimon Schubert extern const char *ada_enum_name (const char *); 3475796c8dcSSimon Schubert 3485796c8dcSSimon Schubert extern int ada_is_modular_type (struct type *); 3495796c8dcSSimon Schubert 3505796c8dcSSimon Schubert extern ULONGEST ada_modulus (struct type *); 3515796c8dcSSimon Schubert 3525796c8dcSSimon Schubert extern struct value *ada_value_ind (struct value *); 3535796c8dcSSimon Schubert 3545796c8dcSSimon Schubert extern void ada_print_scalar (struct type *, LONGEST, struct ui_file *); 3555796c8dcSSimon Schubert 3565796c8dcSSimon Schubert extern int ada_is_range_type_name (const char *); 3575796c8dcSSimon Schubert 3585796c8dcSSimon Schubert extern enum ada_renaming_category ada_parse_renaming (struct symbol *, 3595796c8dcSSimon Schubert const char **, 3605796c8dcSSimon Schubert int *, const char **); 3615796c8dcSSimon Schubert 3625796c8dcSSimon Schubert extern void ada_find_printable_frame (struct frame_info *fi); 3635796c8dcSSimon Schubert 3645796c8dcSSimon Schubert extern char *ada_breakpoint_rewrite (char *, int *); 3655796c8dcSSimon Schubert 3665796c8dcSSimon Schubert extern char *ada_main_name (void); 3675796c8dcSSimon Schubert 368*a45ae5f8SJohn Marino extern char *ada_name_for_lookup (const char *name); 369*a45ae5f8SJohn Marino 3705796c8dcSSimon Schubert /* Tasking-related: ada-tasks.c */ 3715796c8dcSSimon Schubert 3725796c8dcSSimon Schubert extern int valid_task_id (int); 3735796c8dcSSimon Schubert 3745796c8dcSSimon Schubert extern int ada_get_task_number (ptid_t); 3755796c8dcSSimon Schubert 376c50c785cSJohn Marino typedef void (ada_task_list_iterator_ftype) (struct ada_task_info *task); 377c50c785cSJohn Marino extern void iterate_over_live_ada_tasks 378c50c785cSJohn Marino (ada_task_list_iterator_ftype *iterator); 379c50c785cSJohn Marino 380*a45ae5f8SJohn Marino extern int ada_build_task_list (void); 3815796c8dcSSimon Schubert 382*a45ae5f8SJohn Marino extern void print_ada_task_info (struct ui_out *uiout, 383*a45ae5f8SJohn Marino char *taskno_str, 384*a45ae5f8SJohn Marino struct inferior *inf); 3855796c8dcSSimon Schubert 3865796c8dcSSimon Schubert #endif 387