{"push_id":802394740,"size":2,"distinct_size":2,"ref":"refs/heads/casts","head":"4227240491b22bec0d5f4726c43296032f461e63","before":"4c1b4af675b97943c6e5cbbdec70ebd68231e3d3","commits":[{"sha":"3700a0fd59619d846980e94a73d0a05bdcab33df","author":{"email":"fa7054fed17d58b06d3b1bf9b1077e42165a09ec@ericsson.com","name":"Simon Marchi"},"message":"Add casts to memory allocation related calls\n\nMost allocation functions (if not all) return a void* pointing to the\nallocated memory.  In C++, we need to add an explicit cast when\nassigning the result to a pointer to another type (which is the case\nmore often than not).\n\nThe content of this patch is taken from Pedro's branch, from commit\n\"(mostly) auto-generated patch to insert casts needed for C++\".  I\nvalidated that the changes make sense and manually reflowed the code to\nmake it respect the coding style.  I also found multiple places where I\ncould use XNEW/XNEWVEC/XRESIZEVEC/etc.\n\nThanks a lot to whoever did that automated script to insert casts, doing\nit completely by hand would have taken a ridiculous amount of time.\n\nOnly files built on x86 with --enable-targets=all are modified.  This\nmeans that all other -nat.c files are untouched and will have to be\ndealt with later by using appropiate compilers.  Or maybe we try to\nbuild them with a regular g++ just to know where to add casts, I don't\nknow.\n\nI built-tested this with --enable-targets=all and reg-tested.\n\nHere's the changelog entry, which was not too bad to make despite the\nsize, thanks to David Malcom's script.  I fixed some bits by hand, but\nthere might be some wrong parts left (hopefully not).\n\ngdb/ChangeLog:\n\n\t* aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast\n\tto allocation result assignment.\n\t* ada-exp.y (write_object_renaming): Likewise.\n\t(write_ambiguous_var): Likewise.\n\t(ada_nget_field_index): Likewise.\n\t(write_var_or_type): Likewise.\n\t* ada-lang.c (ada_decode_symbol): Likewise.\n\t(ada_value_assign): Likewise.\n\t(value_pointer): Likewise.\n\t(cache_symbol): Likewise.\n\t(add_nonlocal_symbols): Likewise.\n\t(ada_name_for_lookup): Likewise.\n\t(symbol_completion_add): Likewise.\n\t(ada_to_fixed_type_1): Likewise.\n\t(ada_get_next_arg): Likewise.\n\t(defns_collected): Likewise.\n\t* ada-lex.l (processId): Likewise.\n\t(processString): Likewise.\n\t* ada-tasks.c (read_known_tasks_array): Likewise.\n\t(read_known_tasks_list): Likewise.\n\t* ada-typeprint.c (decoded_type_name): Likewise.\n\t* addrmap.c (addrmap_mutable_create_fixed): Likewise.\n\t* amd64-tdep.c (amd64_push_arguments): Likewise.\n\t(amd64_displaced_step_copy_insn): Likewise.\n\t(amd64_classify_insn_at): Likewise.\n\t(amd64_relocate_instruction): Likewise.\n\t* amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.\n\t* arch-utils.c (simple_displaced_step_copy_insn): Likewise.\n\t(initialize_current_architecture): Likewise.\n\t* arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.\n\t* arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.\n\t* arm-tdep.c (arm_exidx_new_objfile): Likewise.\n\t(arm_push_dummy_call): Likewise.\n\t(extend_buffer_earlier): Likewise.\n\t(arm_adjust_breakpoint_address): Likewise.\n\t(arm_skip_stub): Likewise.\n\t* auto-load.c (filename_is_in_pattern): Likewise.\n\t(maybe_add_script_file): Likewise.\n\t(maybe_add_script_text): Likewise.\n\t(auto_load_objfile_script_1): Likewise.\n\t* auxv.c (ld_so_xfer_auxv): Likewise.\n\t* ax-general.c (new_agent_expr): Likewise.\n\t(grow_expr): Likewise.\n\t(ax_reg_mask): Likewise.\n\t* bcache.c (bcache_full): Likewise.\n\t* breakpoint.c (program_breakpoint_here_p): Likewise.\n\t* btrace.c (parse_xml_raw): Likewise.\n\t* build-id.c (build_id_to_debug_bfd): Likewise.\n\t* buildsym.c (end_symtab_with_blockvector): Likewise.\n\t* c-exp.y (string_exp): Likewise.\n\t(qualified_name): Likewise.\n\t(write_destructor_name): Likewise.\n\t(operator_stoken): Likewise.\n\t(parse_number): Likewise.\n\t(scan_macro_expansion): Likewise.\n\t(yylex): Likewise.\n\t(c_print_token): Likewise.\n\t* c-lang.c (c_get_string): Likewise.\n\t(emit_numeric_character): Likewise.\n\t* charset.c (wchar_iterate): Likewise.\n\t* cli/cli-cmds.c (complete_command): Likewise.\n\t(make_command): Likewise.\n\t* cli/cli-dump.c (restore_section_callback): Likewise.\n\t(restore_binary_file): Likewise.\n\t* cli/cli-interp.c (cli_interpreter_exec): Likewise.\n\t* cli/cli-script.c (execute_control_command): Likewise.\n\t* cli/cli-setshow.c (do_set_command): Likewise.\n\t* coff-pe-read.c (add_pe_forwarded_sym): Likewise.\n\t(read_pe_exported_syms): Likewise.\n\t* coffread.c (coff_read_struct_type): Likewise.\n\t(coff_read_enum_type): Likewise.\n\t* common/btrace-common.c (btrace_data_append): Likewise.\n\t* common/buffer.c (buffer_grow): Likewise.\n\t* common/filestuff.c (gdb_fopen_cloexec): Likewise.\n\t* common/format.c (parse_format_string): Likewise.\n\t* common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.\n\t* common/xml-utils.c (xml_escape_text): Likewise.\n\t* compile/compile-object-load.c (copy_sections): Likewise.\n\t(compile_object_load): Likewise.\n\t* compile/compile-object-run.c (compile_object_run): Likewise.\n\t* completer.c (filename_completer): Likewise.\n\t* corefile.c (read_memory_typed_address): Likewise.\n\t(write_memory_unsigned_integer): Likewise.\n\t(write_memory_signed_integer): Likewise.\n\t(complete_set_gnutarget): Likewise.\n\t* corelow.c (get_core_register_section): Likewise.\n\t* cp-name-parser.y (d_grab): Likewise.\n\t(allocate_info): Likewise.\n\t(cp_new_demangle_parse_info): Likewise.\n\t* cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.\n\t(cp_lookup_symbol_in_namespace): Likewise.\n\t(lookup_namespace_scope): Likewise.\n\t(find_symbol_in_baseclass): Likewise.\n\t(cp_lookup_nested_symbol): Likewise.\n\t(cp_lookup_transparent_type_loop): Likewise.\n\t* cp-support.c (copy_string_to_obstack): Likewise.\n\t(make_symbol_overload_list): Likewise.\n\t(make_symbol_overload_list_namespace): Likewise.\n\t(make_symbol_overload_list_adl_namespace): Likewise.\n\t(first_component_command): Likewise.\n\t* cp-valprint.c (cp_print_value): Likewise.\n\t* ctf.c (ctf_xfer_partial): Likewise.\n\t* d-exp.y (StringExp): Likewise.\n\t* d-namespace.c (d_lookup_symbol_in_module): Likewise.\n\t(lookup_module_scope): Likewise.\n\t(find_symbol_in_baseclass): Likewise.\n\t(d_lookup_nested_symbol): Likewise.\n\t* dbxread.c (find_stab_function_addr): Likewise.\n\t(read_dbx_symtab): Likewise.\n\t(dbx_end_psymtab): Likewise.\n\t(cp_set_block_scope): Likewise.\n\t* dcache.c (dcache_alloc): Likewise.\n\t* demangle.c (_initialize_demangler): Likewise.\n\t* dicos-tdep.c (dicos_load_module_p): Likewise.\n\t* dictionary.c (dict_create_hashed_expandable): Likewise.\n\t(dict_create_linear_expandable): Likewise.\n\t(expand_hashtable): Likewise.\n\t(add_symbol_linear_expandable): Likewise.\n\t* dwarf2-frame.c (add_cie): Likewise.\n\t(add_fde): Likewise.\n\t(dwarf2_build_frame_info): Likewise.\n\t* dwarf2expr.c (dwarf_expr_grow_stack): Likewise.\n\t(dwarf_expr_fetch_address): Likewise.\n\t(add_piece): Likewise.\n\t(execute_stack_op): Likewise.\n\t* dwarf2loc.c (chain_candidate): Likewise.\n\t(dwarf_entry_parameter_to_value): Likewise.\n\t(read_pieced_value): Likewise.\n\t(write_pieced_value): Likewise.\n\t* dwarf2read.c (dwarf2_read_section): Likewise.\n\t(add_type_unit): Likewise.\n\t(read_comp_units_from_section): Likewise.\n\t(fixup_go_packaging): Likewise.\n\t(dwarf2_compute_name): Likewise.\n\t(dwarf2_physname): Likewise.\n\t(create_dwo_unit_in_dwp_v1): Likewise.\n\t(create_dwo_unit_in_dwp_v2): Likewise.\n\t(read_func_scope): Likewise.\n\t(read_call_site_scope): Likewise.\n\t(dwarf2_attach_fields_to_type): Likewise.\n\t(process_structure_scope): Likewise.\n\t(mark_common_block_symbol_computed): Likewise.\n\t(read_common_block): Likewise.\n\t(abbrev_table_read_table): Likewise.\n\t(guess_partial_die_structure_name): Likewise.\n\t(fixup_partial_die): Likewise.\n\t(add_file_name): Likewise.\n\t(dwarf2_const_value_data): Likewise.\n\t(dwarf2_const_value_attr): Likewise.\n\t(build_error_marker_type): Likewise.\n\t(guess_full_die_structure_name): Likewise.\n\t(anonymous_struct_prefix): Likewise.\n\t(typename_concat): Likewise.\n\t(dwarf2_canonicalize_name): Likewise.\n\t(dwarf2_name): Likewise.\n\t(write_constant_as_bytes): Likewise.\n\t(dwarf2_fetch_constant_bytes): Likewise.\n\t(copy_string): Likewise.\n\t(parse_macro_definition): Likewise.\n\t* elfread.c (elf_symfile_segments): Likewise.\n\t(elf_rel_plt_read): Likewise.\n\t(elf_gnu_ifunc_resolve_by_cache): Likewise.\n\t(elf_gnu_ifunc_resolve_by_got): Likewise.\n\t(elf_read_minimal_symbols): Likewise.\n\t(elf_gnu_ifunc_record_cache): Likewise.\n\t* event-top.c (top_level_prompt): Likewise.\n\t(command_line_handler): Likewise.\n\t* exec.c (resize_section_table): Likewise.\n\t* expprint.c (print_subexp_standard): Likewise.\n\t* fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.\n\t* findcmd.c (parse_find_args): Likewise.\n\t* findvar.c (address_from_register): Likewise.\n\t* frame.c (get_prev_frame_always): Likewise.\n\t* gdb_bfd.c (gdb_bfd_ref): Likewise.\n\t(get_section_descriptor): Likewise.\n\t* gdb_obstack.c (obconcat): Likewise.\n\t(obstack_strdup): Likewise.\n\t* gdbtypes.c (lookup_function_type_with_arguments): Likewise.\n\t(create_set_type): Likewise.\n\t(lookup_unsigned_typename): Likewise.\n\t(lookup_signed_typename): Likewise.\n\t(resolve_dynamic_union): Likewise.\n\t(resolve_dynamic_struct): Likewise.\n\t(add_dyn_prop): Likewise.\n\t(copy_dynamic_prop_list): Likewise.\n\t(arch_flags_type): Likewise.\n\t(append_composite_type_field_raw): Likewise.\n\t* gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.\n\t* gnu-v3-abi.c (gnuv3_rtti_type): Likewise.\n\t* go-exp.y (string_exp): Likewise.\n\t* go-lang.c (go_demangle): Likewise.\n\t* guile/guile.c (compute_scheme_string): Likewise.\n\t* guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.\n\t(gdbscm_canonicalize_command_name): Likewise.\n\t* guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.\n\t(ioscm_init_memory_port): Likewise.\n\t(ioscm_reinit_memory_port): Likewise.\n\t* guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.\n\t(gdbscm_gc_dup_argv): Likewise.\n\t* h8300-tdep.c (h8300_push_dummy_call): Likewise.\n\t* hppa-tdep.c (internalize_unwinds): Likewise.\n\t(read_unwind_info): Likewise.\n\t* i386-cygwin-tdep.c (core_process_module_section): Likewise.\n\t(windows_core_xfer_shared_libraries): Likewise.\n\t* i386-tdep.c (i386_displaced_step_copy_insn): Likewise.\n\t(i386_stap_parse_special_token_triplet): Likewise.\n\t(i386_stap_parse_special_token_three_arg_disp): Likewise.\n\t* i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.\n\t* inf-child.c (inf_child_fileio_readlink): Likewise.\n\t* inf-ptrace.c (inf_ptrace_fetch_register): Likewise.\n\t(inf_ptrace_store_register): Likewise.\n\t* infrun.c (follow_exec): Likewise.\n\t(displaced_step_prepare_throw): Likewise.\n\t(save_stop_context): Likewise.\n\t(save_infcall_suspend_state): Likewise.\n\t* jit.c (jit_read_descriptor): Likewise.\n\t(jit_read_code_entry): Likewise.\n\t(jit_symtab_line_mapping_add_impl): Likewise.\n\t(finalize_symtab): Likewise.\n\t(jit_unwind_reg_get_impl): Likewise.\n\t* jv-exp.y (QualifiedName): Likewise.\n\t* jv-lang.c (get_java_utf8_name): Likewise.\n\t(type_from_class): Likewise.\n\t(java_demangle_type_signature): Likewise.\n\t(java_class_name_from_physname): Likewise.\n\t* jv-typeprint.c (java_type_print_base): Likewise.\n\t* jv-valprint.c (java_value_print): Likewise.\n\t* language.c (add_language): Likewise.\n\t* linespec.c (add_sal_to_sals_basic): Likewise.\n\t(add_sal_to_sals): Likewise.\n\t(decode_objc): Likewise.\n\t(find_linespec_symbols): Likewise.\n\t* linux-fork.c (fork_save_infrun_state): Likewise.\n\t* linux-nat.c (linux_nat_detach): Likewise.\n\t(linux_nat_fileio_readlink): Likewise.\n\t* linux-record.c (record_linux_sockaddr): Likewise.\n\t(record_linux_msghdr): Likewise.\n\t(Do): Likewise.\n\t* linux-tdep.c (linux_core_info_proc_mappings): Likewise.\n\t(linux_collect_regset_section_cb): Likewise.\n\t(linux_get_siginfo_data): Likewise.\n\t* linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.\n\t(try_thread_db_load_from_dir): Likewise.\n\t(thread_db_load_search): Likewise.\n\t(info_auto_load_libthread_db): Likewise.\n\t* m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.\n\t(m32c_m16c_pointer_to_address): Likewise.\n\t* m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.\n\t* m68k-tdep.c (m68k_get_longjmp_target): Likewise.\n\t* machoread.c (macho_check_dsym): Likewise.\n\t* macroexp.c (resize_buffer): Likewise.\n\t(gather_arguments): Likewise.\n\t(maybe_expand): Likewise.\n\t* macrotab.c (new_macro_key): Likewise.\n\t(new_source_file): Likewise.\n\t(new_macro_definition): Likewise.\n\t* mdebugread.c (parse_symbol): Likewise.\n\t(parse_type): Likewise.\n\t(parse_partial_symbols): Likewise.\n\t(psymtab_to_symtab_1): Likewise.\n\t* mem-break.c (default_memory_insert_breakpoint): Likewise.\n\t* mi/mi-cmd-break.c (mi_argv_to_format): Likewise.\n\t* mi/mi-main.c (mi_cmd_data_read_memory): Likewise.\n\t(mi_cmd_data_read_memory_bytes): Likewise.\n\t(mi_cmd_data_write_memory_bytes): Likewise.\n\t(mi_cmd_trace_frame_collected): Likewise.\n\t* mi/mi-parse.c (mi_parse_argv): Likewise.\n\t(mi_parse): Likewise.\n\t* minidebug.c (lzma_open): Likewise.\n\t(lzma_pread): Likewise.\n\t* mips-tdep.c (mips_read_fp_register_single): Likewise.\n\t(mips_print_fp_register): Likewise.\n\t* mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.\n\t* mipsread.c (read_alphacoff_dynamic_symtab): Likewise.\n\t* mt-tdep.c (mt_register_name): Likewise.\n\t(mt_registers_info): Likewise.\n\t(mt_push_dummy_call): Likewise.\n\t* namespace.c (add_using_directive): Likewise.\n\t* nat/linux-btrace.c (perf_event_read): Likewise.\n\t(linux_enable_bts): Likewise.\n\t* nat/linux-osdata.c (linux_common_core_of_thread): Likewise.\n\t* nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.\n\t* nto-tdep.c (nto_find_and_open_solib): Likewise.\n\t(nto_parse_redirection): Likewise.\n\t* objc-lang.c (objc_demangle): Likewise.\n\t(find_methods): Likewise.\n\t* objfiles.c (get_objfile_bfd_data): Likewise.\n\t(set_objfile_main_name): Likewise.\n\t(allocate_objfile): Likewise.\n\t(objfile_relocate): Likewise.\n\t(update_section_map): Likewise.\n\t* osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.\n\t* p-exp.y (exp): Likewise.\n\t(yylex): Likewise.\n\t* p-valprint.c (pascal_object_print_value): Likewise.\n\t* parse.c (initialize_expout): Likewise.\n\t(mark_completion_tag): Likewise.\n\t(copy_name): Likewise.\n\t(parse_float): Likewise.\n\t(type_stack_reserve): Likewise.\n\t* ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.\n\t(ppu2spu_prev_register): Likewise.\n\t* ppc-ravenscar-thread.c (supply_register_at_address): Likewise.\n\t* printcmd.c (printf_wide_c_string): Likewise.\n\t(printf_pointer): Likewise.\n\t* probe.c (parse_probes): Likewise.\n\t* python/py-cmd.c (gdbpy_parse_command_name): Likewise.\n\t(cmdpy_init): Likewise.\n\t* python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.\n\t* python/py-symtab.c (set_sal): Likewise.\n\t* python/py-unwind.c (pyuw_sniffer): Likewise.\n\t* python/python.c (python_interactive_command): Likewise.\n\t(compute_python_string): Likewise.\n\t* ravenscar-thread.c (get_running_thread_id): Likewise.\n\t* record-full.c (record_full_exec_insn): Likewise.\n\t(record_full_core_open_1): Likewise.\n\t* regcache.c (regcache_raw_read_signed): Likewise.\n\t(regcache_raw_read_unsigned): Likewise.\n\t(regcache_cooked_read_signed): Likewise.\n\t(regcache_cooked_read_unsigned): Likewise.\n\t* remote-fileio.c (remote_fileio_func_open): Likewise.\n\t(remote_fileio_func_rename): Likewise.\n\t(remote_fileio_func_unlink): Likewise.\n\t(remote_fileio_func_stat): Likewise.\n\t(remote_fileio_func_system): Likewise.\n\t* remote-mips.c (mips_xfer_memory): Likewise.\n\t(mips_load_srec): Likewise.\n\t(pmon_end_download): Likewise.\n\t* remote.c (new_remote_state): Likewise.\n\t(map_regcache_remote_table): Likewise.\n\t(remote_register_number_and_offset): Likewise.\n\t(init_remote_state): Likewise.\n\t(get_memory_packet_size): Likewise.\n\t(remote_pass_signals): Likewise.\n\t(remote_program_signals): Likewise.\n\t(remote_start_remote): Likewise.\n\t(remote_check_symbols): Likewise.\n\t(remote_query_supported): Likewise.\n\t(extended_remote_attach): Likewise.\n\t(process_g_packet): Likewise.\n\t(store_registers_using_G): Likewise.\n\t(putpkt_binary): Likewise.\n\t(read_frame): Likewise.\n\t(compare_sections_command): Likewise.\n\t(remote_hostio_pread): Likewise.\n\t(remote_hostio_readlink): Likewise.\n\t(remote_file_put): Likewise.\n\t(remote_file_get): Likewise.\n\t(remote_pid_to_exec_file): Likewise.\n\t(_initialize_remote): Likewise.\n\t* rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.\n\t(rs6000_aix_core_xfer_shared_libraries_aix): Likewise.\n\t* rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.\n\t(bfd_uses_spe_extensions): Likewise.\n\t* s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.\n\t* score-tdep.c (score7_malloc_and_get_memblock): Likewise.\n\t* solib-dsbt.c (decode_loadmap): Likewise.\n\t(fetch_loadmap): Likewise.\n\t(scan_dyntag): Likewise.\n\t(enable_break): Likewise.\n\t(dsbt_relocate_main_executable): Likewise.\n\t* solib-frv.c (fetch_loadmap): Likewise.\n\t(enable_break2): Likewise.\n\t(frv_relocate_main_executable): Likewise.\n\t* solib-spu.c (spu_relocate_main_executable): Likewise.\n\t(spu_bfd_open): Likewise.\n\t* solib-svr4.c (lm_info_read): Likewise.\n\t(read_program_header): Likewise.\n\t(find_program_interpreter): Likewise.\n\t(scan_dyntag): Likewise.\n\t(elf_locate_base): Likewise.\n\t(open_symbol_file_object): Likewise.\n\t(read_program_headers_from_bfd): Likewise.\n\t(svr4_relocate_main_executable): Likewise.\n\t* solib-target.c (solib_target_relocate_section_addresses): Likewise.\n\t* solib.c (solib_find_1): Likewise.\n\t(exec_file_find): Likewise.\n\t(solib_find): Likewise.\n\t* source.c (openp): Likewise.\n\t(print_source_lines_base): Likewise.\n\t(forward_search_command): Likewise.\n\t* sparc-ravenscar-thread.c (supply_register_at_address): Likewise.\n\t* spu-tdep.c (spu2ppu_prev_register): Likewise.\n\t(spu_get_overlay_table): Likewise.\n\t* stabsread.c (patch_block_stabs): Likewise.\n\t(define_symbol): Likewise.\n\t(again:): Likewise.\n\t(read_member_functions): Likewise.\n\t(read_one_struct_field): Likewise.\n\t(read_enum_type): Likewise.\n\t(common_block_start): Likewise.\n\t* stack.c (read_frame_arg): Likewise.\n\t(backtrace_command): Likewise.\n\t* stap-probe.c (stap_parse_register_operand): Likewise.\n\t* symfile.c (syms_from_objfile_1): Likewise.\n\t(find_separate_debug_file): Likewise.\n\t(load_command): Likewise.\n\t(load_progress): Likewise.\n\t(load_section_callback): Likewise.\n\t(reread_symbols): Likewise.\n\t(add_filename_language): Likewise.\n\t(allocate_compunit_symtab): Likewise.\n\t(read_target_long_array): Likewise.\n\t(simple_read_overlay_table): Likewise.\n\t* symtab.c (symbol_set_names): Likewise.\n\t(resize_symbol_cache): Likewise.\n\t(rbreak_command): Likewise.\n\t(completion_list_add_name): Likewise.\n\t(completion_list_objc_symbol): Likewise.\n\t(add_filename_to_list): Likewise.\n\t* target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.\n\t* target-memory.c (target_write_memory_blocks): Likewise.\n\t* target.c (target_read_string): Likewise.\n\t(read_whatever_is_readable): Likewise.\n\t(target_read_alloc_1): Likewise.\n\t(simple_search_memory): Likewise.\n\t(target_fileio_read_alloc_1): Likewise.\n\t* tilegx-tdep.c (tilegx_push_dummy_call): Likewise.\n\t* top.c (command_line_input): Likewise.\n\t* tracefile-tfile.c (tfile_fetch_registers): Likewise.\n\t* tracefile.c (tracefile_fetch_registers): Likewise.\n\t* tracepoint.c (add_memrange): Likewise.\n\t(init_collection_list): Likewise.\n\t(add_aexpr): Likewise.\n\t(trace_dump_actions): Likewise.\n\t(parse_trace_status): Likewise.\n\t(parse_tracepoint_definition): Likewise.\n\t(parse_tsv_definition): Likewise.\n\t(parse_static_tracepoint_marker_definition): Likewise.\n\t* tui/tui-file.c (tui_sfileopen): Likewise.\n\t(tui_file_adjust_strbuf): Likewise.\n\t* tui/tui-io.c (tui_expand_tabs): Likewise.\n\t* tui/tui-source.c (tui_set_source_content): Likewise.\n\t* typeprint.c (find_global_typedef): Likewise.\n\t* ui-file.c (do_ui_file_xstrdup): Likewise.\n\t(ui_file_obsavestring): Likewise.\n\t(mem_file_write): Likewise.\n\t* utils.c (make_hex_string): Likewise.\n\t(get_regcomp_error): Likewise.\n\t(puts_filtered_tabular): Likewise.\n\t(gdb_realpath_keepfile): Likewise.\n\t(ldirname): Likewise.\n\t(gdb_bfd_errmsg): Likewise.\n\t(substitute_path_component): Likewise.\n\t* valops.c (search_struct_method): Likewise.\n\t(find_oload_champ_namespace_loop): Likewise.\n\t* valprint.c (print_decimal_chars): Likewise.\n\t(read_string): Likewise.\n\t(generic_emit_char): Likewise.\n\t* varobj.c (varobj_delete): Likewise.\n\t(varobj_value_get_print_value): Likewise.\n\t* vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.\n\t* windows-tdep.c (display_one_tib): Likewise.\n\t* xcoffread.c (read_xcoff_symtab): Likewise.\n\t(process_xcoff_symbol): Likewise.\n\t(swap_sym): Likewise.\n\t(scan_xcoff_symtab): Likewise.\n\t(xcoff_initial_scan): Likewise.\n\t* xml-support.c (gdb_xml_end_element): Likewise.\n\t(xml_process_xincludes): Likewise.\n\t(xml_fetch_content_from_file): Likewise.\n\t* xml-syscall.c (xml_list_of_syscalls): Likewise.\n\t* xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.\n\ngdb/gdbserver/ChangeLog:\n\n\t* ax.c (gdb_parse_agent_expr): Add cast to allocation result\n\tassignment.\n\t(gdb_unparse_agent_expr): Likewise.\n\t* hostio.c (require_data): Likewise.\n\t(handle_pread): Likewise.\n\t* linux-low.c (disable_regset): Likewise.\n\t(fetch_register): Likewise.\n\t(store_register): Likewise.\n\t(get_dynamic): Likewise.\n\t(linux_qxfer_libraries_svr4): Likewise.\n\t* mem-break.c (delete_fast_tracepoint_jump): Likewise.\n\t(set_fast_tracepoint_jump): Likewise.\n\t(uninsert_fast_tracepoint_jumps_at): Likewise.\n\t(reinsert_fast_tracepoint_jumps_at): Likewise.\n\t(validate_inserted_breakpoint): Likewise.\n\t(clone_agent_expr): Likewise.\n\t* regcache.c (init_register_cache): Likewise.\n\t* remote-utils.c (putpkt_binary_1): Likewise.\n\t(decode_M_packet): Likewise.\n\t(decode_X_packet): Likewise.\n\t(look_up_one_symbol): Likewise.\n\t(relocate_instruction): Likewise.\n\t(monitor_output): Likewise.\n\t* server.c (handle_search_memory): Likewise.\n\t(handle_qxfer_exec_file): Likewise.\n\t(handle_qxfer_libraries): Likewise.\n\t(handle_qxfer): Likewise.\n\t(handle_query): Likewise.\n\t(handle_v_cont): Likewise.\n\t(handle_v_run): Likewise.\n\t(captured_main): Likewise.\n\t* target.c (write_inferior_memory): Likewise.\n\t* thread-db.c (try_thread_db_load_from_dir): Likewise.\n\t* tracepoint.c (init_trace_buffer): Likewise.\n\t(add_tracepoint_action): Likewise.\n\t(add_traceframe): Likewise.\n\t(add_traceframe_block): Likewise.\n\t(cmd_qtdpsrc): Likewise.\n\t(cmd_qtdv): Likewise.\n\t(cmd_qtstatus): Likewise.\n\t(response_source): Likewise.\n\t(response_tsv): Likewise.\n\t(cmd_qtnotes): Likewise.\n\t(gdb_collect): Likewise.\n\t(initialize_tracepoint): Likewise.","distinct":true,"url":"https://api.github.com/repos/simark/binutils-gdb/commits/3700a0fd59619d846980e94a73d0a05bdcab33df"},{"sha":"4227240491b22bec0d5f4726c43296032f461e63","author":{"email":"fa7054fed17d58b06d3b1bf9b1077e42165a09ec@ericsson.com","name":"Simon Marchi"},"message":"Add casts for user data/baton/context/callback arg/etc\n\nThis patch adds casts to any situation where a user\ndata/baton/context/callback arg/etc void pointer is casted to something\nelse.  Building in C++ mode requires those places to use an explicit\ncast.  A typical example of it is a cleanup function that receives a\nvoid pointer \"arg\" and has to cast it to the actual type, but there are\nmany other instances.\n\nThis also comes from the commit \"(mostly) auto-generated patch to\ninsert casts needed for C++\", taken from Pedro's C++ branch.\n\nOnly files built on x86 with --enable-targets=all are modified, so the\nnative files for other arches will need to be dealt with separately.\n\nI built-tested this with --enable-targets=all and reg-tested.","distinct":true,"url":"https://api.github.com/repos/simark/binutils-gdb/commits/4227240491b22bec0d5f4726c43296032f461e63"}]}