X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2FChangeLog;h=871278f8123649e01f383310798c6f590c55cb89;hb=2c02bd729076b940958bccf68f1cc0b1ecf8403b;hp=553cb7611be7b6663819a3e91a14ebfc986555ee;hpb=2ca0b532fd230a6d5b2465105010e51baa51f44b;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 553cb7611b..871278f812 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,1067 @@ +2012-02-02 Doug Evans + + * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of + "name" parameter to const char ** from char **. All callers updated. + (find_pc_partial_function): Ditto. + (cache_pc_function_name): Change type to const char * from char *. + * symtab.h ((find_pc_partial_function_gnu_ifunc): Update. + (find_pc_partial_function): Update. + * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change + type of "name" parameter to const char * from char *. + All uses updated. + * arch-utils.c (generic_in_solib_return_trampoline): Change + type of "name" parameter to const char * from char *. + * arch-utils.h (generic_in_solib_return_trampoline): Update. + * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change + type of "name" parameter to const char * from char *. + * gdbarch.sh (in_solib_return_trampoline): Ditto. + * gdbarch.c: Regenerate. + * gdbarch.h: Regenerate. + * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update. + * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update. + * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change + type of "name" parameter to const char * from char *. + * skip.c (skip_function_pc): Ditto. + * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto. + * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update. + * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto. + * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto. + * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto. + * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto. + * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto. + * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name". + * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update. + +2012-02-02 Pedro Alves + + * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if + the current inferior has no execution. Make sure the current + remote process matches gdb's current inferior. + +2012-02-02 Tom Tromey + + PR gdb/13405: + * tui/tui-win.c (parse_scrolling_args): Don't write to possibly + read-only memory. + +2012-02-02 Tom Tromey + + PR gdb/9307: + * symtab.c (lookup_language_this): Set block_found. + +2012-02-01 Tom Tromey + + PR gdb/13431: + * jit.c (struct jit_inferior_data): Rewrite. + (struct jit_objfile_data): New. + (get_jit_objfile_data): New function. + (add_objfile_entry): Update. + (jit_read_descriptor): Return int. Replace descriptor_addr + argument with inf_data. Update. Don't call error. + (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up + descriptor here. + (jit_inferior_init): Don't look up descriptor. Don't call error. + (jit_reset_inferior_data_and_breakpoints) + (jit_inferior_created_observer): Remove. + (jit_inferior_exit_hook): Update. + (jit_executable_changed_observer): Remove. + (jit_event_handler): Update. + (free_objfile_data): Reset inferior data if needed. + (_initialize_jit): Update. + +2012-02-01 Tom Tromey + + * jit.c (bfd_open_from_target_memory): Move higher in file. + +2012-02-01 Tristan Gingold + + * libunwind-frame.c (libunwind_load): Display message if dlopen + failed. + +2012-02-01 Gary Benson + + * symtab.h (symbol_name_match_p_ftype): New typedef. + (iterate_over_symbols): Use the above. + * symtab.c (iterate_over_symbols): Likewise. + * language.h (language_defn->la_iterate_over_symbols): Likewise. + * ada-lang.c (ada_iterate_over_symbols): Likewise. + * linespec.c (iterate_over_all_matching_symtabs): Likewise. + (iterate_name_matcher): Document return values. + (collect_one_symbol): Likewise. + (collect_function_symbols): Likewise. + (collect_symbols): Likewise. + +2012-02-01 Tom Tromey + + * ada-lang.c (resolve_subexp): Update. + (ada_lookup_symbol_list): Add 'full_search' argument. + (ada_iterate_over_symbols): Pass 0 as full_search argument to + ada_lookup_symbol_list. + (ada_lookup_encoded_symbol): Update. + (get_var_value): Update. + * ada-exp.y (block_lookup): Update. + (write_var_or_type): Update. + (write_name_assoc): Update. + * ada-lang.h (ada_lookup_symbol_list): Update. + +2012-01-31 Tom Tromey + + * language.h (struct language_defn) : Fix + comment. + +2012-01-31 Doug Evans + + * symtab.h: Remove outdated comment. + (SYMBOL_MATCHES_NATURAL_NAME): Delete. + +2012-02-01 Josh Matthews (tiny change) + + Fix build error in Darwin port. + * i386-darwin-nat.c: Include i386-nat.h. + +2012-01-30 Tom Tromey + + PR breakpoints/13568: + * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash' + argument. Check for recursive includes. + (dwarf_decode_macros): Create an include hash. + +2012-01-30 Michael Eager + + * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o. + * ppc-linux-tdep.c: Include glibc-tdep.h. + (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates. + (powerpc_linux_in_plt_stub): New function. + (powerpc_linux_in_dynsym_resolve_code): New function. + (ppc_skip_trampoline_code): New function. + (ppc_linux_init_abi): Use PPC specific functions rather than generic. + Use glibc_skip_solib_resolver. + +2012-01-28 Jan Kratochvil + + Code cleanup: Make 1440 bytes of data segment read-only. + * arch-utils.c (endian_enum): Make it const char *const []. + * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings): + Likewise. + * breakpoint.c (always_inserted_enums): Likewise. + * cli/cli-cmds.c (script_ext_enums): Likewise. + * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the + enumlist parameter const char *const *. + * cli/cli-decode.h (struct cmd_list_element): Make the enums field + const char *const *. + * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist + parameter const char *const *. + * cris-tdep.c (cris_modes): Make it const char *const []. + * filesystem.c (target_file_system_kinds): Likewise. + * i386-tdep.c (valid_flavors, valid_conventions): Likewise. + * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names) + (can_use_displaced_stepping_enum, scheduler_enums) + (exec_direction_names): Likewise. + * language.c (_initialize_language): Make the type_or_range_names and + case_sensitive_names variables const char *const []. + * mips-tdep.c (mips_abi_strings): Make it const char *const []. + * python/python.c (python_excp_enums): Likewise. + * remote.c (interrupt_sequence_modes): Likewise. + * rs6000-tdep.c (powerpc_vector_strings): Likewise. + * serial.c (logbase_enums): Likewise. + * sh-tdep.c (sh_cc_enum): Likewise. + * stack.c (print_frame_arguments_choices, print_entry_values_choices): + Likewise. + * symtab.c (multiple_symbols_modes): Likewise. + * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums): + Likewise. + * utils.c (internal_problem_modes): Likewise. + +2012-01-27 Jan Kratochvil + + Fix the 2012-01-26 regression by la_get_symbol_name_match_p. + * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P + result. + +2012-01-27 Doug Evans + + * configure.ac (with_python): Fix absolute path handling for win32. + * configure: Regenerate. + +2012-01-26 Doug Evans + + * symtab.c: Whitespace cleanup, no code changes. + + * symtab.c (lookup_symbol_in_language): Improve comment. + (lookup_symbol_aux): Fix comment. + + * psymtab.c (add_psymbol_to_list): Result is now "void". + * psympriv.h (add_psymbol_to_list): Update. + + * dwarf2read.c (add_partial_symbol): Delete local psym, unused. + +2012-01-26 Jan Kratochvil + + Do not open script filenames twice. + * cli/cli-cmds.c (source_script_from_stream): Pass to + source_python_script also STREAM. + * python/py-auto-load.c (source_section_scripts): Pass to + source_python_script_for_objfile also STREAM. + (auto_load_objfile_script): Pass to source_python_script_for_objfile + also INPUT. + * python/python-internal.h (source_python_script_for_objfile): New + parameter file, rename parameter file to filename. + * python/python.c (python_run_simple_file): Call PyRun_SimpleFile + instead if !_WIN32. Update the function comment. + (source_python_script, source_python_script_for_objfile) + (source_python_script): New parameter file, rename parameter file to + filename. Pass FILENAME to python_run_simple_file. + * python/python.h (source_python_script): New parameter file, rename + parameter file to filename. + +2012-01-26 Pedro Alves + + * corelow.c (core_has_fake_pid): Delete. + (core_close): Delete references to `core_has_fake_pid'. + (add_to_thread_list): Adjust to mark the inferior's pid as fake. + (core_open): Delete references to `core_has_fake_pid'. + (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of + the removed global. + +2012-01-26 Joel Brobecker + + * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]: + Remove language parameter from name_matcher. Adjust the comment. + * symtab.c (search_symbols_name_matches, expand_partial_symbol_name): + Remove language parameter. + * ada-lang.c (ada_expand_partial_symbol_name): Likewise. + * linespec.c (iterate_name_matcher): Likewise. + * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of + name_matcher. Adjust call accordingly. + * psymtab.c (expand_symtabs_matching_via_partial): Likewise. + (maintenance_check_symtabs): Adjust type of parameter "fun". + * psymtab.h (maintenance_check_symtabs): Likewise. + +2012-01-26 Joel Brobecker + + * language.h (symbol_name_match_p_ftype): New typedef. + (struct language_defn): Replace field la_symbol_name_compare + by la_get_symbol_name_match_p. + * ada-lang.c (ada_get_symbol_name_match_p): New function. + (ada_language_defn): Use it. + * linespec.c (struct symbol_matcher_data): New type. + (iterate_name_matcher): Rewrite. + (iterate_over_all_matching_symtabs): Pass a pointer to + a symbol_matcher_data struct to expand_symtabs_matching + instead of just the lookup name. + * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c, + opencl-lang.c, p-lang.c, language.c: Delete field + la_symbol_name_compare, and replace by NULL for new field + la_get_symbol_name_match_p. + * symfile.h (struct quick_symbol_functions): Update comment. + +2012-01-25 Tom Tromey + + * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before + dereferencing. + +2012-01-24 Tom Tromey + + PR symtab/12406: + * solib.c (update_solib_list): Update the program space's + added_solibs and deleted_solibs fields. + * progspace.h (struct program_space) : New fields. + (clear_program_space_solib_cache): Declare. + * progspace.c (release_program_space): Call + clear_program_space_solib_cache. + (clear_program_space_solib_cache): New function. + * infrun.c (handle_inferior_event) : Call + bpstat_stop_status. Use handle_solib_event. + * breakpoint.c: Include gdb_regex.h. + (print_solib_event): New function. + (bpstat_print): Use print_solib_event. + (bpstat_stop_status): Add special case for bp_shlib_event. + (handle_solib_event): New function. + (bpstat_what): Use handle_solib_event. + (struct solib_catchpoint): New. + (dtor_catch_solib, insert_catch_solib, remove_catch_solib) + (breakpoint_hit_catch_solib, check_status_catch_solib) + (print_it_catch_solib, print_one_catch_solib) + (print_mention_catch_solib, print_recreate_catch_solib): New + functions. + (catch_solib_breakpoint_ops): New global. + (catch_load_or_unload, catch_load_command_1) + (catch_unload_command_1): New functions. + (internal_bkpt_check_status): Add special case for + bp_shlib_event. + (internal_bkpt_print_it): Use print_solib_event. + (initialize_breakpoint_ops): Initialize + catch_solib_breakpoint_ops. + (_initialize_breakpoint): Register "catch load" and "catch + unload". + * breakpoint.h (handle_solib_event): Declare. + * NEWS: Add entry for "catch load" and "catch unload". + +2012-01-24 Tom Tromey + + * ada-lang.c: Include gdb_vecs.h. + * charset.c: Include gdb_vecs.h. + * tracepoint.h: Include gdb_vecs.h. + * gdb_vecs.h: New file. + +2012-01-24 Pedro Alves + + * breakpoint.c (breakpoint_hit_catch_fork) + (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall) + (breakpoint_hit_catch_exec): Make use of the `ws' argument. + * infrun.c (inferior_has_forked, inferior_has_vforked) + (inferior_has_execd, inferior_has_called_syscall): Delete. + (handle_syscall_event): Get syscall_number from the execution + control state's wait status. + (wait_for_inferior): Don't clear syscall_number. + +2012-01-24 Pedro Alves + + * breakpoint.c (bpstat_check_location, bpstat_stop_status, + pc_at_non_inline_function): Add `ws' parameter, and pass it down. + (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork) + (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add + `ws' parameter. + (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return + false for events other than TARGET_SIGNAL_TRAP. + (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit): + Add `ws' parameter. + (bkpt_breakpoint_hit): Add `ws' parameter. Return false for + events other than TARGET_SIGNAL_TRAP. + (tracepoint_breakpoint_hit): Add `ws' parameter. + * breakpoint.h (struct breakpoint_ops) : Add `ws' + parameter. + (bpstat_stop_status): Same. + (pc_at_non_inline_function): Same. + * infrun.c (handle_syscall_event, handle_inferior_event): Adjust + to pass the current event's waitstatus to bpstat_stop_status + and pc_at_non_inline_function. + +2012-01-24 Jan Kratochvil + + Code cleanup. + * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM. + Update the function comment for it. + (source_script_with_search): Call make_cleanup_fclose for STREAM. + * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose + for STREAM. + +2012-01-24 Pedro Alves + + * breakpoint.c (bpstat_stop_status): Moving clearing print_it + outside `bs->stop' block. + (bpstat_what): Rework bp_shlib_event handling. + (internal_bkpt_check_status): If the breakpoint is a + bp_shlib_event, then set bs->stop and bs->print if + stop_on_solib_events is set. + +2012-01-24 Gary Benson + + Delete #if 0'd out code. + * stack.c (print_frame_label_vars): Remove. + (catch_info): Likewise. + (_initialize_stack): Remove "info catch" command. + * NEWS: Mention the above. + +2012-01-24 Pedro Alves + + * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use + it. + (remote_notice_new_inferior): If the remote end doesn't support + the multiprocess extensions, then the PID is fake. + (add_current_inferior_and_thread): New. + (remote_start_remote): Use it. + (extended_remote_attach_1): Adjust. + (extended_remote_create_inferior_1): Use + add_current_inferior_and_thread. + +2012-01-24 Jan Kratochvil + + Fix watchpoints to be specific for each inferior. + * breakpoint.c (watchpoint_in_thread_scope): Verify also + current_program_space. + * i386-nat.c (i386_inferior_data_cleanup): New. + (i386_inferior_data_get): Replace variable inf_data_local by an + inferior_data call. + (i386_use_watchpoints): Initialize i386_inferior_data. + * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID + specific iterate_over_lwps. + +2012-01-24 Jan Kratochvil + + Fix watchpoints across inferior fork. + * amd64-linux-nat.c (update_debug_registers_callback): Update the + comment for linux_nat_iterate_watchpoint_lwps. + (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use + linux_nat_iterate_watchpoint_lwps. + (amd64_linux_prepare_to_resume): New comment on Linux kernel. + * i386-linux-nat.c (update_debug_registers_callback): Update the + comment for linux_nat_iterate_watchpoint_lwps. + (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use + linux_nat_iterate_watchpoint_lwps. + (i386_linux_prepare_to_resume): New comment on Linux kernel. + * i386-nat.c: Include inferior.h. + (dr_mirror): Remove. + (i386_inferior_data, struct i386_inferior_data) + (i386_inferior_data_get): New. + (i386_debug_reg_state): Use i386_inferior_data_get. + (i386_cleanup_dregs, i386_update_inferior_debug_regs) + (i386_insert_watchpoint, i386_remove_watchpoint) + (i386_stopped_data_address, i386_insert_hw_breakpoint) + (i386_remove_hw_breakpoint): New variable state, use + i386_debug_reg_state instead of DR_MIRROR. + * linux-nat.c (delete_lwp): New declaration. + (num_lwps): Move here from downwards. + (delete_lwp_cleanup): New. + (linux_child_follow_fork): Create new child_lp, call + linux_nat_new_thread and linux_nat_prepare_to_resume before calling + PTRACE_DETACH. + (num_lwps): Move upwards. + (linux_nat_iterate_watchpoint_lwps): New. + * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New. + (linux_nat_iterate_watchpoint_lwps_ftype): New declaration. + +2012-01-24 Joel Brobecker + + GDB 7.4 released. + +2012-01-23 Pedro Alves + + * top.c (caution): Rename to ... + (confirm): ... this. + (show_caution): Rename to ... + (show_confirm): ... this. + (quit_cover): Adjust. + (init_main): Adjust. + * top.h (caution): Rename to ... + (confirm): ... this. + * utils.c (internal_vproblem, defaulted_query): Adjust. + +2012-01-23 Pedro Alves + + * top.c (caution): Update comment. + (execute_command): Don't consider the current value of `caution'. + +2012-01-23 Jan Kratochvil + + * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen. + +2012-01-23 Ulrich Weigand + + * inf-child.c: Include "gdb_stat.h" instead of . + * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning. + * target.c (target_fileio_pwrite): Remove buffer address from + debug output. + (target_fileio_pread): Likewise. + +2012-01-20 Ulrich Weigand + + * NEWS: Document remote "info proc" and "generate-core-file". + +2012-01-20 Ulrich Weigand + + * gdbarch.sh (find_memory_regions): New callback. + * gdbarch.c, gdbarch.h: Regenerate. + + * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions + callback before falling back to target method. + + * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove. + (linux_target_install_ops): No longer install it. + + * linux-tdep.c (linux_find_memory_regions): New function. + (linux_init_abi): Install it. + +2012-01-20 Ulrich Weigand + + * gdbarch.sh (make_corefile_notes): New architecture callback. + * gdbarch.c: Regenerate. + * gdbarch.h: Likewise. + + * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes + before target_make_corefile_notes. If NULL is returned, the + target does not support core file generation. + + * linux-nat.c: Include "linux-tdep.h". + (find_signalled_thread, find_stop_signal): Remove. + (linux_nat_do_thread_registers): Likewise. + (struct linux_nat_corefile_thread_data): Likewise. + (linux_nat_corefile_thread_callback): Likewise. + (iterate_over_spus): Likewise. + (struct linux_spu_corefile_data): Likewise. + (linux_spu_corefile_callback): Likewise. + (linux_spu_make_corefile_notes): Likewise. + (linux_nat_collect_thread_registers): New function. + (linux_nat_make_corefile_notes): Replace contents by call to + linux_make_corefile_notes passing linux_nat_collect_thread_registers + as native-only callback. + + * linux-tdep.h: Include "bfd.h". + (struct regcache): Add forward declaration. + (linux_collect_thread_registers_ftype): New typedef. + (linux_make_corefile_notes): Add prototype. + * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h", + "regset.h", and "elf-bfd.h". + (find_signalled_thread, find_stop_signal): New functions. + (linux_spu_make_corefile_notes): Likewise. + (linux_collect_thread_registers): Likewise. + (struct linux_corefile_thread_data): New data structure. + (linux_corefile_thread_callback): New funcion. + (linux_make_corefile_notes): Likewise. + (linux_make_corefile_notes_1): Likewise. + (linux_init_abi): Install it. + +2012-01-20 Ulrich Weigand + + * gdbarch.sh (info_proc): New callback. + * gdbarch.c, gdbarch.h: Regenerate. + + * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback + before falling back to the target info_proc callback. + + * linux-nat.c: Do not include "cli/cli-utils.h". + (linux_nat_info_proc): Remove. + (linux_target_install_ops): No longer install it. + + * linux-tdep.c: Include "cli/cli-utils.h" and . + (read_mapping): New function. + (linux_info_proc): Likewise. + (linux_init_abi): Install it. + +2012-01-20 Ulrich Weigand + + * defs.h (enum info_proc_what): Moved here from linux-nat.c + * infcmd.c: (info_proc_cmd_1): New function. + (info_proc_cmd): New function, moved here from equivalent routine + orignally in linux-nat.c. + (info_proc_cmd_mappings): Likewise. + (info_proc_cmd_stat): Likewise. + (info_proc_cmd_status): Likewise. + (info_proc_cmd_cwd): Likewise. + (info_proc_cmd_cmdline): Likewise. + (info_proc_cmd_exe): Likewise. + (info_proc_cmd_all): Likewise. + (_initialize_infcmd): Install "info proc" command and subcommands. + + * target.h (struct target_ops): Add to_info_proc. + (target_info_proc): Add prototype. + * target.c (target_info_proc): New function. + + * procfs.c (procfs_info_proc): Add prototype. + (info_proc_cmd): Rename into ... + (procfs_info_proc): ... this. Update argument types as appropriate + for a to_info_proc implementation. Handle "what" argument. + (procfs_target): Install procfs_info_proc. + (_initialize_procfs): No longer install "info proc" command. + + * linux-nat.c: (enum info_proc_what): Remove. + (linux_nat_info_proc_cmd_1): Rename into ... + (linux_nat_info_proc): ... this. Update argument types as appropriate + for a to_info_proc implementation. + (linux_nat_info_proc_cmd): Remove. + (linux_nat_info_proc_cmd_mappings): Likewise. + (linux_nat_info_proc_cmd_stat): Likewise. + (linux_nat_info_proc_cmd_status): Likewise. + (linux_nat_info_proc_cmd_cwd): Likewise. + (linux_nat_info_proc_cmd_cmdline): Likewise. + (linux_nat_info_proc_cmd_exe): Likewise. + (linux_nat_info_proc_cmd_all): Likewise. + (linux_target_install_ops): Install linux_nat_info_proc. + (_initialize_linux_nat): No longer install "info proc" command + and subcommands. + +2012-01-20 Ulrich Weigand + + * configure.ac [AC_CHECK_FUNCS]: Check for readlink. + * config.in, configure: Regenerate. + + * target.h (struct target_ops): Add to_fileio_readlink. + (target_fileio_readlink): Add prototype. + * target.c (target_fileio_readlink): New function. + + * inf-child.c: Conditionally include . + (inf_child_fileio_readlink): New function. + (inf_child_target): Install it. + + * remote.c (PACKET_vFile_readlink): New enum value. + (remote_hostio_readlink): New function. + (init_remote_ops): Install it. + (_initialize_remote): Handle vFile:readlink packet type. + +2012-01-20 Pedro Alves + Ulrich Weigand + + * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite. + * config.in, configure: Regenerate. + + * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite, + to_fileio_pread, to_fileio_close, to_fileio_unlink. + (target_fileio_open): Add prototype. + (target_fileio_pwrite): Likewise. + (target_fileio_pread): Likewise. + (target_fileio_close): Likewise. + (target_fileio_unlink): Likewise. + (target_fileio_read_alloc): Likewise. + (target_fileio_read_stralloc): Likewise. + + * target.c: Include "gdb/fileio.h". + (target_read_stralloc): Accept trailing, but not embedded NUL bytes. + (default_fileio_target): New function. + (target_fileio_open): Likewise. + (target_fileio_pwrite): Likewise. + (target_fileio_pread): Likewise. + (target_fileio_close): Likewise. + (target_fileio_unlink): Likewise. + (target_fileio_close_cleanup): Likewise. + (target_fileio_read_alloc_1): Likewise. + (target_fileio_read_alloc): Likewise. + (target_fileio_read_stralloc): Likewise. + + * inf-child.c: Include "gdb/fileio.h", , , + , and . + (inf_child_fileio_open_flags_to_host): New function. + (inf_child_errno_to_fileio_error): Likewise. + (inf_child_fileio_open): Likewise. + (inf_child_fileio_pwrite): Likewise. + (inf_child_fileio_pread): Likewise. + (inf_child_fileio_close): Likewise. + (inf_child_fileio_unlink): Likewise. + (inf_child_target): Install to_fileio routines. + + * remote.c (init_remote_ops): Install to_fileio routines. + +2012-01-20 Pedro Alves + Ulrich Weigand + + * remote.c (remote_multi_process_p): Only check for multi-process + protocol feature, do not check for extended protocol. + (remote_supports_multi_process): Check for extended protocol here. + (set_general_process): Likewise. + (extended_remote_kill): Likewise. + (remote_pid_to_str): Likewise. + (remote_query_supported): Always query multiprocess mode. + +2012-01-20 Pedro Alves + Ulrich Weigand + + * inferior.h (struct inferior): Add fake_pid_p. + * inferior.c (exit_inferior_1): Clear fake_pid_p. + * remote.c (remote_start_remote): Set fake_pid_p if we have to use + magic_null_ptid since the remote side doesn't provide a real PID. + +2012-01-19 Tom Tromey + + * NEWS: Combine the two Python sections. + +2012-01-19 Jan Kratochvil + + * target.h (target_close): Update comment on the target's unpush state. + +2012-01-19 Pedro Alves + + * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and + linux_nat_async directly instead of going through the target + vector. + * target.c (unpush_target): Close target after unpushing it, not + before. + +2012-01-19 Gary Benson + + * mdebugread.c (sort_blocks): Replace integer constants with ones + derived from FIRST_LOCAL_BLOCK. + +2012-01-18 Paul Pluzhnikov + Jan Kratochvil + + PR gdb/9538 + * symfile.c (find_separate_debug_file): New function. + (terminate_after_last_dir_separator): Likewise. + (find_separate_debug_file_by_debuglink): Also try realpath. + * configure.ac (AC_CHECK_FUNCS): Add lstat. + * configure: Regenerate. + * config.in: Regenerate. + +2012-01-18 Doug Evans + + * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete. + (main.o): Remove rule. + * configure.ac (BINDIR): Define with AC_DEFINE_DIR. + (--with-sysroot): Rewrite. + * configure: Regenerate. + * config.in: Regenerate. + +2012-01-18 Sergio Durigan Junior + + * parse.c (initialize_expout): New function. + (reallocate_expout): Likewise. + (parse_exp_in_context): Use `initialize_expout' and + `reallocate_expout' when appropriate. + +2012-01-18 Pedro Alves + + * record.c (struct record_breakpoint, record_breakpoint_p) + (record_breakpoints): New. + (record_insert_breakpoint, record_remove_breakpoint): Manage + record breakpoints list. Only remove breakpoints from the + inferior if they had been inserted there in the first place. + +2012-01-17 Doug Evans + + * linespec.c (decode_line_internal): Don't call symtabs_from_filename + if we know we don't have a file name to look for. + +2012-01-17 Pedro Alves + + * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if + the frame's stop reason is UNWIND_UNAVAILABLE. + +2012-01-17 Jan Kratochvil + + Fix compilation error. + * m2-exp.y (yyerror): Use ANSI C prototype. + +2012-01-16 Sergio Durigan Junior + + * f-exp.y (parse_number): Convert prototype from K&R to ANSI C. + (growbuf_by_size): Likewise. + (yyerror): Likewise. + * m2-exp.y (make_qualname): Remove function (was #if 0'ed). + (modblock): Remove variable (was #if 0'ed). + (parse_number): Convert prototype from K&R to ANSI C. + (yyerror): Likewise. + * objc-exp.y (parse_number): Likewise. + (yyerror): Likewise. + (yylex): Remove #if 0'ed code. + * p-exp.y (uptok): Convert prototype from K&R to ANSI C. + (yyerror): Likewise. + +2012-01-16 Tom Tromey + + * NEWS: Add item. + * symtab.h (compare_filenames_for_search): Declare. + * symtab.c (compare_filenames_for_search): New function. + (iterate_over_some_symtabs): Use it. + * symfile.h (struct quick_symbol_functions) + : Change spec. + * psymtab.c (partial_map_symtabs_matching_filename): Use + compare_filenames_for_search. Update for new spec. + * dwarf2read.c (dw2_map_symtabs_matching_filename): Use + compare_filenames_for_search. Update for new spec. + * breakpoint.c (clear_command): Use compare_filenames_for_search. + +2012-01-16 Tom Tromey + + PR python/13281: + * gdbtypes.h (TYPE_FLAG_ENUM): New macro. + (struct main_type) : New field. + * dwarf2read.c (process_enumeration_scope): Detect "flag" enums. + * NEWS: Add entries. + * c-valprint.c (c_val_print) : Handle "flag" + enums. + * python/lib/gdb/printing.py (_EnumInstance): New class. + (FlagEnumerationPrinter): Likewise. + +2012-01-16 Sergio Durigan Junior + + * breakpoint.c (create_sals_from_address_default): New function. + (create_breakpoints_sal_default): Likewise. + (decode_linespec_default): Likewise. + (is_marker_spec): Removed. + (strace_marker_p): New function. + (init_breakpoint_sal): Using `strace_marker_p' instead of + `is_marker_spec'. + (create_breakpoint): Call method `create_sals_from_address' from + breakpoint_ops, replacing code that created SALs conditionally + on the type of the breakpoint. Call method `create_breakpoints_sal', + replacing code that created breakpoints conditionally on the type + wanted. + (base_breakpoint_create_sals_from_address): New function. + (base_breakpoint_create_breakpoints_sal): Likewise. + (base_breakpoint_decode_linespec): Likewise. + (base_breakpoint_ops): Add methods + `base_breakpoint_create_sals_from_address', + `base_breakpoint_create_breakpoints_sal' and + `base_breakpoint_decode_linespec'. + (bkpt_create_sals_from_address): New function. + (bkpt_create_breakpoints_sal): Likewise. + (bkpt_decode_linespec): Likewise. + (tracepoint_create_sals_from_address): Likewise. + (tracepoint_create_breakpoints_sal): Likewise. + (tracepoint_decode_linespec): Likewise. + (strace_marker_create_sals_from_address): Likewise. + (strace_marker_create_breakpoints_sal): Likewise. + (strace_marker_decode_linespec): Likewise. + (strace_marker_breakpoint_ops): New variable. + (addr_string_to_sals): Remove `marker_spec'. Call method + `decode_linespec' from breakpoint_ops, replacing code that decoded + an address string into a SAL. Use `strace_marker_p' instead of + `marker_spec'. + (strace_command): Decide whether we are dealing with a static + tracepoint with marker or not. Use the appropriate breakpoint_ops. + (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops. + * breakpoint.h (linespec_result, linespec_sals): New forward + declarations. + (breakpoint_ops) , + , : New methods. + +2012-01-14 Doug Evans + + * NEWS: Update text for "maint set python print-stack". + It is deprecated in gdb 7.4 and deleted in 7.5. + +2012-01-13 Eli Zaretskii + + * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before + including curses.h. + +2012-01-12 Jan Kratochvil + + * configure: Regenerate. + * config.in: Regenerate. + +2012-01-12 Keith Seitz + + PR mi/10586 + * varobj.c (ANONYMOUS_STRUCT_NAME): Define. + (ANONYMOUS_UNION_NAME): Define. + (is_path_expr_parent): New function. + (get_path_expr_parent): New function. + (is_anonymous_child): New function. + (create_child_with_value): If the child is anonymous and without + a name, assign an object name to it. + (c_describe_child): Use get_path_expr_parent to determine + the parent expression. + If there field represents an anonymous struct or union and + has no name, set an appropriate display name and expression. + (cplus_describe_child): Likewise. + +2012-01-12 Pedro Alves + + * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as + available when %ebp is found to be zero (outermost). + +2012-01-11 Andreas Tobler + + * common/gdb_assert.h (gdb_static_assert): Rename static_assert to + an internal gdb_static_assert. + * mi/mi-common.c: Rename static_assert to gdb_static_assert. + +2012-01-11 Tom Tromey + + PR gdb/9598: + * breakpoint.c (_initialize_breakpoint): Fix help for "catch + catch" and "catch throw". + +2012-01-11 Paul Hilfinger + + * blockframe.c (block_innermost_frame): Start search from selected + frame, if present, or otherwise the current frame. + + * c-exp.y (variable): Update innermost_block for + 'block COLONCOLON NAME' clause. + * m2-exp.y (variable): Ditto. + * objc-exp.y (variable): Ditto. + +2012-01-10 Tom Tromey + + PR python/13199: + * python/python.c (finish_python_initialization): Set sys.argv. + +2012-01-10 Doug Evans + + * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg + "want_line_info". All callers updated. + (dwarf_decode_lines_1): New function. + (handle_DW_AT_stmt_list): Add function comment. + New arg "want_line_info". All callers updated. + (read_file_scope,read_type_unit_scope): Move comment from + handle_DW_AT_stmt_list to here. + +2012-01-10 Jan Kratochvil + + Fix regression after libiberty/ update for GCC PR 6057 and others. + * c-exp.y (operator) + (operator) : Add trailing space. + * cp-name-parser.y (fill_comp, make_operator, make_dtor) + (make_builtin_type, make_name): New variable i, add gdb_assert. + (operator) : Update ARGS to 3. + (operator) : Add trailing space. + (operator) : Update ARGS to 3. + (operator) : Add trailing space. + * cp-support.c (cp_canonicalize_string): Check NULL from + cp_comp_to_string, call warning and return. + +2012-01-10 Jan Kratochvil + + Fix duplicate .o files after omitting libbfd.a. + * Makefile.in (ALL_TARGET_OBS): Remove corelow.o. + (SFILES): Add corelow.c. + (COMMON_OBS): Add corelow.o. + (ALLDEPFILES): Remove corelow.c. + * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o. + * config/alpha/alpha-osf3.mh: Likewise. + * config/alpha/fbsd.mh: Likewise. + * config/arm/nbsdaout.mh: Likewise. + * config/arm/nbsdelf.mh: Likewise. + * config/i386/i386gnu.mh: Likewise. + * config/ia64/hpux.mh: Likewise. + * config/ia64/linux.mh: Likewise. + * config/m32r/linux.mh: Likewise. + * config/m68k/linux.mh: Likewise. + * config/mips/irix5.mh: Likewise. + * config/mips/irix6.mh: Likewise. + * config/pa/hpux.mh: Likewise. + * config/pa/linux.mh: Likewise. + * config/powerpc/aix.mh: Likewise. + * config/sparc/linux.mh: Likewise. + * config/sparc/linux64.mh: Likewise. + * config/sparc/sol2.mh: Likewise. + * config/vax/vax.mh: Likewise. + * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu) + (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*) + (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*) + (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*) + (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*) + (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*) + (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*) + (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*) + (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*) + (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu) + (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*) + (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*) + (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*) + (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*) + (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*) + (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*) + (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*) + (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu) + (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*) + (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*) + (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*) + (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove + corelow.o from gdb_target_obs. + * corefile.c (core_target): Update the comment on NULL value. + (core_file_command): Replace error by gdb_assert on CORE_TARGET. + * corelow.c (sniff_core_bfd): Call error instead of warning on zero + MATCHES. Drop YUMMY set on NULL. + (core_close): Do not call exit_inferior_silent on zero PID. Do not + reclaim CORE_DATA if it is already NULL. + +2012-01-09 Doug Evans + + * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy. + * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy. + +2012-01-09 Keith Seitz + + * breakpoint.c (wrapper.h): Don't include. + +2012-01-09 Keith Seitz + + * Makefile.in (SFILES): Remove wrapper.c. + (HFILES_NO_SRCDIR): Remove wrapper.h. + (COMMON_OBS): Remove wrapper.o. + * cli/cli-interp.c: Don't inlude wrapper.h. + * corelow.c: Likewise. + (core_open): Replace gdb_target_find_new_threads with + TRY_CATCH around target_find_new_threads. + * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy. + * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type. + * varobj.c (varobj_create): Likewise for parse_exp_1 and + evaluate_expression. + (varobj_set_value): Likewise for evaluate_expression and + value_assign. + (install_new_variable): Likewise for value_fetch_lazy. + (adjust_value_for_child_access): Likewise for value_ind. + (c_describe_child): Likewise for value_subscript and + value_ind. + (c_value_of_root): Likewise for evaluate_expression. + * wrapper.c: Remove. + * wrapper.h: Remove. + +2012-01-09 Doug Evans + + * dwarf2read.c (read_and_check_comp_unit_head): Renamed from + partial_read_comp_unit_head. Replace "buffer", "buffer_size" and + "abfd" args with "section". All callers updated. + Error checking code moved ... + (error_check_comp_unit_head): ... here. New function. + (read_and_check_type_unit_head): Renamed from read_type_unit_head. + Delete arg "abfd". New arg "type_offset". All callers updated. + (create_debug_types_hash_table): Simplify by using + read_and_check_type_unit_head. + + * parser-defs.h (namecopy): Delete. + * parse.c (namecopy, namecopy_size): Move into copy_name. + +2012-01-09 Jan Kratochvil + + Partially fix duplicate .o files after omitting libbfd.a. + * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o. + * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o. + * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o. + * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o. + * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o. + * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o. + * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o. + +2012-01-09 Pedro Alves + + * MAINTAINERS: Update my email address. + +2012-01-08 Doug Evans + + * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to + n_type_units. Rename type_comp_units to all_type_units. + All uses updated. + (add_signatured_type_cu_to_table): Renamed from + add_signatured_type_cu_to_list. All callers updated. + + * gdbtypes.h (struct cplus_struct_type): Delete member + nfn_fields_total. All uses removed. + +2012-01-06 Doug Evans + + * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard + to top of file. + (dwarf2_find_comp_unit): Delete. + (process_psymtab_comp_unit): Make result "void". + Delete args buffer, info_ptr, buffer_size, and replace with + "section". All callers updated. + (dwarf2_build_psymtabs_hard): Simplify. + +2012-01-06 Sergio Durigan Junior + Thiago Jung Bauermann + + * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword + before `struct gdb_exception'. + * breakpoint.c (update_global_location_list_nothrow) + (update_breakpoint_locations, enable_breakpoint_disp): Likewise. + * cp-abi.c (value_rtti_type): Likewise. + * cp-support.c (cp_validate_operator): Likewise. + * infrun.c (insert_exception_resume_breakpoint) + (check_exception_resume, keep_going): Likewise. + * mi-interp.c (mi_breakpoint_created) + (mi_breakpoint_modified): Likewise. + * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise. + * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p) + (ia64_hpux_handle_dld_breakpoint_1): Likewise. + +2012-01-05 Doug Evans + + * dwarf2read.c (statement_prologue): Delete, unused. + + * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int. + * dwarf2loc.h (dwarf2_per_cu_addr_size): Update. + + * dwarf2read.c (comp_unit_header): Delete, unused. + +2012-01-05 Ulrich Weigand + + * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o. + * config/s390/s390.mh (NATDEPFILES): Remove corelow.o. + 2012-01-05 Khoo Yit Phang * infrun.c (normal_stop): Don't skip calling the normal_stop