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*cf7f2e2dSJohn Marino 2007, 2008, 2009, 2010 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 \ 545796c8dcSSimon Schubert "___clean[.$a-zA-Z0-9_]*$", 555796c8dcSSimon Schubert 565796c8dcSSimon Schubert /* The maximum number of frame levels searched for non-local, 575796c8dcSSimon Schubert * non-global symbols. This limit exists as a precaution to prevent 585796c8dcSSimon Schubert * infinite search loops when the stack is screwed up. */ 595796c8dcSSimon Schubert #define MAX_ENCLOSING_FRAME_LEVELS 7 605796c8dcSSimon Schubert 615796c8dcSSimon Schubert /* Maximum number of steps followed in looking for the ultimate 625796c8dcSSimon Schubert referent of a renaming. This prevents certain infinite loops that 635796c8dcSSimon Schubert can otherwise result. */ 645796c8dcSSimon Schubert #define MAX_RENAMING_CHAIN_LENGTH 10 655796c8dcSSimon Schubert 665796c8dcSSimon Schubert struct block; 675796c8dcSSimon Schubert 685796c8dcSSimon Schubert /* Corresponding encoded/decoded names and opcodes for Ada user-definable 695796c8dcSSimon Schubert operators. */ 705796c8dcSSimon Schubert struct ada_opname_map 715796c8dcSSimon Schubert { 725796c8dcSSimon Schubert const char *encoded; 735796c8dcSSimon Schubert const char *decoded; 745796c8dcSSimon Schubert enum exp_opcode op; 755796c8dcSSimon Schubert }; 765796c8dcSSimon Schubert 775796c8dcSSimon Schubert /* Table of Ada operators in encoded and decoded forms. */ 785796c8dcSSimon Schubert /* Defined in ada-lang.c */ 795796c8dcSSimon Schubert extern const struct ada_opname_map ada_opname_table[]; 805796c8dcSSimon Schubert 815796c8dcSSimon Schubert /* A tuple, (symbol, block), representing one instance of a 825796c8dcSSimon Schubert * symbol-lookup operation. */ 835796c8dcSSimon Schubert struct ada_symbol_info { 845796c8dcSSimon Schubert struct symbol* sym; 855796c8dcSSimon Schubert struct block* block; 865796c8dcSSimon Schubert }; 875796c8dcSSimon Schubert 885796c8dcSSimon Schubert /* Denotes a type of renaming symbol (see ada_parse_renaming). */ 895796c8dcSSimon Schubert enum ada_renaming_category 905796c8dcSSimon Schubert { 915796c8dcSSimon Schubert /* Indicates a symbol that does not encode a renaming. */ 925796c8dcSSimon Schubert ADA_NOT_RENAMING, 935796c8dcSSimon Schubert 945796c8dcSSimon Schubert /* For symbols declared 955796c8dcSSimon Schubert Foo : TYPE renamed OBJECT; */ 965796c8dcSSimon Schubert ADA_OBJECT_RENAMING, 975796c8dcSSimon Schubert 985796c8dcSSimon Schubert /* For symbols declared 995796c8dcSSimon Schubert Foo : exception renames EXCEPTION; */ 1005796c8dcSSimon Schubert ADA_EXCEPTION_RENAMING, 1015796c8dcSSimon Schubert /* For packages declared 1025796c8dcSSimon Schubert package Foo renames PACKAGE; */ 1035796c8dcSSimon Schubert ADA_PACKAGE_RENAMING, 1045796c8dcSSimon Schubert /* For subprograms declared 1055796c8dcSSimon Schubert SUBPROGRAM_SPEC renames SUBPROGRAM; 1065796c8dcSSimon Schubert (Currently not used). */ 1075796c8dcSSimon Schubert ADA_SUBPROGRAM_RENAMING 1085796c8dcSSimon Schubert }; 1095796c8dcSSimon Schubert 1105796c8dcSSimon Schubert /* Ada task structures. */ 1115796c8dcSSimon Schubert 1125796c8dcSSimon Schubert struct ada_task_info 1135796c8dcSSimon Schubert { 1145796c8dcSSimon Schubert /* The PTID of the thread that this task runs on. This ptid is computed 1155796c8dcSSimon Schubert in a target-dependent way from the associated Task Control Block. */ 1165796c8dcSSimon Schubert ptid_t ptid; 1175796c8dcSSimon Schubert 1185796c8dcSSimon Schubert /* The ID of the task. */ 1195796c8dcSSimon Schubert CORE_ADDR task_id; 1205796c8dcSSimon Schubert 1215796c8dcSSimon Schubert /* The name of the task. */ 1225796c8dcSSimon Schubert char name[257]; 1235796c8dcSSimon Schubert 1245796c8dcSSimon Schubert /* The current state of the task. */ 1255796c8dcSSimon Schubert int state; 1265796c8dcSSimon Schubert 1275796c8dcSSimon Schubert /* The priority associated to the task. */ 1285796c8dcSSimon Schubert int priority; 1295796c8dcSSimon Schubert 1305796c8dcSSimon Schubert /* If non-zero, the task ID of the parent task. */ 1315796c8dcSSimon Schubert CORE_ADDR parent; 1325796c8dcSSimon Schubert 1335796c8dcSSimon Schubert /* If the task is waiting on a task entry, this field contains 1345796c8dcSSimon Schubert the ID of the other task. Zero otherwise. */ 1355796c8dcSSimon Schubert CORE_ADDR called_task; 1365796c8dcSSimon Schubert 1375796c8dcSSimon Schubert /* If the task is accepting a rendezvous with another task, this field 1385796c8dcSSimon Schubert contains the ID of the calling task. Zero otherwise. */ 1395796c8dcSSimon Schubert CORE_ADDR caller_task; 1405796c8dcSSimon Schubert }; 1415796c8dcSSimon Schubert 1425796c8dcSSimon Schubert /* Assuming V points to an array of S objects, make sure that it contains at 1435796c8dcSSimon Schubert least M objects, updating V and S as necessary. */ 1445796c8dcSSimon Schubert 1455796c8dcSSimon Schubert #define GROW_VECT(v, s, m) \ 1465796c8dcSSimon Schubert if ((s) < (m)) (v) = grow_vect (v, &(s), m, sizeof *(v)); 1475796c8dcSSimon Schubert 1485796c8dcSSimon Schubert extern void *grow_vect (void *, size_t *, size_t, int); 1495796c8dcSSimon Schubert 1505796c8dcSSimon Schubert extern int ada_get_field_index (const struct type *type, 1515796c8dcSSimon Schubert const char *field_name, 1525796c8dcSSimon Schubert int maybe_missing); 1535796c8dcSSimon Schubert 1545796c8dcSSimon Schubert extern int ada_parse (void); /* Defined in ada-exp.y */ 1555796c8dcSSimon Schubert 1565796c8dcSSimon Schubert extern void ada_error (char *); /* Defined in ada-exp.y */ 1575796c8dcSSimon Schubert 1585796c8dcSSimon Schubert /* Defined in ada-typeprint.c */ 159*cf7f2e2dSJohn Marino extern void ada_print_type (struct type *, const char *, struct ui_file *, int, 1605796c8dcSSimon Schubert int); 1615796c8dcSSimon Schubert 162*cf7f2e2dSJohn Marino extern void ada_print_typedef (struct type *type, struct symbol *new_symbol, 163*cf7f2e2dSJohn Marino struct ui_file *stream); 164*cf7f2e2dSJohn Marino 1655796c8dcSSimon Schubert extern int ada_val_print (struct type *, const gdb_byte *, int, CORE_ADDR, 1665796c8dcSSimon Schubert struct ui_file *, int, 167*cf7f2e2dSJohn Marino const struct value *, 1685796c8dcSSimon Schubert const struct value_print_options *); 1695796c8dcSSimon Schubert 1705796c8dcSSimon Schubert extern int ada_value_print (struct value *, struct ui_file *, 1715796c8dcSSimon Schubert const struct value_print_options *); 1725796c8dcSSimon Schubert 1735796c8dcSSimon Schubert /* Defined in ada-lang.c */ 1745796c8dcSSimon Schubert 1755796c8dcSSimon Schubert extern void ada_emit_char (int, struct type *, struct ui_file *, int, int); 1765796c8dcSSimon Schubert 1775796c8dcSSimon Schubert extern void ada_printchar (int, struct type *, struct ui_file *); 1785796c8dcSSimon Schubert 1795796c8dcSSimon Schubert extern void ada_printstr (struct ui_file *, struct type *, const gdb_byte *, 180*cf7f2e2dSJohn Marino unsigned int, const char *, int, 1815796c8dcSSimon Schubert const struct value_print_options *); 1825796c8dcSSimon Schubert 1835796c8dcSSimon Schubert struct value *ada_convert_actual (struct value *actual, 1845796c8dcSSimon Schubert struct type *formal_type0, 1855796c8dcSSimon Schubert struct gdbarch *gdbarch, 1865796c8dcSSimon Schubert CORE_ADDR *sp); 1875796c8dcSSimon Schubert 1885796c8dcSSimon Schubert extern struct value *ada_value_subscript (struct value *, int, 1895796c8dcSSimon Schubert struct value **); 1905796c8dcSSimon Schubert 191*cf7f2e2dSJohn Marino extern void ada_fixup_array_indexes_type (struct type *index_desc_type); 192*cf7f2e2dSJohn 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 2015796c8dcSSimon Schubert extern int ada_is_simple_array_type (struct type *); 2025796c8dcSSimon Schubert 2035796c8dcSSimon Schubert extern int ada_is_array_descriptor_type (struct type *); 2045796c8dcSSimon Schubert 2055796c8dcSSimon Schubert extern int ada_is_bogus_array_descriptor (struct type *); 2065796c8dcSSimon Schubert 207*cf7f2e2dSJohn Marino extern LONGEST ada_discrete_type_low_bound (struct type *); 208*cf7f2e2dSJohn Marino 209*cf7f2e2dSJohn Marino extern LONGEST ada_discrete_type_high_bound (struct type *); 210*cf7f2e2dSJohn Marino 2115796c8dcSSimon Schubert extern char *ada_decode_symbol (const struct general_symbol_info*); 2125796c8dcSSimon Schubert 2135796c8dcSSimon Schubert extern const char *ada_decode (const char*); 2145796c8dcSSimon Schubert 215*cf7f2e2dSJohn Marino extern enum language ada_update_initial_language (enum language); 2165796c8dcSSimon Schubert 2175796c8dcSSimon Schubert extern void clear_ada_sym_cache (void); 2185796c8dcSSimon Schubert 2195796c8dcSSimon Schubert extern int ada_lookup_symbol_list (const char *, const struct block *, 2205796c8dcSSimon Schubert domain_enum, struct ada_symbol_info**); 2215796c8dcSSimon Schubert 2225796c8dcSSimon Schubert extern char *ada_fold_name (const char *); 2235796c8dcSSimon Schubert 2245796c8dcSSimon Schubert extern struct symbol *ada_lookup_symbol (const char *, const struct block *, 2255796c8dcSSimon Schubert domain_enum, int *); 2265796c8dcSSimon Schubert 2275796c8dcSSimon Schubert extern struct symbol * 2285796c8dcSSimon Schubert ada_lookup_encoded_symbol (const char *, const struct block *, 2295796c8dcSSimon Schubert domain_enum namespace, struct block **); 2305796c8dcSSimon Schubert 2315796c8dcSSimon Schubert extern struct minimal_symbol *ada_lookup_simple_minsym (const char *); 2325796c8dcSSimon Schubert 2335796c8dcSSimon Schubert extern void ada_fill_in_ada_prototype (struct symbol *); 2345796c8dcSSimon Schubert 2355796c8dcSSimon Schubert extern int user_select_syms (struct ada_symbol_info *, int, int); 2365796c8dcSSimon Schubert 2375796c8dcSSimon Schubert extern int get_selections (int *, int, int, int, char *); 2385796c8dcSSimon Schubert 2395796c8dcSSimon Schubert extern char *ada_start_decode_line_1 (char *); 2405796c8dcSSimon Schubert 2415796c8dcSSimon Schubert extern struct symtabs_and_lines ada_finish_decode_line_1 (char **, 2425796c8dcSSimon Schubert struct symtab *, 2435796c8dcSSimon Schubert int, char ***); 2445796c8dcSSimon Schubert 2455796c8dcSSimon Schubert extern struct symtabs_and_lines ada_sals_for_line (const char*, int, 2465796c8dcSSimon Schubert int, char***, int); 2475796c8dcSSimon Schubert 2485796c8dcSSimon Schubert extern int ada_scan_number (const char *, int, LONGEST *, int *); 2495796c8dcSSimon Schubert 2505796c8dcSSimon Schubert extern struct type *ada_parent_type (struct type *); 2515796c8dcSSimon Schubert 2525796c8dcSSimon Schubert extern int ada_is_ignored_field (struct type *, int); 2535796c8dcSSimon Schubert 254*cf7f2e2dSJohn Marino extern int ada_is_constrained_packed_array_type (struct type *); 2555796c8dcSSimon Schubert 2565796c8dcSSimon Schubert extern struct value *ada_value_primitive_packed_val (struct value *, 2575796c8dcSSimon Schubert const gdb_byte *, 2585796c8dcSSimon Schubert long, int, int, 2595796c8dcSSimon Schubert struct type *); 2605796c8dcSSimon Schubert 2615796c8dcSSimon Schubert extern struct type *ada_coerce_to_simple_array_type (struct type *); 2625796c8dcSSimon Schubert 2635796c8dcSSimon Schubert extern int ada_is_character_type (struct type *); 2645796c8dcSSimon Schubert 2655796c8dcSSimon Schubert extern int ada_is_string_type (struct type *); 2665796c8dcSSimon Schubert 2675796c8dcSSimon Schubert extern int ada_is_tagged_type (struct type *, int); 2685796c8dcSSimon Schubert 2695796c8dcSSimon Schubert extern int ada_is_tag_type (struct type *); 2705796c8dcSSimon Schubert 2715796c8dcSSimon Schubert extern struct type *ada_tag_type (struct value *); 2725796c8dcSSimon Schubert 2735796c8dcSSimon Schubert extern struct value *ada_value_tag (struct value *); 2745796c8dcSSimon Schubert 2755796c8dcSSimon Schubert extern const char *ada_tag_name (struct value *); 2765796c8dcSSimon Schubert 2775796c8dcSSimon Schubert extern int ada_is_parent_field (struct type *, int); 2785796c8dcSSimon Schubert 2795796c8dcSSimon Schubert extern int ada_is_wrapper_field (struct type *, int); 2805796c8dcSSimon Schubert 2815796c8dcSSimon Schubert extern int ada_is_variant_part (struct type *, int); 2825796c8dcSSimon Schubert 2835796c8dcSSimon Schubert extern struct type *ada_variant_discrim_type (struct type *, struct type *); 2845796c8dcSSimon Schubert 2855796c8dcSSimon Schubert extern int ada_is_others_clause (struct type *, int); 2865796c8dcSSimon Schubert 2875796c8dcSSimon Schubert extern int ada_in_variant (LONGEST, struct type *, int); 2885796c8dcSSimon Schubert 2895796c8dcSSimon Schubert extern char *ada_variant_discrim_name (struct type *); 2905796c8dcSSimon Schubert 2915796c8dcSSimon Schubert extern struct value *ada_value_struct_elt (struct value *, char *, int); 2925796c8dcSSimon Schubert 2935796c8dcSSimon Schubert extern int ada_is_aligner_type (struct type *); 2945796c8dcSSimon Schubert 2955796c8dcSSimon Schubert extern struct type *ada_aligned_type (struct type *); 2965796c8dcSSimon Schubert 2975796c8dcSSimon Schubert extern const gdb_byte *ada_aligned_value_addr (struct type *, 2985796c8dcSSimon Schubert const gdb_byte *); 2995796c8dcSSimon Schubert 3005796c8dcSSimon Schubert extern const char *ada_attribute_name (enum exp_opcode); 3015796c8dcSSimon Schubert 3025796c8dcSSimon Schubert extern int ada_is_fixed_point_type (struct type *); 3035796c8dcSSimon Schubert 3045796c8dcSSimon Schubert extern int ada_is_system_address_type (struct type *); 3055796c8dcSSimon Schubert 3065796c8dcSSimon Schubert extern DOUBLEST ada_delta (struct type *); 3075796c8dcSSimon Schubert 3085796c8dcSSimon Schubert extern DOUBLEST ada_fixed_to_float (struct type *, LONGEST); 3095796c8dcSSimon Schubert 3105796c8dcSSimon Schubert extern LONGEST ada_float_to_fixed (struct type *, DOUBLEST); 3115796c8dcSSimon Schubert 3125796c8dcSSimon Schubert extern struct type *ada_system_address_type (void); 3135796c8dcSSimon Schubert 3145796c8dcSSimon Schubert extern int ada_which_variant_applies (struct type *, struct type *, 3155796c8dcSSimon Schubert const gdb_byte *); 3165796c8dcSSimon Schubert 3175796c8dcSSimon Schubert extern struct type *ada_to_fixed_type (struct type *, const gdb_byte *, 3185796c8dcSSimon Schubert CORE_ADDR, struct value *, 3195796c8dcSSimon Schubert int check_tag); 3205796c8dcSSimon Schubert 321*cf7f2e2dSJohn Marino extern struct value *ada_to_fixed_value (struct value *val); 322*cf7f2e2dSJohn Marino 3235796c8dcSSimon Schubert extern struct type *ada_template_to_fixed_record_type_1 (struct type *type, 3245796c8dcSSimon Schubert const gdb_byte *valaddr, 3255796c8dcSSimon Schubert CORE_ADDR address, 3265796c8dcSSimon Schubert struct value *dval0, 3275796c8dcSSimon Schubert int keep_dynamic_fields); 3285796c8dcSSimon Schubert 3295796c8dcSSimon Schubert extern int ada_name_prefix_len (const char *); 3305796c8dcSSimon Schubert 3315796c8dcSSimon Schubert extern char *ada_type_name (struct type *); 3325796c8dcSSimon Schubert 3335796c8dcSSimon Schubert extern struct type *ada_find_parallel_type (struct type *, 3345796c8dcSSimon Schubert const char *suffix); 3355796c8dcSSimon Schubert 3365796c8dcSSimon Schubert extern LONGEST get_int_var_value (char *, int *); 3375796c8dcSSimon Schubert 3385796c8dcSSimon Schubert extern struct symbol *ada_find_any_symbol (const char *name); 3395796c8dcSSimon Schubert 3405796c8dcSSimon Schubert extern struct type *ada_find_any_type (const char *name); 3415796c8dcSSimon Schubert 3425796c8dcSSimon Schubert extern struct symbol *ada_find_renaming_symbol (const char *name, 3435796c8dcSSimon Schubert 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 3755796c8dcSSimon Schubert /* Tasking-related: ada-tasks.c */ 3765796c8dcSSimon Schubert 3775796c8dcSSimon Schubert extern int valid_task_id (int); 3785796c8dcSSimon Schubert 3795796c8dcSSimon Schubert extern int ada_get_task_number (ptid_t); 3805796c8dcSSimon Schubert 3815796c8dcSSimon Schubert extern int ada_build_task_list (int warn_if_null); 3825796c8dcSSimon Schubert 3835796c8dcSSimon Schubert extern int ada_exception_catchpoint_p (struct breakpoint *b); 3845796c8dcSSimon Schubert 3855796c8dcSSimon Schubert extern struct symtab_and_line 3865796c8dcSSimon Schubert ada_decode_exception_location (char *args, char **addr_string, 3875796c8dcSSimon Schubert char **exp_string, char **cond_string, 3885796c8dcSSimon Schubert struct expression **cond, 3895796c8dcSSimon Schubert struct breakpoint_ops **ops); 3905796c8dcSSimon Schubert 3915796c8dcSSimon Schubert extern struct symtab_and_line 3925796c8dcSSimon Schubert ada_decode_assert_location (char *args, char **addr_string, 3935796c8dcSSimon Schubert struct breakpoint_ops **ops); 3945796c8dcSSimon Schubert 3955796c8dcSSimon Schubert 3965796c8dcSSimon Schubert #endif 397