* breakpoint.c (struct captured_parse_breakpoint_args): Remove.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 8c156e172788dd6c72d9fdfd11d279b1ff45fa22..9d0d1d1c0160410a0d19f62f90e48ebf892bf4de 100644 (file)
@@ -1,3 +1,383 @@
+2011-04-04  Tom Tromey  <tromey@redhat.com>
+
+       * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
+       (do_captured_parse_breakpoint): Remove.
+       (create_breakpoint): `e' is now volatile.  Remove `parse_args'.
+       Use TRY_CATCH directly.
+
+2011-04-04  Tom Tromey  <tromey@redhat.com>
+
+       * symtab.h (free_symtab): Remove.
+       (forget_cached_source_info_for_objfile): Declare.
+       * symmisc.c (free_symtab): Remove.
+       * source.c (forget_cached_source_info_for_objfile): New function.
+       (forget_cached_source_info): Use it.
+       * objfiles.c (free_objfile): Simplify check before calling
+       clear_current_source_symtab_and_line.  Call
+       forget_cached_source_info_for_objfile.
+
+2011-04-04  Tom Tromey  <tromey@redhat.com>
+
+       * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
+       (new_symtab): Don't set `free_code' on symtab.
+       (new_linetable): Properly handle size==0.
+       * symtab.h (struct symtab) <free_code, free_func>: Remove.
+       * symmisc.c (free_symtab): Don't free the linetable.  Don't call
+       free_func.
+       * jv-lang.c (struct jv_per_objfile_data): New.
+       (jv_per_objfile_free): Free the data.
+       (get_dynamics_objfile): Allocate a jv_per_objfile_data.
+       (get_java_class_symtab): Set the `dict' field on the
+       jv_per_objfile_data.
+       (free_class_block): Remove.
+       * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
+       the symtab.
+
+2011-04-04  Tom Tromey  <tromey@redhat.com>
+
+       * symfile.c (reread_symbols): Update.
+       * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
+       field.
+       * objfiles.c (allocate_objfile): Update.
+       * cp-support.h (cp_check_possible_namespace_symbols): Don't
+       declare.
+       * cp-namespace.c (lookup_symbol_file): Don't call
+       lookup_possible_namespace_symbol.
+       (initialize_namespace_symtab, get_possible_namespace_block)
+       (free_namespace_block, cp_check_possible_namespace_symbols)
+       (check_possible_namespace_symbols_loop)
+       (check_one_possible_namespace_symbol)
+       (lookup_possible_namespace_symbol): Remove.
+       (maintenance_cplus_namespace): Replace with notice.
+       (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
+
+2011-04-04  Tom Tromey  <tromey@redhat.com>
+
+       * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
+       * symtab.h (struct symtab) <producer, debugformat>: Now const.
+       * symmisc.c (free_symtab): Don't free debugformat.
+       * buildsym.h (struct subfile) <producer, debugformat>: Now const.
+       (record_debugformat, record_producer): Document.
+       * buildsym.c (end_symtab): Don't save debugformat and producer
+       names on obstack.
+       (end_symtab): Don't free debugformat and producer fields.
+       (record_debugformat): Don't call xstrdup.
+       (record_producer): Likewise.
+
+2011-04-04  Tom Tromey  <tromey@redhat.com>
+
+       * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
+       (source_line_charpos, source_charpos_line): Remove.
+
+2011-04-04  Tom Tromey  <tromey@redhat.com>
+
+       * symtab.h (domain_enum): Split in two...
+       (enum search_domain): New.
+       (search_symbols): Update.
+       * symtab.c (print_symbol_info, symtab_symbol_info): Remove
+       redundant declarations.
+       (search_symbols): Change 'kind' argument to search_domain.
+       Update.
+       (print_symbol_info): Likewise.
+       (symtab_symbol_info): Likewise.
+       * symfile.h (struct quick_symbol_functions)
+       <pre_expand_symtabs_matching>: Change type of 'kind' argument.
+       <expand_symtabs_matching>: Likewise.
+       * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
+       (expand_symtabs_matching_via_partial): Update.
+       * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
+       (dw2_expand_symtabs_for_function): Update.
+       * block.h: Moved anonymous enum...
+       * defs.h (enum block_enum): ... here.  Now named.
+
+2011-04-03  Joel Brobecker  <brobecker@adacore.com>
+
+       GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
+       * version.in: Bump version to 7.3.50.20110403-cvs.
+
+2011-04-03  Joel Brobecker  <brobecker@adacore.com>
+
+       * NEWS: Create a new section for the next release branch.
+       Rename the section of the current branch, now that it has
+       been cut.
+
+2011-04-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
+
+       * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
+       for "fpscr" in target description.
+
+2011-04-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
+       initialize it.  Delay HASH initialization.  Strip the part after open
+       parenthesis for languages with qualifiers.  Call do_cleanups.
+
+2011-04-01  Tom Tromey  <tromey@redhat.com>
+
+       * utils.c (report_command_stats): Don't print `-' for negative
+       number.
+
+2011-04-01  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
+       (ada_value_slice, empty_array, to_fixed_array_type): Deal with
+       typedefs.
+
+2011-04-01  Joel Brobecker  <brobecker@adacore.com>
+
+       * breakpoint.h (bpdisp_text): Add declaration.
+       * breakpoint.c (bpdisp_text): Make non-static.
+       * ada-lang.c: #include "mi/mi-common.h".
+       (print_it_exception): Rewrite to improve GDB/MI output.
+
+2011-04-01  Pedro Alves  <pedro@codesourcery.com>
+
+       * arm-tdep.h (struct address_space): Add forward declaration.
+
+2011-04-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
+
+       * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
+       * arm-tdep.c (arm_override_mode): New global.
+       (arm_pc_is_thumb): Respect arm_override_mode.  Remove single-step
+       execution mode heuristics.
+       (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
+       second single-step breakpoint if needed, using
+       arm_insert_single_step_breakpoint.
+       (arm_get_next_pc_raw): Remove INSERT_BKTP argument.  Only handle
+       ARM execution mode, do not call thumb_get_next_pc_raw.
+       (arm_get_next_pc): Encode execution mode in return value.  Call
+       either arm_get_next_pc_raw or thumb_get_next_pc_raw.
+       (arm_insert_single_step_breakpoint): New function.
+       (arm_software_single_step): Call it.
+       * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
+       argument to return execution mode of sigreturn target.
+       (arm_linux_syscall_next_pc): Use it.
+       (arm_linux_copy_svc): Update call.
+       (arm_linux_software_single_step): Call
+       arm_insert_single_step_breakpoint.
+
+2011-03-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
+       the comment.
+
+2011-03-31  Tom Tromey  <tromey@redhat.com>
+
+       * varobj.c (update_dynamic_varobj_children): Properly handle
+       errors from iterator.
+
+2011-03-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * dwarf2read.c (dwarf2_name): Initialize DEMANGLED.  Avoid demangling
+       struct linkage name twice.
+
+2011-03-31  Tom Tromey  <tromey@redhat.com>
+
+       * python/py-prettyprint.c (print_stack_unless_memory_error): Add
+       missing ">" to message.
+
+2011-03-31  Tom Tromey  <tromey@redhat.com>
+
+       * varobj.c (instantiate_pretty_printer): Remove duplicate
+       'return'.
+
+2011-03-31  Ulrich Weigand  <ulrich.weigand@linaro.org>
+
+       * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
+       if neither saved value nor register available (e.g. signal frame).
+
+2011-03-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
+
+       * macroexp.c (expand): Avoid uninitialized variable
+       compiler warning.
+
+2011-03-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
+
+       * breakpoint.c (break_range_command): Fix typo in comment.
+
+2011-03-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
+           Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
+
+       Implement support for PowerPC BookE ranged breakpoints.
+       * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
+       * breakpoint.h (struct bp_target_info) <length>: New member
+       variable.
+       (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
+       instead of struct breakpoint as argument, and also add ASPACE
+       and BP_ADDR arguments.  Update all callers.
+       (struct breakpoint_ops) <print_one_detail>: New method.
+       (struct breakpoint) <addr_string_range_end>: New member variable.
+       * breakpoint.c (breakpoint_location_address_match): Add function
+       prototype.
+       (insert_bp_location): Set bl->target_info.length.
+       (breakpoint_here_p): Call breakpoint_location_address_match.
+       (moribund_breakpoint_here_p): Likewise.
+       (regular_breakpoint_inserted_here_p): Likewise.
+       (breakpoint_thread_match): Likewise.
+       (bpstat_stop_status): Likewise.
+       (bpstat_check_location): Move call to
+       breakpoint_ops.breakpoint_hit to the top.
+       (print_one_breakpoint_location): Call
+       breakpoint_ops.print_one_detail if available.
+       (breakpoint_address_match_range): New function.
+       (breakpoint_location_address_match): Likewise.
+       (breakpoint_locations_match): Compare the length field of the
+       locations too.
+       (hw_breakpoint_used_count): Count resources used by all locations
+       in a breakpoint, and use breakpoint_ops.resources_needed if
+       available.
+       (breakpoint_hit_ranged_breakpoint): New function.
+       (resources_needed_ranged_breakpoint): Likewise.
+       (print_it_ranged_breakpoint): Likewise.
+       (print_one_ranged_breakpoint): Likewise.
+       (print_one_detail_ranged_breakpoint): Likewise.
+       (print_mention_ranged_breakpoint): Likewise.
+       (print_recreate_ranged_breakpoint): Likewise.
+       (ranged_breakpoint_ops): New structure.
+       (find_breakpoint_range_end): New function.
+       (break_range_command): Likewise.
+       (delete_breakpoint): Free addr_string_range_end.
+       (update_breakpoint_locations): Add SALS_END argument.  Update
+       all callers.  Calculate breakpoint length if a non-zero SALS_END
+       is given.  Call breakpoint_locations_match instead of
+       breakpoint_address_match.
+       (reset_breakpoint): Find SaL of the end of the range if B is a
+       ranged breakpoint.
+       (_initialize_breakpoint): Register break-range command.
+       * defs.h (print_core_address): Add function prototype.
+       * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
+       function.
+       (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
+       (ppc_linux_remove_hw_breakpoint): Likewise.
+       (_initialize_ppc_linux_nat): Initialize
+       to_ranged_break_num_registers.
+       * target.c (update_current_target): Add comment about
+       to_ranged_break_num_registers.
+       (target_ranged_break_num_registers): New function.
+       * target.h (struct target_ops) <to_ranged_break_num_registers>:
+       New method.
+       (target_ranged_break_num_registers): Add function prototype.
+       * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
+       * utils.c (print_core_address): ... here.
+
+2011-03-31  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * breakpoint.c (addr_string_to_sals): Avoid uninitialized
+       variable compiler warning.
+
+2011-03-30  Thiago Jung Bauermann  <bauerman@br.ibm.com>
+
+       * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
+       code from here ...
+       (re_set_breakpoint): ... to here ...
+       (addr_string_to_sals): ... and here.
+
+2011-03-29  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * Makefile.in (SFILES): Add missing C sources.
+       (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
+       Add missing headers.
+
+2011-03-29  Mike Frysinger  <vapier@gentoo.org>
+
+       * .gitignore: New file.
+
+2011-03-29  Mike Frysinger  <vapier@gentoo.org>
+
+       * NEWS: Mention new cfi device simulation.
+
+2011-03-29  Tom Tromey  <tromey@redhat.com>
+
+       * dwarf2read.c (fixup_partial_die): Handle linkage name on
+       otherwise anonymous types.
+       (dwarf2_name): Likewise.
+       * valops.c (value_struct_elt_for_reference): Refine artificial
+       type logic.  Call error if j==-1.
+
+2011-03-29  Andreas Tobler  <andreast-list@fgznet.ch>
+
+       Fix false GCC warning.
+       * infcall.c (find_function_addr): Initialize funaddr.
+
+2011-03-29  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       Fix mingw compilation with --enable-targets=all.
+       * remote-mips.c (gdb_usleep.h): Include header.
+       (mips_enter_debug): Use gdb_usleep instead of sleep.
+
+2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Support resolution of STT_GNU_IFUNC via breakpoints.
+       * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
+       bp_gnu_ifunc_resolver_return.
+       (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
+       the loop.  Support bp_gnu_ifunc_resolver and
+       bp_gnu_ifunc_resolver_return.  New comment after the loop.  New loop
+       for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
+       breakpoints.
+       (bptype_string, print_one_breakpoint_location): Support
+       bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
+       (user_settable_breakpoint): Return true also for
+       bp_gnu_ifunc_resolver.
+       (allocate_bp_location): Support bp_gnu_ifunc_resolver and
+       bp_gnu_ifunc_resolver_return.
+       (set_breakpoint_location_function): New parameter explicit_loc,
+       describe it.  Call find_pc_partial_function_gnu_ifunc with new
+       variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
+       EXPLICIT_LOC is not set.
+       (set_raw_breakpoint): Set EXPLICIT_LOC for
+       set_breakpoint_location_function.
+       (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
+       set_breakpoint_location_function.
+       (mention): Support bp_gnu_ifunc_resolver and
+       bp_gnu_ifunc_resolver_return.
+       (add_location_to_breakpoint): Set EXPLICIT_LOC for
+       set_breakpoint_location_function.
+       (update_breakpoint_locations): Remove static.
+       (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
+       bp_gnu_ifunc_resolver_return.
+       * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
+       bp_gnu_ifunc_resolver_return.
+       (update_breakpoint_locations): New declaration.
+       * elfread.c: Include gdbthread.h and regcache.h.
+       (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
+       functions.
+       (elf_gnu_ifunc_fns): Install them.
+       * minsyms.c (stub_gnu_ifunc_resolver_stop)
+       (stub_gnu_ifunc_resolver_return_stop): New functions.
+       (stub_gnu_ifunc_fns): Install them.
+       * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
+       and gnu_ifunc_resolver_return_stop.
+       (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
+
+2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       STT_GNU_IFUNC reader implementation.
+       * elfread.c: Include gdbtypes.h, value.h and infcall.h.
+       (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
+       (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
+       (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
+       (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
+       (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
+       (elf_gnu_ifunc_resolve_addr): New.
+       (elf_symfile_read): Call elf_rel_plt_read.
+       (elf_gnu_ifunc_fns): New.
+       (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
+       Install elf_gnu_ifunc_fns.
+       * infcall.c (find_function_return_type): New function.
+       (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
+       * minsyms.c (stub_gnu_ifunc_resolve_addr)
+       (stub_gnu_ifunc_resolve_name): New functions.
+       (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
+       * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
+       (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
+
+2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Code cleanup for later STT_GNU_IFUNC support.
+       * infcall.c (find_function_addr): Remove variable code, use explicit
+       dereferences for it.  Move VALUE_TYPE initialization later.
+
 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        GDB find_pc_partial_function support for STT_GNU_IFUNC.
This page took 0.027574 seconds and 4 git commands to generate.