15796c8dcSSimon Schubert /* Ada language support definitions for GDB, the GNU debugger. 25796c8dcSSimon Schubert 35796c8dcSSimon Schubert Copyright (C) 1992, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 4*c50c785cSJohn Marino 2007, 2008, 2009, 2010, 2011 Free Software Foundation, 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; 255796c8dcSSimon Schubert 265796c8dcSSimon Schubert #include "value.h" 275796c8dcSSimon Schubert #include "gdbtypes.h" 285796c8dcSSimon Schubert #include "breakpoint.h" 295796c8dcSSimon Schubert 305796c8dcSSimon Schubert /* Names of specific files known to be part of the runtime 315796c8dcSSimon Schubert system and that might consider (confusing) debugging information. 325796c8dcSSimon Schubert Each name (a basic regular expression string) is followed by a 335796c8dcSSimon Schubert comma. FIXME: Should be part of a configuration file. */ 345796c8dcSSimon Schubert #if defined(__alpha__) && defined(__osf__) 355796c8dcSSimon Schubert #define ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS \ 365796c8dcSSimon Schubert "^[agis]-.*\\.ad[bs]$", \ 375796c8dcSSimon Schubert "/usr/shlib/libpthread\\.so", 385796c8dcSSimon Schubert #elif defined (__linux__) 395796c8dcSSimon Schubert #define ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS \ 405796c8dcSSimon Schubert "^[agis]-.*\\.ad[bs]$", \ 415796c8dcSSimon Schubert "/lib.*/libpthread\\.so[.0-9]*$", "/lib.*/libpthread\\.a$", \ 425796c8dcSSimon Schubert "/lib.*/libc\\.so[.0-9]*$", "/lib.*/libc\\.a$", 435796c8dcSSimon Schubert #endif 445796c8dcSSimon Schubert 455796c8dcSSimon Schubert #if !defined (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS) 465796c8dcSSimon Schubert #define ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS \ 475796c8dcSSimon Schubert "^[agis]-.*\\.ad[bs]$", 485796c8dcSSimon Schubert #endif 495796c8dcSSimon Schubert 505796c8dcSSimon Schubert /* Names of compiler-generated auxiliary functions probably of no 515796c8dcSSimon Schubert interest to users. Each name (a basic regular expression string) 525796c8dcSSimon Schubert is followed by a comma. */ 535796c8dcSSimon Schubert #define ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS \ 54*c50c785cSJohn Marino "___clean[.$a-zA-Z0-9_]*$", \ 55*c50c785cSJohn Marino "___finalizer[.$a-zA-Z0-9_]*$", 565796c8dcSSimon Schubert 575796c8dcSSimon Schubert /* The maximum number of frame levels searched for non-local, 585796c8dcSSimon Schubert * non-global symbols. This limit exists as a precaution to prevent 595796c8dcSSimon Schubert * infinite search loops when the stack is screwed up. */ 605796c8dcSSimon Schubert #define MAX_ENCLOSING_FRAME_LEVELS 7 615796c8dcSSimon Schubert 625796c8dcSSimon Schubert /* Maximum number of steps followed in looking for the ultimate 635796c8dcSSimon Schubert referent of a renaming. This prevents certain infinite loops that 645796c8dcSSimon Schubert can otherwise result. */ 655796c8dcSSimon Schubert #define MAX_RENAMING_CHAIN_LENGTH 10 665796c8dcSSimon Schubert 675796c8dcSSimon Schubert struct block; 685796c8dcSSimon Schubert 695796c8dcSSimon Schubert /* Corresponding encoded/decoded names and opcodes for Ada user-definable 705796c8dcSSimon Schubert operators. */ 715796c8dcSSimon Schubert struct ada_opname_map 725796c8dcSSimon Schubert { 735796c8dcSSimon Schubert const char *encoded; 745796c8dcSSimon Schubert const char *decoded; 755796c8dcSSimon Schubert enum exp_opcode op; 765796c8dcSSimon Schubert }; 775796c8dcSSimon Schubert 785796c8dcSSimon Schubert /* Table of Ada operators in encoded and decoded forms. */ 795796c8dcSSimon Schubert /* Defined in ada-lang.c */ 805796c8dcSSimon Schubert extern const struct ada_opname_map ada_opname_table[]; 815796c8dcSSimon Schubert 825796c8dcSSimon Schubert /* A tuple, (symbol, block), representing one instance of a 835796c8dcSSimon Schubert * symbol-lookup operation. */ 845796c8dcSSimon Schubert struct ada_symbol_info { 855796c8dcSSimon Schubert struct symbol* sym; 865796c8dcSSimon Schubert struct block* block; 875796c8dcSSimon Schubert }; 885796c8dcSSimon Schubert 895796c8dcSSimon Schubert /* Denotes a type of renaming symbol (see ada_parse_renaming). */ 905796c8dcSSimon Schubert enum ada_renaming_category 915796c8dcSSimon Schubert { 925796c8dcSSimon Schubert /* Indicates a symbol that does not encode a renaming. */ 935796c8dcSSimon Schubert ADA_NOT_RENAMING, 945796c8dcSSimon Schubert 955796c8dcSSimon Schubert /* For symbols declared 965796c8dcSSimon Schubert Foo : TYPE renamed OBJECT; */ 975796c8dcSSimon Schubert ADA_OBJECT_RENAMING, 985796c8dcSSimon Schubert 995796c8dcSSimon Schubert /* For symbols declared 1005796c8dcSSimon Schubert Foo : exception renames EXCEPTION; */ 1015796c8dcSSimon Schubert ADA_EXCEPTION_RENAMING, 1025796c8dcSSimon Schubert /* For packages declared 1035796c8dcSSimon Schubert package Foo renames PACKAGE; */ 1045796c8dcSSimon Schubert ADA_PACKAGE_RENAMING, 1055796c8dcSSimon Schubert /* For subprograms declared 1065796c8dcSSimon Schubert SUBPROGRAM_SPEC renames SUBPROGRAM; 1075796c8dcSSimon Schubert (Currently not used). */ 1085796c8dcSSimon Schubert ADA_SUBPROGRAM_RENAMING 1095796c8dcSSimon Schubert }; 1105796c8dcSSimon Schubert 1115796c8dcSSimon Schubert /* Ada task structures. */ 1125796c8dcSSimon Schubert 1135796c8dcSSimon Schubert struct ada_task_info 1145796c8dcSSimon Schubert { 1155796c8dcSSimon Schubert /* The PTID of the thread that this task runs on. This ptid is computed 1165796c8dcSSimon Schubert in a target-dependent way from the associated Task Control Block. */ 1175796c8dcSSimon Schubert ptid_t ptid; 1185796c8dcSSimon Schubert 1195796c8dcSSimon Schubert /* The ID of the task. */ 1205796c8dcSSimon Schubert CORE_ADDR task_id; 1215796c8dcSSimon Schubert 1225796c8dcSSimon Schubert /* The name of the task. */ 1235796c8dcSSimon Schubert char name[257]; 1245796c8dcSSimon Schubert 1255796c8dcSSimon Schubert /* The current state of the task. */ 1265796c8dcSSimon Schubert int state; 1275796c8dcSSimon Schubert 1285796c8dcSSimon Schubert /* The priority associated to the task. */ 1295796c8dcSSimon Schubert int priority; 1305796c8dcSSimon Schubert 1315796c8dcSSimon Schubert /* If non-zero, the task ID of the parent task. */ 1325796c8dcSSimon Schubert CORE_ADDR parent; 1335796c8dcSSimon Schubert 1345796c8dcSSimon Schubert /* If the task is waiting on a task entry, this field contains 1355796c8dcSSimon Schubert the ID of the other task. Zero otherwise. */ 1365796c8dcSSimon Schubert CORE_ADDR called_task; 1375796c8dcSSimon Schubert 1385796c8dcSSimon Schubert /* If the task is accepting a rendezvous with another task, this field 1395796c8dcSSimon Schubert contains the ID of the calling task. Zero otherwise. */ 1405796c8dcSSimon Schubert CORE_ADDR caller_task; 1415796c8dcSSimon Schubert }; 1425796c8dcSSimon Schubert 1435796c8dcSSimon Schubert /* Assuming V points to an array of S objects, make sure that it contains at 1445796c8dcSSimon Schubert least M objects, updating V and S as necessary. */ 1455796c8dcSSimon Schubert 1465796c8dcSSimon Schubert #define GROW_VECT(v, s, m) \ 1475796c8dcSSimon Schubert if ((s) < (m)) (v) = grow_vect (v, &(s), m, sizeof *(v)); 1485796c8dcSSimon Schubert 1495796c8dcSSimon Schubert extern void *grow_vect (void *, size_t *, size_t, int); 1505796c8dcSSimon Schubert 1515796c8dcSSimon Schubert extern int ada_get_field_index (const struct type *type, 1525796c8dcSSimon Schubert const char *field_name, 1535796c8dcSSimon Schubert int maybe_missing); 1545796c8dcSSimon Schubert 1555796c8dcSSimon Schubert extern int ada_parse (void); /* Defined in ada-exp.y */ 1565796c8dcSSimon Schubert 1575796c8dcSSimon Schubert extern void ada_error (char *); /* Defined in ada-exp.y */ 1585796c8dcSSimon Schubert 1595796c8dcSSimon Schubert /* Defined in ada-typeprint.c */ 160cf7f2e2dSJohn Marino extern void ada_print_type (struct type *, const char *, struct ui_file *, int, 1615796c8dcSSimon Schubert int); 1625796c8dcSSimon Schubert 163cf7f2e2dSJohn Marino extern void ada_print_typedef (struct type *type, struct symbol *new_symbol, 164cf7f2e2dSJohn Marino struct ui_file *stream); 165cf7f2e2dSJohn Marino 1665796c8dcSSimon Schubert extern int ada_val_print (struct type *, const gdb_byte *, int, CORE_ADDR, 1675796c8dcSSimon Schubert struct ui_file *, int, 168cf7f2e2dSJohn Marino const struct value *, 1695796c8dcSSimon Schubert const struct value_print_options *); 1705796c8dcSSimon Schubert 1715796c8dcSSimon Schubert extern int ada_value_print (struct value *, struct ui_file *, 1725796c8dcSSimon Schubert const struct value_print_options *); 1735796c8dcSSimon Schubert 1745796c8dcSSimon Schubert /* Defined in ada-lang.c */ 1755796c8dcSSimon Schubert 1765796c8dcSSimon Schubert extern void ada_emit_char (int, struct type *, struct ui_file *, int, int); 1775796c8dcSSimon Schubert 1785796c8dcSSimon Schubert extern void ada_printchar (int, struct type *, struct ui_file *); 1795796c8dcSSimon Schubert 1805796c8dcSSimon Schubert extern void ada_printstr (struct ui_file *, struct type *, const gdb_byte *, 181cf7f2e2dSJohn Marino unsigned int, const char *, int, 1825796c8dcSSimon Schubert const struct value_print_options *); 1835796c8dcSSimon Schubert 1845796c8dcSSimon Schubert struct value *ada_convert_actual (struct value *actual, 185*c50c785cSJohn Marino struct type *formal_type0); 1865796c8dcSSimon Schubert 1875796c8dcSSimon Schubert extern struct value *ada_value_subscript (struct value *, int, 1885796c8dcSSimon Schubert struct value **); 1895796c8dcSSimon Schubert 190cf7f2e2dSJohn Marino extern void ada_fixup_array_indexes_type (struct type *index_desc_type); 191cf7f2e2dSJohn Marino 1925796c8dcSSimon Schubert extern struct type *ada_array_element_type (struct type *, int); 1935796c8dcSSimon Schubert 1945796c8dcSSimon Schubert extern int ada_array_arity (struct type *); 1955796c8dcSSimon Schubert 1965796c8dcSSimon Schubert struct type *ada_type_of_array (struct value *, int); 1975796c8dcSSimon Schubert 1985796c8dcSSimon Schubert extern struct value *ada_coerce_to_simple_array_ptr (struct value *); 1995796c8dcSSimon Schubert 200*c50c785cSJohn Marino struct value *ada_coerce_to_simple_array (struct value *); 201*c50c785cSJohn Marino 2025796c8dcSSimon Schubert extern int ada_is_simple_array_type (struct type *); 2035796c8dcSSimon Schubert 2045796c8dcSSimon Schubert extern int ada_is_array_descriptor_type (struct type *); 2055796c8dcSSimon Schubert 2065796c8dcSSimon Schubert extern int ada_is_bogus_array_descriptor (struct type *); 2075796c8dcSSimon Schubert 208cf7f2e2dSJohn Marino extern LONGEST ada_discrete_type_low_bound (struct type *); 209cf7f2e2dSJohn Marino 210cf7f2e2dSJohn Marino extern LONGEST ada_discrete_type_high_bound (struct type *); 211cf7f2e2dSJohn Marino 2125796c8dcSSimon Schubert extern char *ada_decode_symbol (const struct general_symbol_info*); 2135796c8dcSSimon Schubert 2145796c8dcSSimon Schubert extern const char *ada_decode (const char*); 2155796c8dcSSimon Schubert 216cf7f2e2dSJohn Marino extern enum language ada_update_initial_language (enum language); 2175796c8dcSSimon Schubert 2185796c8dcSSimon Schubert extern void clear_ada_sym_cache (void); 2195796c8dcSSimon Schubert 2205796c8dcSSimon Schubert extern int ada_lookup_symbol_list (const char *, const struct block *, 2215796c8dcSSimon Schubert domain_enum, struct ada_symbol_info**); 2225796c8dcSSimon Schubert 2235796c8dcSSimon Schubert extern char *ada_fold_name (const char *); 2245796c8dcSSimon Schubert 2255796c8dcSSimon Schubert extern struct symbol *ada_lookup_symbol (const char *, const struct block *, 2265796c8dcSSimon Schubert domain_enum, int *); 2275796c8dcSSimon Schubert 2285796c8dcSSimon Schubert extern struct symbol * 2295796c8dcSSimon Schubert ada_lookup_encoded_symbol (const char *, const struct block *, 2305796c8dcSSimon Schubert domain_enum namespace, struct block **); 2315796c8dcSSimon Schubert 2325796c8dcSSimon Schubert extern struct minimal_symbol *ada_lookup_simple_minsym (const char *); 2335796c8dcSSimon Schubert 2345796c8dcSSimon Schubert extern void ada_fill_in_ada_prototype (struct symbol *); 2355796c8dcSSimon Schubert 2365796c8dcSSimon Schubert extern int user_select_syms (struct ada_symbol_info *, int, int); 2375796c8dcSSimon Schubert 2385796c8dcSSimon Schubert extern int get_selections (int *, int, int, int, char *); 2395796c8dcSSimon Schubert 2405796c8dcSSimon Schubert extern char *ada_start_decode_line_1 (char *); 2415796c8dcSSimon Schubert 2425796c8dcSSimon Schubert extern struct symtabs_and_lines ada_finish_decode_line_1 (char **, 2435796c8dcSSimon Schubert struct symtab *, 2445796c8dcSSimon Schubert int, char ***); 2455796c8dcSSimon Schubert 2465796c8dcSSimon Schubert extern struct symtabs_and_lines ada_sals_for_line (const char*, int, 2475796c8dcSSimon Schubert int, char***, int); 2485796c8dcSSimon Schubert 2495796c8dcSSimon Schubert extern int ada_scan_number (const char *, int, LONGEST *, int *); 2505796c8dcSSimon Schubert 2515796c8dcSSimon Schubert extern struct type *ada_parent_type (struct type *); 2525796c8dcSSimon Schubert 2535796c8dcSSimon Schubert extern int ada_is_ignored_field (struct type *, int); 2545796c8dcSSimon Schubert 255cf7f2e2dSJohn Marino extern int ada_is_constrained_packed_array_type (struct type *); 2565796c8dcSSimon Schubert 2575796c8dcSSimon Schubert extern struct value *ada_value_primitive_packed_val (struct value *, 2585796c8dcSSimon Schubert const gdb_byte *, 2595796c8dcSSimon Schubert long, int, int, 2605796c8dcSSimon Schubert struct type *); 2615796c8dcSSimon Schubert 2625796c8dcSSimon Schubert extern struct type *ada_coerce_to_simple_array_type (struct type *); 2635796c8dcSSimon Schubert 2645796c8dcSSimon Schubert extern int ada_is_character_type (struct type *); 2655796c8dcSSimon Schubert 2665796c8dcSSimon Schubert extern int ada_is_string_type (struct type *); 2675796c8dcSSimon Schubert 2685796c8dcSSimon Schubert extern int ada_is_tagged_type (struct type *, int); 2695796c8dcSSimon Schubert 2705796c8dcSSimon Schubert extern int ada_is_tag_type (struct type *); 2715796c8dcSSimon Schubert 2725796c8dcSSimon Schubert extern struct type *ada_tag_type (struct value *); 2735796c8dcSSimon Schubert 2745796c8dcSSimon Schubert extern struct value *ada_value_tag (struct value *); 2755796c8dcSSimon Schubert 2765796c8dcSSimon Schubert extern const char *ada_tag_name (struct value *); 2775796c8dcSSimon Schubert 2785796c8dcSSimon Schubert extern int ada_is_parent_field (struct type *, int); 2795796c8dcSSimon Schubert 2805796c8dcSSimon Schubert extern int ada_is_wrapper_field (struct type *, int); 2815796c8dcSSimon Schubert 2825796c8dcSSimon Schubert extern int ada_is_variant_part (struct type *, int); 2835796c8dcSSimon Schubert 2845796c8dcSSimon Schubert extern struct type *ada_variant_discrim_type (struct type *, struct type *); 2855796c8dcSSimon Schubert 2865796c8dcSSimon Schubert extern int ada_is_others_clause (struct type *, int); 2875796c8dcSSimon Schubert 2885796c8dcSSimon Schubert extern int ada_in_variant (LONGEST, struct type *, int); 2895796c8dcSSimon Schubert 2905796c8dcSSimon Schubert extern char *ada_variant_discrim_name (struct type *); 2915796c8dcSSimon Schubert 2925796c8dcSSimon Schubert extern struct value *ada_value_struct_elt (struct value *, char *, int); 2935796c8dcSSimon Schubert 2945796c8dcSSimon Schubert extern int ada_is_aligner_type (struct type *); 2955796c8dcSSimon Schubert 2965796c8dcSSimon Schubert extern struct type *ada_aligned_type (struct type *); 2975796c8dcSSimon Schubert 2985796c8dcSSimon Schubert extern const gdb_byte *ada_aligned_value_addr (struct type *, 2995796c8dcSSimon Schubert const gdb_byte *); 3005796c8dcSSimon Schubert 3015796c8dcSSimon Schubert extern const char *ada_attribute_name (enum exp_opcode); 3025796c8dcSSimon Schubert 3035796c8dcSSimon Schubert extern int ada_is_fixed_point_type (struct type *); 3045796c8dcSSimon Schubert 3055796c8dcSSimon Schubert extern int ada_is_system_address_type (struct type *); 3065796c8dcSSimon Schubert 3075796c8dcSSimon Schubert extern DOUBLEST ada_delta (struct type *); 3085796c8dcSSimon Schubert 3095796c8dcSSimon Schubert extern DOUBLEST ada_fixed_to_float (struct type *, LONGEST); 3105796c8dcSSimon Schubert 3115796c8dcSSimon Schubert extern LONGEST ada_float_to_fixed (struct type *, DOUBLEST); 3125796c8dcSSimon Schubert 3135796c8dcSSimon Schubert extern struct type *ada_system_address_type (void); 3145796c8dcSSimon Schubert 3155796c8dcSSimon Schubert extern int ada_which_variant_applies (struct type *, struct type *, 3165796c8dcSSimon Schubert const gdb_byte *); 3175796c8dcSSimon Schubert 3185796c8dcSSimon Schubert extern struct type *ada_to_fixed_type (struct type *, const gdb_byte *, 3195796c8dcSSimon Schubert CORE_ADDR, struct value *, 3205796c8dcSSimon Schubert int check_tag); 3215796c8dcSSimon Schubert 322cf7f2e2dSJohn Marino extern struct value *ada_to_fixed_value (struct value *val); 323cf7f2e2dSJohn Marino 3245796c8dcSSimon Schubert extern struct type *ada_template_to_fixed_record_type_1 (struct type *type, 3255796c8dcSSimon Schubert const gdb_byte *valaddr, 3265796c8dcSSimon Schubert CORE_ADDR address, 3275796c8dcSSimon Schubert struct value *dval0, 3285796c8dcSSimon Schubert int keep_dynamic_fields); 3295796c8dcSSimon Schubert 3305796c8dcSSimon Schubert extern int ada_name_prefix_len (const char *); 3315796c8dcSSimon Schubert 3325796c8dcSSimon Schubert extern char *ada_type_name (struct type *); 3335796c8dcSSimon Schubert 3345796c8dcSSimon Schubert extern struct type *ada_find_parallel_type (struct type *, 3355796c8dcSSimon Schubert const char *suffix); 3365796c8dcSSimon Schubert 3375796c8dcSSimon Schubert extern LONGEST get_int_var_value (char *, int *); 3385796c8dcSSimon Schubert 3395796c8dcSSimon Schubert extern struct symbol *ada_find_any_symbol (const char *name); 3405796c8dcSSimon Schubert 3415796c8dcSSimon Schubert extern struct type *ada_find_any_type (const char *name); 3425796c8dcSSimon Schubert 3435796c8dcSSimon Schubert extern struct symbol *ada_find_renaming_symbol (const char *name, 3445796c8dcSSimon Schubert struct block *block); 3455796c8dcSSimon Schubert 3465796c8dcSSimon Schubert extern int ada_prefer_type (struct type *, struct type *); 3475796c8dcSSimon Schubert 3485796c8dcSSimon Schubert extern struct type *ada_get_base_type (struct type *); 3495796c8dcSSimon Schubert 3505796c8dcSSimon Schubert extern struct type *ada_check_typedef (struct type *); 3515796c8dcSSimon Schubert 3525796c8dcSSimon Schubert extern char *ada_encode (const char *); 3535796c8dcSSimon Schubert 3545796c8dcSSimon Schubert extern const char *ada_enum_name (const char *); 3555796c8dcSSimon Schubert 3565796c8dcSSimon Schubert extern int ada_is_modular_type (struct type *); 3575796c8dcSSimon Schubert 3585796c8dcSSimon Schubert extern ULONGEST ada_modulus (struct type *); 3595796c8dcSSimon Schubert 3605796c8dcSSimon Schubert extern struct value *ada_value_ind (struct value *); 3615796c8dcSSimon Schubert 3625796c8dcSSimon Schubert extern void ada_print_scalar (struct type *, LONGEST, struct ui_file *); 3635796c8dcSSimon Schubert 3645796c8dcSSimon Schubert extern int ada_is_range_type_name (const char *); 3655796c8dcSSimon Schubert 3665796c8dcSSimon Schubert extern enum ada_renaming_category ada_parse_renaming (struct symbol *, 3675796c8dcSSimon Schubert const char **, 3685796c8dcSSimon Schubert int *, const char **); 3695796c8dcSSimon Schubert 3705796c8dcSSimon Schubert extern void ada_find_printable_frame (struct frame_info *fi); 3715796c8dcSSimon Schubert 3725796c8dcSSimon Schubert extern char *ada_breakpoint_rewrite (char *, int *); 3735796c8dcSSimon Schubert 3745796c8dcSSimon Schubert extern char *ada_main_name (void); 3755796c8dcSSimon Schubert 3765796c8dcSSimon Schubert /* Tasking-related: ada-tasks.c */ 3775796c8dcSSimon Schubert 3785796c8dcSSimon Schubert extern int valid_task_id (int); 3795796c8dcSSimon Schubert 3805796c8dcSSimon Schubert extern int ada_get_task_number (ptid_t); 3815796c8dcSSimon Schubert 382*c50c785cSJohn Marino typedef void (ada_task_list_iterator_ftype) (struct ada_task_info *task); 383*c50c785cSJohn Marino extern void iterate_over_live_ada_tasks 384*c50c785cSJohn Marino (ada_task_list_iterator_ftype *iterator); 385*c50c785cSJohn Marino 3865796c8dcSSimon Schubert extern int ada_build_task_list (int warn_if_null); 3875796c8dcSSimon Schubert 3885796c8dcSSimon Schubert extern int ada_exception_catchpoint_p (struct breakpoint *b); 3895796c8dcSSimon Schubert 3905796c8dcSSimon Schubert extern struct symtab_and_line 3915796c8dcSSimon Schubert ada_decode_exception_location (char *args, char **addr_string, 3925796c8dcSSimon Schubert char **exp_string, char **cond_string, 3935796c8dcSSimon Schubert struct expression **cond, 3945796c8dcSSimon Schubert struct breakpoint_ops **ops); 3955796c8dcSSimon Schubert 3965796c8dcSSimon Schubert extern struct symtab_and_line 3975796c8dcSSimon Schubert ada_decode_assert_location (char *args, char **addr_string, 3985796c8dcSSimon Schubert struct breakpoint_ops **ops); 3995796c8dcSSimon Schubert 4005796c8dcSSimon Schubert 4015796c8dcSSimon Schubert #endif 402