diff options
Diffstat (limited to 'gdb/compile')
-rw-r--r-- | gdb/compile/compile-c-support.c | 2 | ||||
-rw-r--r-- | gdb/compile/compile-c-symbols.c | 20 | ||||
-rw-r--r-- | gdb/compile/compile-c-types.c | 10 | ||||
-rw-r--r-- | gdb/compile/compile-object-load.c | 9 | ||||
-rw-r--r-- | gdb/compile/compile-object-run.c | 2 | ||||
-rw-r--r-- | gdb/compile/compile.c | 8 |
6 files changed, 26 insertions, 25 deletions
diff --git a/gdb/compile/compile-c-support.c b/gdb/compile/compile-c-support.c index 39f06c6..07f0fbd 100644 --- a/gdb/compile/compile-c-support.c +++ b/gdb/compile/compile-c-support.c @@ -124,7 +124,7 @@ print_one_macro (const char *name, const struct macro_definition *macro, struct macro_source_file *source, int line, void *user_data) { - struct ui_file *file = user_data; + struct ui_file *file = (struct ui_file *) user_data; /* Don't print command-line defines. They will be supplied another way. */ diff --git a/gdb/compile/compile-c-symbols.c b/gdb/compile/compile-c-symbols.c index 355b063..f5ca15c 100644 --- a/gdb/compile/compile-c-symbols.c +++ b/gdb/compile/compile-c-symbols.c @@ -51,7 +51,7 @@ struct symbol_error static hashval_t hash_symbol_error (const void *a) { - const struct symbol_error *se = a; + const struct symbol_error *se = (const struct symbol_error *) a; return htab_hash_pointer (se->sym); } @@ -61,8 +61,8 @@ hash_symbol_error (const void *a) static int eq_symbol_error (const void *a, const void *b) { - const struct symbol_error *sea = a; - const struct symbol_error *seb = b; + const struct symbol_error *sea = (const struct symbol_error *) a; + const struct symbol_error *seb = (const struct symbol_error *) b; return sea->sym == seb->sym; } @@ -72,7 +72,7 @@ eq_symbol_error (const void *a, const void *b) static void del_symbol_error (void *a) { - struct symbol_error *se = a; + struct symbol_error *se = (struct symbol_error *) a; xfree (se->message); xfree (se); @@ -113,7 +113,7 @@ error_symbol_once (struct compile_c_instance *context, return; search.sym = sym; - err = htab_find (context->symbol_err_map, &search); + err = (struct symbol_error *) htab_find (context->symbol_err_map, &search); if (err == NULL || err->message == NULL) return; @@ -421,7 +421,7 @@ gcc_convert_symbol (void *datum, enum gcc_c_oracle_request request, const char *identifier) { - struct compile_c_instance *context = datum; + struct compile_c_instance *context = (struct compile_c_instance *) datum; domain_enum domain; int found = 0; @@ -484,7 +484,7 @@ gcc_address gcc_symbol_address (void *datum, struct gcc_c_context *gcc_context, const char *identifier) { - struct compile_c_instance *context = datum; + struct compile_c_instance *context = (struct compile_c_instance *) datum; gcc_address result = 0; int found = 0; @@ -547,7 +547,7 @@ gcc_symbol_address (void *datum, struct gcc_c_context *gcc_context, static hashval_t hash_symname (const void *a) { - const struct symbol *sym = a; + const struct symbol *sym = (const struct symbol *) a; return htab_hash_string (SYMBOL_NATURAL_NAME (sym)); } @@ -558,8 +558,8 @@ hash_symname (const void *a) static int eq_symname (const void *a, const void *b) { - const struct symbol *syma = a; - const struct symbol *symb = b; + const struct symbol *syma = (const struct symbol *) a; + const struct symbol *symb = (const struct symbol *) b; return strcmp (SYMBOL_NATURAL_NAME (syma), SYMBOL_NATURAL_NAME (symb)) == 0; } diff --git a/gdb/compile/compile-c-types.c b/gdb/compile/compile-c-types.c index 77fbd68..60f9bd4 100644 --- a/gdb/compile/compile-c-types.c +++ b/gdb/compile/compile-c-types.c @@ -39,7 +39,7 @@ struct type_map_instance static hashval_t hash_type_map_instance (const void *p) { - const struct type_map_instance *inst = p; + const struct type_map_instance *inst = (const struct type_map_instance *) p; return htab_hash_pointer (inst->type); } @@ -49,8 +49,8 @@ hash_type_map_instance (const void *p) static int eq_type_map_instance (const void *a, const void *b) { - const struct type_map_instance *insta = a; - const struct type_map_instance *instb = b; + const struct type_map_instance *insta = (const struct type_map_instance *) a; + const struct type_map_instance *instb = (const struct type_map_instance *) b; return insta->type == instb->type; } @@ -75,7 +75,7 @@ insert_type (struct compile_c_instance *context, struct type *type, inst.gcc_type = gcc_type; slot = htab_find_slot (context->type_map, &inst, INSERT); - add = *slot; + add = (struct type_map_instance *) *slot; /* The type might have already been inserted in order to handle recursive types. */ if (add != NULL && add->gcc_type != gcc_type) @@ -386,7 +386,7 @@ convert_type (struct compile_c_instance *context, struct type *type) type = check_typedef (type); inst.type = type; - found = htab_find (context->type_map, &inst); + found = (struct type_map_instance *) htab_find (context->type_map, &inst); if (found != NULL) return found->gcc_type; diff --git a/gdb/compile/compile-object-load.c b/gdb/compile/compile-object-load.c index ea1a19a..ce30e70 100644 --- a/gdb/compile/compile-object-load.c +++ b/gdb/compile/compile-object-load.c @@ -79,7 +79,7 @@ munmap_list_free (struct munmap_list *head) static void munmap_listp_free_cleanup (void *headp_voidp) { - struct munmap_list **headp = headp_voidp; + struct munmap_list **headp = (struct munmap_list **) headp_voidp; munmap_list_free (*headp); } @@ -111,7 +111,7 @@ struct setup_sections_data static void setup_sections (bfd *abfd, asection *sect, void *data_voidp) { - struct setup_sections_data *data = data_voidp; + struct setup_sections_data *data = (struct setup_sections_data *) data_voidp; CORE_ADDR alignment; unsigned prot; @@ -336,7 +336,8 @@ struct link_hash_table_cleanup_data static void link_hash_table_free (void *d) { - struct link_hash_table_cleanup_data *data = d; + struct link_hash_table_cleanup_data *data + = (struct link_hash_table_cleanup_data *) d; if (data->abfd->is_linker_output) (*data->abfd->link.hash->hash_table_free) (data->abfd); @@ -348,7 +349,7 @@ link_hash_table_free (void *d) static void copy_sections (bfd *abfd, asection *sect, void *data) { - asymbol **symbol_table = data; + asymbol **symbol_table = (asymbol **) data; bfd_byte *sect_data, *sect_data_got; struct cleanup *cleanups; struct bfd_link_info link_info; diff --git a/gdb/compile/compile-object-run.c b/gdb/compile/compile-object-run.c index 6bc96b9..e5d2b643 100644 --- a/gdb/compile/compile-object-run.c +++ b/gdb/compile/compile-object-run.c @@ -61,7 +61,7 @@ static dummy_frame_dtor_ftype do_module_cleanup; static void do_module_cleanup (void *arg, int registers_valid) { - struct do_module_cleanup *data = arg; + struct do_module_cleanup *data = (struct do_module_cleanup *) arg; struct objfile *objfile; if (data->executedp != NULL) diff --git a/gdb/compile/compile.c b/gdb/compile/compile.c index 3d710ed..7560028 100644 --- a/gdb/compile/compile.c +++ b/gdb/compile/compile.c @@ -169,7 +169,7 @@ compile_code_command (char *arg, int from_tty) void compile_print_value (struct value *val, void *data_voidp) { - const struct format_data *fmtp = data_voidp; + const struct format_data *fmtp = (const struct format_data *) data_voidp; print_value (val, fmtp); } @@ -214,7 +214,7 @@ compile_print_command (char *arg_param, int from_tty) static void do_rmdir (void *arg) { - const char *dir = arg; + const char *dir = (const char *) arg; char *zap; int wstat; @@ -431,7 +431,7 @@ get_args (const struct compile_instance *compiler, struct gdbarch *gdbarch, static void cleanup_compile_instance (void *arg) { - struct compile_instance *inst = arg; + struct compile_instance *inst = (struct compile_instance *) arg; inst->destroy (inst); } @@ -441,7 +441,7 @@ cleanup_compile_instance (void *arg) static void cleanup_unlink_file (void *arg) { - const char *filename = arg; + const char *filename = (const char *) arg; unlink (filename); } |