X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2FChangeLog;h=0ae93e0efae9b88d0d6ceaa42b96627b63cd770a;hb=80b6e7564ff0168d392e69a46ded01ce1bf3dd73;hp=cf90f8b909e62c460bae183b303041e8d301bf45;hpb=1a1d55138808328dcba03007dad0dd027b4199ad;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ChangeLog b/gdb/ChangeLog index cf90f8b909..0ae93e0efa 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,913 @@ +2011-12-16 Phil Muldoon + + * python/python.c: Define python_excp_enums. + (eval_python_from_control_command): Do not call gdbpy_print_stack. + (python_command): Ditto. + (gdbpy_print_stack): Rewrite to use new enum constants. + (maint_set_python): Remove function. + (maint_show_python): Ditto. + (_initialize_python): Do not add "maint" commands. Add "set/show + python print-stack commands". + * NEWS: Update to reflect removal for "maint set/show + print-stack" + +2011-12-15 Doug Evans + + * exceptions.c (catcher_list_size): New function. + (last_message): Delete. + (exception_messages, exception_messages_size): New static globals. + (throw_it): Use exception_messages array to handle nested calls. + +2011-12-15 Tom Tromey + + * symfile.c (symbol_file_add_with_addrs_or_offsets): Remove bad + do_cleanups call. + +2011-12-14 Doug Evans + + * defs.h (wait_to_die_with_timeout): Declare. + * utils.c: #include "gdb_wait.h". + (sigalrm_handler, wait_to_die_with_timeout): New functions. + * ser-pipe.c: Don't #include "gdb_wait.h". + (pipe_close): Give child a chance to die on its own after closing + its stdin before SIGTERM'ing it. + +2011-12-14 Joel Brobecker + Tom Tromey + + * ada-lang.c (add_nonlocal_symbols): Initialize data to + all zeros. Remove setting of data.arg_sym to NULL. + +2011-12-14 Pedro Alves + + PR threads/10729 + + * linux-nat.c (linux_nat_new_thread): Change parameter to an lwp + pointer. + (linux_nat_prepare_to_resume): New global. + (lwp_free): New. + (purge_lwp_list): Use it. + (add_lwp): Call linux_nat_new_thread even on the first LWP. + Adjust to interface change. + (delete_lwp): Call lwp_free instead of xfree. + (detach_callback, linux_nat_detach, resume_lwp, linux_nat_resume) + (linux_handle_syscall_trap, linux_handle_extended_wait) + (linux_nat_filter_event, resume_stopped_resumed_lwps): Call + linux_nat_prepare_to_resume before resuming. + (linux_stop_lwp): New. + (linux_nat_set_new_thread): Adjust. + (linux_nat_set_prepare_to_resume): New. + * linux-nat.h (struct arch_lwp_info): Forward declare. + (struct lwp_info) : New field. + (linux_stop_lwp): Declare. + (linux_nat_set_new_thread): Adjust. + (linux_nat_set_prepare_to_resume): New. + + * i386-nat.c (DR_NADDR, DR_STATUS, DR_CONTROL) + (struct i386_debug_reg_state): Move to i386-nat.h. + (dr_mirror): Comment. + (i386_debug_reg_state): New. + (i386_update_inferior_debug_regs): Simplify. + (i386_stopped_data_address): Use the debug register state from the + inferior, not from the local cache. + * i386-nat.h (struct i386_dr_low_type): Delete reset_addr and + unset_status fields. New get_addr and get_control fields. + (DR_FIRSTADDR, DR_LASTADDR, DR_CONTROL): Moved from i386-nat.c. + (DR_NADDR, DR_STATUS): New. + (struct i386_debug_reg_state): Moved from i386-nat.c. + + * amd64-linux-nat.c (struct arch_lwp_info): New. + (amd64_linux_dr): Delete global. + (amd64_linux_dr_get_addr): New. + (amd64_linux_dr_get_control): New. + (amd64_linux_dr_unset_status): Delete. + (amd64_linux_dr_set_addr): Reimplement. + (amd64_linux_dr_reset_addr): Delete. + (update_debug_registers_callback): New. + (amd64_linux_dr_set_control): Reimplement. + (amd64_linux_dr_set_addr): Reimplement. + (amd64_linux_prepare_to_resume): New. + (amd64_linux_new_thread): Change parameter to an lwp pointer. + Reimplement. + (_initialize_amd64_linux_nat): No longer install + i386_dr_low.reset_addr and i386_dr_low.unset_status. Install + amd64_linux_dr_get_control as i386_dr_low.get_control. Install + amd64_linux_dr_get_addr as i386_dr_low.get_addr. Install + amd64_linux_prepare_to_resume. + * i386-linux-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS) + (DR_CONTROL): Delete. + (struct arch_lwp_info): New. + (i386_linux_dr): Delete global. + (i386_linux_dr_set_control): Reimplement. + (i386_linux_dr_get_addr): New. + (i386_linux_dr_set_addr): Reimplement. + (i386_linux_dr_get_control): New. + (update_debug_registers_callback): New. + (i386_linux_dr_unset_status): Delete. + (i386_linux_dr_set_addr): Reimplement. + (i386_linux_prepare_to_resume): New. + (i386_linux_new_thread): Change parameter to an lwp pointer. + Reimplement. + (_initialize_i386_linux_nat): No longer install + i386_dr_low.reset_addr and i386_dr_low.unset_status. Install + i386_linux_dr_get_control as i386_dr_low.get_control. Install + i386_linux_dr_get_addr as i386_dr_low.get_addr. Install + i386_linux_prepare_to_resume. + + * arm-linux-nat.c (arm_linux_new_thread): Change parameter to an + lwp pointer. Adjust. + * ia64-linux-nat.c (ia64_linux_new_thread): Likewise. + * mips-linux-nat.c (mips_linux_new_thread): Likewise. + * ppc-linux-nat.c (ppc_linux_new_thread): Likewise. + * s390-nat.c (s390_fix_watch_points): Likewise. + + * i386-darwin-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS) + (DR_CONTROL): Delete. + (i386_darwin_dr_reset_addr): Delete. + (i386_darwin_dr_get_addr): New. + (i386_darwin_dr_get_control): New. + * go32-nat.c + (go32_get_dr7, go32_get_dr): New. + (init_go32_ops): No longer install i386_dr_low.reset_addr. + Install go32_get_dr7 as i386_dr_low.get_control. Install + go32_get_dr as i386_dr_low.get_addr. + * i386bsd-nat.c (i386bsd_dr_get): New. + (i386bsd_dr_reset_addr): Delete. + (i386bsd_dr_get_addr): New. + (i386bsd_dr_get_status): Use i386bsd_dr_get. + (i386bsd_dr_get_control): New. + * i386bsd-nat.h (i386bsd_dr_reset_addr): Delete. + (i386bsd_dr_get_addr): New. + (i386bsd_dr_get_control): New. + * i386fbsd-nat.c (_initialize_i386fbsd_nat): No longer install + i386_dr_low.reset_addr and i386_dr_low.unset_status. Install + i386bsd_dr_get_control as i386_dr_low.get_control. Install + i386bsd_dr_get_addr as i386_dr_low.get_addr. + * windows-nat.c (init_windows_ops): No longer install + i386_dr_low.reset_addr and i386_dr_low.unset_status. Install + cygwin_get_dr7 as i386_dr_low.get_control. Install cygwin_get_dr + as i386_dr_low.get_addr. + (cygwin_get_dr): New. + (cygwin_get_dr7): New. + +2011-12-14 Pedro Alves + + * ia64-tdep.c (ia64_memory_remove_breakpoint): Use + target_write_raw_memory. + * m32r-tdep.c (m32r_memory_remove_breakpoint): Use + target_write_raw_memory. + * microblaze-linux-tdep.c + (microblaze_linux_memory_remove_breakpoint): Use + target_write_raw_memory. + * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Use + target_write_raw_memory. + +2011-12-14 Joel Brobecker + + * linespec.c (decode_line_internal): Make static. + +2011-12-14 Yao Qi + + * breakpoint.c (create_breakpoint): Set canonical.addr_string + for static tracepoint. + +2011-12-13 Joel Brobecker + + GDB 7.4 branch created (branch timestamp: 2011-12-13 13:00 UTC) + * version.in: Bump version to 7.4.50.20111213-cvs. + +2011-12-13 Joel Brobecker + + * NEWS: Create a new section for the next release branch. + Rename the section of the current branch, now that it has + been cut. + +2011-12-11 Joel Brobecker + + * ada-lang.c (ada_exception_support_info_sniffer): Improve + error message. + +2011-12-11 Joel Brobecker + + * ada-lang.c (struct ada_inferior_data) [exception_info]: + New field. + (exception_info): Delete. + (ada_exception_support_info_sniffer): Get exception_support_info + data from our per-inferior data. Adjust code accordingly. + (ada_unhandled_exception_name_addr_from_raise): Likewise. + (ada_exception_name_addr_1, ada_exception_sym_name): Ditto. + (ada_executable_changed_observer): Delete. + (_initialize_ada_language): Remove call to + observer_attach_executable_changed. + +2011-12-11 Joel Brobecker + + * ada-lang.c (ada_has_this_exception_support): Raise an error + if we could find the Ada exception hook in the Ada runtime, + but no debugging info for that hook. + +2011-12-11 Joel Brobecker + + * ada-lang.c (ada_has_this_exception_support): New function, + extracted out of ada_exception_sal and ada_exception_sal. + (ada_exception_support_info_sniffer): Simplify by using + ada_has_this_exception_support. + (ada_exception_sal): Replace unnecessary checks by assertions. + Minor simplifications. + +2011-12-10 Andrey Smirnov + + * breakpoint.c (update_global_location_list): Remove nested + definition of `b'(-Wshadow). + +2011-12-10 Andrey Smirnov + + * breakpoint.c (insert_breakpoint_locations): Rename `error' to + `error_flag'(-Wshadow). + +2011-12-10 Andrey Smirnov + + * bfd-target.c (target_bfd_reopen): Rename `bfd' to + `abfd'(-Wshadow). + +2011-12-10 Andrey Smirnov + + * annotate.c (annotate_array_section_begin): Rename `index' to + `idx'(-Wshadow). + +2011-12-10 Andrey Smirnov + + * amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to + `idx'(-Wshadow). + +2011-12-10 Andrey Smirnov + + * amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename + `syscall' to `syscall_number'(-Wshadow). + +2011-12-10 Andrey Smirnov + + * ada-lang.c (remove_extra_symbols): Rename `remove' to + `remove_p'(-Wshadow). + +2011-12-10 Andrey Smirnov + + * ada-exp.y (write_var_or_type): Rename nested `renaming' to + `ren_sym'(-Wshadow). + +2011-12-10 Doug Evans + + * dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to + debug_types_section. All uses updated. + (partial_read_comp_unit_head): Rename parameter is_debug_type_section + to is_debug_types_section. + + * python/py-auto-load.c (source_section_scripts): Call xfree + instead of free. + +2011-12-10 Hui Zhu + Yao Qi + + * tracepoint.c (start_tracing): Clear `inserted' flag. + +2011-12-10 Hui Zhu + + * tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf. + +2011-12-09 Andrey Smirnov + + * breakpoint.c (bp_loc_is_permanent): Rename `brk' to + `bpoint'(-Wshadow). + +2011-12-09 Andrey Smirnov + + * breakpoint.c (update_static_tracepoint): Rename nested `sal' and + `marker' variables to `sal2' and `tpmarker' respectively + (-Wshadow). + +2011-12-09 Andrew Pinski + + * linespec.c (hash_address_entry): Use iterative_hash_object on each + field rather than the struct itself. + +2011-12-09 Tom Tromey + + * breakpoint.c (compare_breakpoints): New function. + (clear_command): Remove duplicate breakpoints. Properly clean + up. + +2011-12-08 Maciej W. Rozycki + Maciej W. Rozycki + + * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend + address chunks retrieved from decoded lui/addiu pairs. + +2011-12-08 Maciej W. Rozycki + + * mips-tdep.c (extended_offset): Correct calculation. + (unpack_mips16): Correct bitfield positions used for extraction + of the immediate argument; fix sign-extension of same. + (extended_mips16_next_pc): Correct B instruction's offset + calculation. Correct register decoding of the BEQZ and BNEZ + as well as jump-register instructions. Handle compact jumps. + +2011-12-08 Tom Tromey + + * objfiles.h (struct objfile): Remove obsolete comment. + * objfiles.c (build_objfile_section_table): Remove obsolete + comment. + +2011-12-07 Stan Shebs + + * MAINTAINERS (Responsible Maintainers): Add Yao Qi as + maintainer of the tic6x target. + +2011-12-07 Ulrich Weigand + + * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype. + * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function. + (arm_deal_with_atomic_sequence_raw): Likewise. + (arm_deal_with_atomic_sequence): Likewise. + (arm_software_single_step): Call it. + * arm-linux-tdep.c (arm_linux_software_single_step): Likewise. + +2011-12-07 Ulrich Weigand + + * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments + where appropriate. + * s390-tdep.h: Likewise. + +2011-12-07 Tristan Gingold + + * machoread.c (macho_symtab_read): Do not consider N_OPT as + a debugging stab. Improve complaint message. + +2011-12-07 Maciej W. Rozycki + + * mips-tdep.c (mips32_scan_prologue): Only update the immediate + load adjustment if still within the prologue. + +2011-12-06 Maciej W. Rozycki + + * mips-tdep.c (mips32_next_pc): Fix floating point condition + code mask. + +2011-12-06 Maciej W. Rozycki + + * mips-tdep.c (deal_with_atomic_sequence): Fix the handling + of BLTZ* and BGEZ* instructions. + +2011-12-06 Maciej W. Rozycki + + * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks + performed to determine whether an address refers to standard + MIPS or MIPS16 code. + (mips16_next_pc): Use mips_pc_is_mips16 instead of + is_mips16_addr. + +2011-12-06 Pedro Alves + + * breakpoint.c (breakpoint_restore_shadows): Rename to ... + (breakpoint_xfer_memory): ... this. Change prototype. Handle + memory writes too. + * breakpoint.h (breakpoint_restore_shadows): Delete. + (breakpoint_xfer_memory): Declare. + * mem-break.c (default_memory_insert_breakpoint) + (default_memory_remove_breakpoint): Use target_write_raw_memory. + (memory_xfer_partial): Rename to ... + (memory_xfer_partial_1): ... this. Don't mask out breakpoints + here. + (memory_xfer_partial): New. + (target_write_raw_memory): New. + * target.h (target_write_raw_memory): New. + +2011-12-06 Doug Evans + + * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning. + +2011-12-06 Joel Brobecker + + * language.h (struct language_defn): Add new component + la_symbol_name_compare. + * symfile.h (struct quick_symbol_functions): Update the profile + of parameter "name_matcher" for the expand_symtabs_matching + method. Update the documentation accordingly. + * ada-lang.h (ada_name_for_lookup): Add declaration. + * ada-lang.c (ada_name_for_lookup): New function, extracted out + from ada_iterate_over_symbols. + (ada_iterate_over_symbols): Do not encode symbol name anymore. + (ada_expand_partial_symbol_name): Adjust profile. + (ada_language_defn): Add value for la_symbol_name_compare field. + * linespec.c: #include "ada-lang.h". + (iterate_name_matcher): Add language parameter. Replace call + to strcmp_iw by call to language->la_symbol_name_compare. + (decode_variable): Encode COPY if current language is Ada. + * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile + of name_matcher parameter. Adjust call to name_matcher. + * psymtab.c (expand_symtabs_matching_via_partial): Likewise. + (expand_partial_symbol_names): Update profile of parameter "fun". + * psymtab.h (expand_partial_symbol_names): Update profile of + parameter "fun". + * symtab.c (demangle_for_lookup): Update function documentation. + (search_symbols_name_matches): Add language parameter. + (expand_partial_symbol_name): Likewise. + * c-lang.c (c_language_defn, cplus_language_defn) + (asm_language_defn, minimal_language_defn): Add value for + la_symbol_name_compare field. + * d-lang.c (d_language_defn): Likewise. + * f-lang.c (f_language_defn): Ditto. + * jv-lang.c (java_language_defn): Ditto. + * m2-lang.c (m2_language_defn): Ditto. + * objc-lang.c (objc_language_defn): Ditto. + * opencl-lang.c (opencl_language_defn): Ditto. + * p-lang.c (pascal_language_defn): Ditto. + * language.c (unknown_language_defn, auto_language_defn) + (local_language_defn): Ditto. + +2011-12-06 Tom Tromey + + * linespec.c (iterate_over_all_matching_symtabs): Use + LA_ITERATE_OVER_SYMBOLS. + (lookup_prefix_sym, add_matching_symbols_to_info): Likewise. + (find_function_symbols, decode_variable): Remove Ada special + case. + * language.h (struct language_defn) : New + field. + (LA_ITERATE_OVER_SYMBOLS): New macro. + * language.c (unknown_language_defn, auto_language_defn) + (local_language_defn): Update. + * c-lang.c (c_language_defn, cplus_language_defn) + (asm_language_defn, minimal_language_defn): Update. + * d-lang.c (d_language_defn): Update. + * f-lang.c (f_language_defn): Update. + * jv-lang.c (java_language_defn): Update. + * m2-lang.c (m2_language_defn): Update. + * objc-lang.c (objc_language_defn): Update. + * opencl-lang.c (opencl_language_defn): Update. + * p-lang.c (pascal_language_defn): Update. + * ada-lang.c (ada_iterate_over_symbols): New function. + (ada_language_defn): Update. + +2011-12-06 Tom Tromey + Joel Brobecker + + PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366, + PR objc/8535, PR breakpoints/11657, PR breakpoints/11970, + PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856, + PR shlibs/8929, PR shlibs/7393: + * python/py-type.c (compare_maybe_null_strings): Rename from + compare_strings. + (check_types_equal): Update. + * utils.c (compare_strings): New function. + * tui/tui-winsource.c (tui_update_breakpoint_info): Update for + location changes. + * tracepoint.c (scope_info): Update. + (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE. + * symtab.h (iterate_over_minimal_symbols) + (iterate_over_some_symtabs, iterate_over_symtabs) + (find_pcs_for_symtab_line, iterate_over_symbols) + (demangle_for_lookup): Declare. + (expand_line_sal): Remove. + * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs) + (lookup_symtab_callback): New functions. + (lookup_symtab): Rewrite. + (demangle_for_lookup): New function, extract from + lookup_symbol_in_language. + (lookup_symbol_in_language): Use it. + (iterate_over_symbols): New function. + (find_line_symtab): Update. + (find_pcs_for_symtab_line): New functions. + (find_line_common): Add 'start' argument. + (decode_line_spec): Update. Change argument to 'flags', change + interpretation. + (append_expanded_sal): Remove. + (append_exact_match_to_sals): Remove. + (expand_line_sal): Remove. + * symfile.h (struct quick_symbol_functions) : + Remove. + : New field. + * stack.c (func_command): Only look in the current program space. + Use DECODE_LINE_FUNFIRSTLINE. + * source.c (line_info): Set pspace on sal. Check program space in + the loop. Use DECODE_LINE_LIST_MODE. + (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE. + * solib-target.c: Remove DEF_VEC_I(CORE_ADDR). + * python/python.c (gdbpy_decode_line): Update. + * psymtab.c (partial_map_expand_apply): New function. + (partial_map_symtabs_matching_filename): Rename from + lookup_partial_symbol. Update arguments. + (lookup_symtab_via_partial_symtab): Remove. + (psym_functions): Update. + * objc-lang.h (parse_selector, parse_method): Don't declare. + (find_imps): Update. + * objc-lang.c (parse_selector, parse_method): Now static. + (find_methods): Change arguments. Fill in a vector of symbol + names. + (uniquify_strings): New function. + (find_imps): Change arguments. + * minsyms.c (iterate_over_minimal_symbols): New function. + * linespec.h (enum decode_line_flags): New. + (struct linespec_sals): New. + (struct linespec_result) : Remove. + : New fields. + (destroy_linespec_result, make_cleanup_destroy_linespec_result) + (decode_line_full): Declare. + (decode_line_1): Update. + * linespec.c (struct address_entry, struct linespec_state, struct + collect_info): New types. + (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry) + (eq_address_entry, maybe_add_address): New functions. + (total_number_of_methods): Remove. + (iterate_name_matcher, iterate_over_all_matching_symtabs): New + functions. + (find_methods): Change arguments. Don't canonicalize input. + Simplify logic. + (add_matching_methods, add_constructors) + (build_canonical_line_spec): Remove. + (filter_results, convert_results_to_lsals): New functions. + (decode_line_2): Change arguments. Rewrite for new data + structures. + (decode_line_internal): Rename from decode_line_1. Change + arguments. Add cleanups. Update for new data structures. + (linespec_state_constructor, linespec_state_destructor) + (decode_line_full, decode_line_1): New functions. + (decode_indirect): Change arguments. Update. + (locate_first_half): Use skip_spaces. + (decode_objc): Change arguments. Update for new data structures. + Simplify logic. + (decode_compound): Change arguments. Add cleanups. Remove + fallback code, replace with error. + (struct decode_compound_collector): New type. + (collect_one_symbol): New function. + (lookup_prefix_sym): Change arguments. Update. + (compare_symbol_name, add_all_symbol_names_from_pspace) + (find_superclass_methods ): New functions. + (find_method): Rewrite. + (struct symtab_collector): New type. + (add_symtabs_to_list, collect_symtabs_from_filename): New + functions. + (symtabs_from_filename): Change API. Rename from + symtab_from_filename. + (collect_function_symbols): New function. + (find_function_symbols): Change API. Rename from + find_function_symbol. Rewrite. + (decode_all_digits): Change arguments. Rewrite. + (decode_dollar): Change arguments. Use decode_variable. + (decode_label): Change arguments. Rewrite. + (collect_symbols): New function. + (minsym_found): Change arguments. Rewrite. + (check_minsym, search_minsyms_for_name) + (add_matching_symbols_to_info): New function. + (decode_variable): Change arguments. Iterate over all symbols. + (symbol_found): Remove. + (symbol_to_sal): New function. + (init_linespec_result, destroy_linespec_result) + (cleanup_linespec_result, make_cleanup_destroy_linespec_result): + New functions. + (decode_digits_list_mode, decode_digits_ordinary): New functions. + * dwarf2read.c (dw2_map_expand_apply): New function. + (dw2_map_symtabs_matching_filename): Rename from + dw2_lookup_symtab. Change arguments. + (dwarf2_gdb_index_functions): Update. + * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR). + * defs.h (compare_strings): Declare. + * cli/cli-cmds.c (compare_strings): Move to utils.c. + (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call + filter_sals. + (compare_symtabs, filter_sals): New functions. + * breakpoint.h (struct bp_location) : + New fields. + (struct breakpoint) : Remove. + : New field. + * breakpoint.c (print_breakpoint_location, init_raw_breakpoint) + (momentary_breakpoint_from_master, add_location_to_breakpoint): + Update for changes to locations. + (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on + breakpoint. + (create_breakpoint_sal): Add 'filter' argument. + (remove_sal, expand_line_sal_maybe): Remove. + (create_breakpoints_sal): Remove 'sals' argument. Handle + pre-expanded sals and the filter. + (parse_breakpoint_sals): Use decode_line_full. + (check_fast_tracepoint_sals): Use get_sal_arch. + (create_breakpoint): Create a linespec_sals. Update. + (break_range_command): Use decode_line_full. Update. + (until_break_command): Update. + (clear_command): Update match conditions for linespec.c changes. + Use DECODE_LINE_LIST_MODE. + (say_where): Update for changes to locations. + (bp_location_dtor): Free 'source_file'. + (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'. + (update_static_tracepoint): Update for changes to locations. + (update_breakpoint_locations): Disable ranged breakpoint if too + many locations match. Update. + (addr_string_to_sals): Use decode_line_full. Resolve all sal + PCs. + (breakpoint_re_set_default): Don't call expand_line_sal_maybe. + (decode_line_spec_1): Update. Change argument name to 'flags', + change interpretation. + * block.h (block_containing_function): Declare. + * block.c (block_containing_function): New function. + * skip.c (skip_function_command): Update. + (skip_re_set): Update. + * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE. + * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE. + * NEWS: Add entry. + +2011-12-06 Tom Tromey + + * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow + breakpoint's pspace to be NULL. + * breakpoint.h (struct breakpoint) : Update comment. + * breakpoint.c (init_raw_breakpoint): Conditionally set + breakpoint's pspace. + (init_breakpoint_sal): Don't set breakpoint's pspace. + (prepare_re_set_context): Conditionally switch program space. + (addr_string_to_sals): Check executing_startup on location's + program space. + +2011-12-06 Tom Tromey + + * breakpoint.h (enum enable_state) : Remove. + * breakpoint.c (should_be_inserted): Explicitly check if program + space is executing startup. + (describe_other_breakpoints): Update. + (disable_breakpoints_before_startup): Change executing_startup + earlier. Remove loop. + (enable_breakpoints_after_startup): Likewise. + (init_breakpoint_sal): Don't use bp_startup_disabled. + (create_breakpoint): Don't use bp_startup_disabled. + (update_global_location_list): Use should_be_inserted. + (bkpt_re_set): Update. + +2011-12-06 Tom Tromey + + * python/lib/gdb/command/pretty_printers.py + (InfoPrettyPrinter.invoke1): Remove extra double quote. + +2011-12-06 Tom Tromey + + * NEWS: Add MI news. + +2011-12-06 Ulrich Weigand + + * s390-tdep.h (S390_ORIG_R2_REGNUM): Define. + (S390_LAST_BREAK_REGNUM): Likewise. + (S390_SYSTEM_CALL_REGNUM): Likewise. + (S390_NUM_REGS): Update. + + (s390_regmap_last_break): Add declaration. + (s390x_regmap_last_break): Likewise. + (s390_regmap_system_call): Likewise. + + (tdesc_s390_linux32v1): Add declaration. + (tdesc_s390_linux32v2): Likewise. + (tdesc_s390_linux64v1): Likewise. + (tdesc_s390_linux64v2): Likewise. + (tdesc_s390x_linux64v1): Likewise. + (tdesc_s390x_linux64v2): Likewise. + + * s390-tdep.c: Include new target description files + "features/s390-linux32v1.c", "features/s390-linux32v2.c", + "features/s390-linux64v1.c", "features/s390-linux64v2.c", + "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c". + (s390_cannot_store_register): New function. + (s390_write_pc): Likewise. + (s390_dwarf_regmap): Add fields for new registers. + (s390_regmap_gregset): Likewise. + (s390x_regmap_gregset): Likewise. + (s390_regmap_fpregset): Likewise. + (s390_regmap_upper): Likewise. + (s390_regmap_last_break): New variable. + (s390x_regmap_last_break): Likewise. + (s390_regmap_system_call): Likewise. + (s390_last_break_regset): Likewise. + (s390x_last_break_regset): Likewise. + (s390_system_call_regset): Likewise. + (s390_upper_regset_sections): Rename to ... + (s390_linux64_regset_sections): ... this. + (s390_linux32_regset_sections): New variable. + (s390x_linux64_regset_sections): Likewise. + (s390_linux32v1_regset_sections): Likewise. + (s390_linux32v2_regset_sections): Likewise. + (s390_linux64v1_regset_sections): Likewise. + (s390_linux64v2_regset_sections): Likewise. + (s390x_linux64v1_regset_sections): Likewise. + (s390x_linux64v2_regset_sections): Likewise. + (s390_regset_from_core_section): Handle .reg-s390-last-break and + .reg-s390-system-call core file sections. + (s390_core_read_description): Check for presence of + .reg-s390-last-break and .reg-s390-system-call core file + sections and return appropriate target description. + (s390_gdbarch_init): Detect Linux-specific registers "orig_r2", + "last_break" and "system_call" in target description. Install + appropriate gdbarch_core_regset_sections array. + Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc. + (_initialize_s390_tdep): Initialize additional target descriptions. + + * s390-nat.c: Include "elf/common.h". + (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined. + (have_regset_last_break): New static variable. + (have_regset_system_call): Likewise. + (s390_native_supply): Handle S390_ORIG_R2_REGNUM. + (s390_native_collect): Likewise. + (fetch_regset, store_regset, check_regset): New functions. + (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM + and S390_SYSTEM_CALL_REGNUM. + (s390_linux_store_inferior_registers): Likewise. + (s390_read_description): Check for presence of NT_S390_LAST_BREAK + and NT_S390_SYSTEM_CALL regsets and use appropriate description. + + * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1, + s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2. + (s390-linux32v1-expedite): Define. + (s390-linux32v2-expedite): Likewise. + (s390-linux64v1-expedite): Likewise. + (s390-linux64v2-expedite): Likewise. + (s390x-linux64v1-expedite): Likewise. + (s390x-linux64v2-expedite): Likewise. + + * features/s390-linux32.xml: Add orig_r2 register. + * features/s390-linux64.xml: Likewise. + * features/s390x-linux64.xml: Likewise. + * features/s390-linux32v1.xml: New file. + * features/s390-linux32v2.xml: Likewise. + * features/s390-linux64v1.xml: Likewise. + * features/s390-linux64v2.xml: Likewise. + * features/s390x-linux64v1.xml: Likewise. + * features/s390x-linux64v2.xml: Likewise. + + * features/s390-linux32.c: Regenerate. + * features/s390-linux64.c: Likewise. + * features/s390x-linux64.c: Likewise. + * features/s390-linux32v1.c: New generated file. + * features/s390-linux32v2.c: Likewise. + * features/s390-linux64v1.c: Likewise. + * features/s390-linux64v2.c: Likewise. + * features/s390x-linux64v1.c: Likewise. + * features/s390x-linux64v2.c: Likewise. + + * regformats/s390-linux32.dat: Regenerate. + * regformats/s390-linux64.dat: Regenerate. + * regformats/s390x-linux64.dat: Regenerate. + * regformats/s390-linux32v1.dat: New generated file. + * regformats/s390-linux32v2.dat: Likewise. + * regformats/s390-linux64v1.dat: Likewise. + * regformats/s390-linux64v2.dat: Likewise. + * regformats/s390x-linux64v1.dat: Likewise. + * regformats/s390x-linux64v2.dat: Likewise. + +2011-12-05 Pedro Alves + + * linux-nat.c (resume_stopped_resumed_lwps): Call + registers_changed. + +2011-12-05 Pedro Alves + + * breakpoint.c: Include record.h. + (breakpoints_always_inserted_mode): Return false when the record + target is in use. + +2011-12-05 Pedro Alves + + * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment. + Reinstate perror_with_name call on ptrace error. Remove #if 0. + * i386-linux-nat.c (i386_linux_dr_get): Likewise. + * i386bsd-nat.c (i386bsd_dr_get_status): Likewise. + +2011-12-05 Andrey Smirnov + + * breakpoint.c (init_breakpoint_sal): Remove nested definitions of + `i'(-Wshadow). + +2011-12-05 Andrey Smirnov + + * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow). + +2011-12-05 Andrey Smirnov + + * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition + of `tdep'(-Wshadow). + +2011-12-03 Jan Kratochvil + + Fix compilation --without-expat. + * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here + from ... + [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here. + +2011-12-02 Paul Pluzhnikov + Jan Kratochvil + + * Makefile.in (XMLFILES): Add library-list-svr4.dtd. + * features/library-list-svr4.dtd: New file. + * remote.c (PACKET_qXfer_libraries_svr4): New. + (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4. + (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4. + * solib-svr4.c (struct svr4_library_list): New. + [HAVE_LIBEXPAT]: Include xml-support.h. + [HAVE_LIBEXPAT] (svr4_library_list_start_library) + [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes) + [HAVE_LIBEXPAT] (svr4_library_list_children) + [HAVE_LIBEXPAT] (svr4_library_list_attributes) + [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries) + [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries) + [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New. + (svr4_read_so_list): Extend the corruption message by addresses. + (svr4_current_sos): New variable library_list, call + svr4_current_sos_via_xfer_libraries. + * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4. + +2011-12-02 Jan Kratochvil + + PR threads/13448 + * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u. + For DW_OP_GNU_push_tls_address increment the value, new comment for it. + +2011-12-02 Jan Kratochvil + + PR breakpoints/13346 + * dwarf2read.c (process_psymtab_comp_unit): Set + PSYMTABS_ADDRMAP_SUPPORTED. + * psympriv.h (struct partial_symtab): Comment textlow and texthigh + validity. New field psymtabs_addrmap_supported. + * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on + psymtabs_addrmap_supported. + (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for + !PSYMTABS_ADDRMAP_SUPPORTED. + (dump_psymtab, maintenance_info_psymtabs): Print also + psymtabs_addrmap_supported. + +2011-12-01 Doug Evans + + * python/py-type.c (type_object_methods): Fix "array" doc string. + +2011-12-01 Andrew Burgess + + * source.c (print_source_lines_base): Fix missing braces on else + clause leading to additional output. + +2011-11-30 Ulrich Weigand + + * s390-nat.c (SUBOFF): Remove. + (s390_native_supply, s390_native_collect): New functions. + (supply_gregset, supply_fpregset): Use s390_native_supply. + (fill_gregset, fill_fpregset): Use s390_native_collect. + + * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment. + (s390_unwind_pseudo_register): New function. + (s390_prologue_frame_unwind_cache): Unwind PSW address and mask + registers instead of PC and CC. + (s390_backchain_frame_unwind_cache): Likewise. + (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or + full GPR pseudos. + (s390_trad_frame_prev_register): New function. + (s390_frame_prev_register): Use it. + (s390_sigtramp_frame_prev_register): Likewise. + (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register. + (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use + special callback to unwind any pseudo. + + * features/s390-core32.xml: Add pswm/pswa to save/restore group. + * features/s390-core64.xml: Likewise. + * features/s390x-core64.xml: Likewise. + * features/s390-linux32.c: Regenerate. + * features/s390-linux64.c: Likewise. + * features/s390x-linux64.c: Likewise. + +2011-11-30 Ulrich Weigand + + * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type. + +2011-11-30 Ulrich Weigand + + * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL + instruction. Add more diagnostic output. + +2011-11-29 Andrey Smirnov + + * MAINTAINERS (Write After Approval): Add myself to the list. + +2011-11-29 Sanjoy Das + + * jit.c (add_objfile_entry, jit_reader_try_read_symtab) + (jit_bfd_try_read_symtab): Fix comments. + +2011-11-28 DJ Delorie + + * NEWS: Mention RL78 simulator. + +2011-11-28 Joel Brobecker + + * symfile.h (struct quick_symbol_functions): Fix the documentation + of field map_matching_symbols, as symbols are sorted using + strcmp_iw_ordered, not strcmp_iw. + +2011-11-28 Paul Hilfinger + + * symfile.h (struct quick_symbol_functions): Update the + documentation for field map_matching_symbols. + 2011-11-28 Joel Brobecker * ada-lang.c (compare_names): Fix wrong return value in case @@ -312,6 +1222,7 @@ 2011-11-15 Doug Evans + PR gdb/8367 * NEWS: Mention new parameter basenames-may-differ. * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if ! basenames_may_differ. @@ -339,7 +1250,7 @@ 2011-11-14 Doug Evans - Make "!" an alias for "shell". + PR gdb/7200 Make "!" an alias for "shell". * NEWS: Add mention. * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on adding "!" command, always add it.