aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-lang.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2019-10-29 17:52:24 -0400
committerSimon Marchi <simon.marchi@efficios.com>2019-10-29 17:52:24 -0400
commitde93309a38afe2a7c0c519c8b69cca7c20d03fbc (patch)
tree703af5d00ba9f13dc0f5f075b6be519f399a9b7f /gdb/ada-lang.h
parentcdc46a9ff452788a97537114936fad1b142bc747 (diff)
downloadgdb-de93309a38afe2a7c0c519c8b69cca7c20d03fbc.zip
gdb-de93309a38afe2a7c0c519c8b69cca7c20d03fbc.tar.gz
gdb-de93309a38afe2a7c0c519c8b69cca7c20d03fbc.tar.bz2
Clean up ada-lang.h
This patch cleans up ada-lang.h: - Some functions just don't exist anymore, remove their declaration - Some functions are implemented in ada-lang.c and only used there, make them static to that file. I moved some functions higher in the file to avoid having to forward-declare them, but the implementations are unchanged. gdb/ChangeLog: * ada-lang.h (GROW_VECT): Move to ada-lang.c. (grow_vect): Remove declaration. (ada_type_of_array): Remove declaration. (ada_update_initial_language): Remove declaration. (ada_fold_name): Remove declaration. (ada_fill_in_ada_prototype): Remove declaration. (user_select_syms): Remove declaration. (get_selections): Remove declaration. (ada_tag_type): Remove declaration. (ada_value_tag): Remove declaration. (ada_is_others_clause): Remove declaration. (ada_in_variant): Remove declaration. (ada_value_struct_elt): Remove declaration. (ada_attribute_name): Remove declaration. (ada_system_address_type): Remove declaration. * ada-lang.c (ada_watch_location_expression): Make static. (GROW_VECT): Move here from ada-lang.h. (grow_vect): Make static. (ada_update_initial_language): Make static. (ada_fold_name): Make static. (ada_type_of_array): Make static. (encoded_ordered_before): Move up. (sort_choices): Move up. (print_signatures): Move up. (ada_print_symbol_signature): Move up. (get_selections): Move up and make static. (user_select_syms): Move up and make static. (ada_value_struct_elt): Move up and make static. (ada_tag_type): Make static. (ada_value_tag): Make static. (ada_is_others_clause): Make static. (ada_in_variant): Make static. (ada_attribute_name): Make static. Change-Id: If0d46ba87d6585ab674c87244068a19e84718fc9
Diffstat (limited to 'gdb/ada-lang.h')
-rw-r--r--gdb/ada-lang.h34
1 files changed, 0 insertions, 34 deletions
diff --git a/gdb/ada-lang.h b/gdb/ada-lang.h
index b68dd4e..13a917a 100644
--- a/gdb/ada-lang.h
+++ b/gdb/ada-lang.h
@@ -149,14 +149,6 @@ struct ada_task_info
int base_cpu;
};
-/* Assuming V points to an array of S objects, make sure that it contains at
- least M objects, updating V and S as necessary. */
-
-#define GROW_VECT(v, s, m) \
- if ((s) < (m)) (v) = (char *) grow_vect (v, &(s), m, sizeof *(v));
-
-extern void *grow_vect (void *, size_t *, size_t, int);
-
extern void ada_ensure_varsize_limit (const struct type *type);
extern int ada_get_field_index (const struct type *type,
@@ -204,8 +196,6 @@ extern struct type *ada_array_element_type (struct type *, int);
extern int ada_array_arity (struct type *);
-struct type *ada_type_of_array (struct value *, int);
-
extern struct value *ada_coerce_to_simple_array_ptr (struct value *);
struct value *ada_coerce_to_simple_array (struct value *);
@@ -228,14 +218,10 @@ extern const char *ada_decode_symbol (const struct general_symbol_info *);
extern std::string ada_decode (const char*);
-extern enum language ada_update_initial_language (enum language);
-
extern int ada_lookup_symbol_list (const char *, const struct block *,
domain_enum,
std::vector<struct block_symbol> *);
-extern char *ada_fold_name (const char *);
-
extern struct block_symbol ada_lookup_symbol (const char *,
const struct block *,
domain_enum);
@@ -246,12 +232,6 @@ extern void ada_lookup_encoded_symbol
extern struct bound_minimal_symbol ada_lookup_simple_minsym (const char *);
-extern void ada_fill_in_ada_prototype (struct symbol *);
-
-extern int user_select_syms (struct block_symbol *, int, int);
-
-extern int get_selections (int *, int, int, int, const char *);
-
extern int ada_scan_number (const char *, int, LONGEST *, int *);
extern struct type *ada_parent_type (struct type *);
@@ -275,10 +255,6 @@ extern int ada_is_tagged_type (struct type *, int);
extern int ada_is_tag_type (struct type *);
-extern struct type *ada_tag_type (struct value *);
-
-extern struct value *ada_value_tag (struct value *);
-
extern const char *ada_tag_name (struct value *);
extern struct value *ada_tag_value_at_base_address (struct value *obj);
@@ -291,14 +267,8 @@ extern int ada_is_variant_part (struct type *, int);
extern struct type *ada_variant_discrim_type (struct type *, struct type *);
-extern int ada_is_others_clause (struct type *, int);
-
-extern int ada_in_variant (LONGEST, struct type *, int);
-
extern const char *ada_variant_discrim_name (struct type *);
-extern struct value *ada_value_struct_elt (struct value *, const char *, int);
-
extern int ada_is_aligner_type (struct type *);
extern struct type *ada_aligned_type (struct type *);
@@ -306,8 +276,6 @@ extern struct type *ada_aligned_type (struct type *);
extern const gdb_byte *ada_aligned_value_addr (struct type *,
const gdb_byte *);
-extern const char *ada_attribute_name (enum exp_opcode);
-
extern int ada_is_fixed_point_type (struct type *);
extern int ada_is_system_address_type (struct type *);
@@ -316,8 +284,6 @@ extern struct value *ada_delta (struct type *);
extern struct value *ada_scaling_factor (struct type *);
-extern struct type *ada_system_address_type (void);
-
extern int ada_which_variant_applies (struct type *, struct type *,
const gdb_byte *);