X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fada-lang.h;h=c0532781fba0116d476d7daaf6b8042a786e25cb;hb=2117c711ae07700adb57ea5b5ca61e4c32d7e3d2;hp=509a2296b945f5010be217e5cc7e48d4e7673fd0;hpb=28e7fd62340426746f9c896cbc40c5d374ec47aa;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ada-lang.h b/gdb/ada-lang.h index 509a2296b9..c0532781fb 100644 --- a/gdb/ada-lang.h +++ b/gdb/ada-lang.h @@ -1,6 +1,6 @@ /* Ada language support definitions for GDB, the GNU debugger. - Copyright (C) 1992-2013 Free Software Foundation, Inc. + Copyright (C) 1992-2014 Free Software Foundation, Inc. This file is part of GDB. @@ -27,6 +27,7 @@ struct type_print_options; #include "value.h" #include "gdbtypes.h" #include "breakpoint.h" +#include "vec.h" /* Names of specific files known to be part of the runtime system and that might consider (confusing) debugging information. @@ -114,6 +115,16 @@ enum ada_renaming_category ADA_SUBPROGRAM_RENAMING }; +/* The different types of catchpoints that we introduced for catching + Ada exceptions. */ + +enum ada_exception_catchpoint_kind +{ + ada_catch_exception, + ada_catch_exception_unhandled, + ada_catch_assert +}; + /* Ada task structures. */ struct ada_task_info @@ -219,17 +230,14 @@ extern struct value *ada_get_decoded_value (struct value *value); extern struct type *ada_get_decoded_type (struct type *type); -extern char *ada_decode_symbol (const struct general_symbol_info*); +extern const char *ada_decode_symbol (const struct general_symbol_info *); extern const char *ada_decode (const char*); extern enum language ada_update_initial_language (enum language); -extern void clear_ada_sym_cache (void); - extern int ada_lookup_symbol_list (const char *, const struct block *, - domain_enum, struct ada_symbol_info**, - int); + domain_enum, struct ada_symbol_info**); extern char *ada_fold_name (const char *); @@ -240,7 +248,7 @@ extern void ada_lookup_encoded_symbol (const char *name, const struct block *block, domain_enum namespace, struct ada_symbol_info *symbol_info); -extern struct minimal_symbol *ada_lookup_simple_minsym (const char *); +extern struct bound_minimal_symbol ada_lookup_simple_minsym (const char *); extern void ada_fill_in_ada_prototype (struct symbol *); @@ -375,6 +383,26 @@ extern char *ada_main_name (void); extern char *ada_name_for_lookup (const char *name); +extern void create_ada_exception_catchpoint + (struct gdbarch *gdbarch, enum ada_exception_catchpoint_kind ex_kind, + char *excep_string, char *cond_string, int tempflag, int disabled, + int from_tty); + +/* Some information about a given Ada exception. */ + +typedef struct ada_exc_info +{ + /* The name of the exception. */ + const char *name; + + /* The address of the symbol corresponding to that exception. */ + CORE_ADDR addr; +} ada_exc_info; + +DEF_VEC_O(ada_exc_info); + +extern VEC(ada_exc_info) *ada_exceptions_list (const char *regexp); + /* Tasking-related: ada-tasks.c */ extern int valid_task_id (int);