gdb/
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 78208b7331c66c9b40837502a96a033066ae73c0..2a910bac5a5cf149f7f0d00f9580a067403dab78 100644 (file)
@@ -1,5 +1,393 @@
+2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Execute -ix and -iex only after system and user gdbinit files.
+       * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
+       processing down after gdbinit files.
+
+2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Add fnmatch-gnu module.
+       * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
+       * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
+       * gnulib/aclocal.m4: Regenerate.
+       * gnulib/config.in: Regenerate.
+       * gnulib/configure: Regenerate.
+       * gnulib/import/dummy.c: Remove.
+       * gnulib/import/Makefile.am: Regenerate.
+       * gnulib/import/Makefile.in: Likewise.
+       * gnulib/import/m4/gnulib-cache.m4: Likewise.
+       * gnulib/import/m4/gnulib-comp.m4: Likewise.
+       * gnulib/import/alloca.c: New file.
+       * gnulib/import/alloca.in.h: Likewise.
+       * gnulib/import/config.charset: Likewise.
+       * gnulib/import/fnmatch.c: Likewise.
+       * gnulib/import/fnmatch.in.h: Likewise.
+       * gnulib/import/fnmatch_loop.c: Likewise.
+       * gnulib/import/localcharset.c: Likewise.
+       * gnulib/import/localcharset.h: Likewise.
+       * gnulib/import/m4/alloca.m4: Likewise.
+       * gnulib/import/m4/codeset.m4: Likewise.
+       * gnulib/import/m4/configmake.m4: Likewise.
+       * gnulib/import/m4/fcntl-o.m4: Likewise.
+       * gnulib/import/m4/fnmatch.m4: Likewise.
+       * gnulib/import/m4/glibc21.m4: Likewise.
+       * gnulib/import/m4/localcharset.m4: Likewise.
+       * gnulib/import/m4/locale-fr.m4: Likewise.
+       * gnulib/import/m4/locale-ja.m4: Likewise.
+       * gnulib/import/m4/locale-zh.m4: Likewise.
+       * gnulib/import/m4/mbrtowc.m4: Likewise.
+       * gnulib/import/m4/mbsinit.m4: Likewise.
+       * gnulib/import/m4/mbsrtowcs.m4: Likewise.
+       * gnulib/import/m4/mbstate_t.m4: Likewise.
+       * gnulib/import/m4/stdbool.m4: Likewise.
+       * gnulib/import/m4/wchar_h.m4: Likewise.
+       * gnulib/import/m4/wctype_h.m4: Likewise.
+       * gnulib/import/m4/wint_t.m4: Likewise.
+       * gnulib/import/mbrtowc.c: Likewise.
+       * gnulib/import/mbsinit.c: Likewise.
+       * gnulib/import/mbsrtowcs-impl.h: Likewise.
+       * gnulib/import/mbsrtowcs-state.c: Likewise.
+       * gnulib/import/mbsrtowcs.c: Likewise.
+       * gnulib/import/ref-add.sin: Likewise.
+       * gnulib/import/ref-del.sin: Likewise.
+       * gnulib/import/stdbool.in.h: Likewise.
+       * gnulib/import/streq.h: Likewise.
+       * gnulib/import/strnlen1.c: Likewise.
+       * gnulib/import/strnlen1.h: Likewise.
+       * gnulib/import/verify.h: Likewise.
+       * gnulib/import/wchar.in.h: Likewise.
+       * gnulib/import/wctype.in.h: Likewise.
+
+2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Support shell wildcards for 'set auto-load safe-path'.
+       * auto-load.c: Include fnmatch.h.
+       (filename_is_in_dir): Rename to ...
+       (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
+       it.  Update function comment.  Rename dir_len to pattern_len.  New
+       variables filename_len, pattern and filename.  Add more DEBUG_AUTO_LOAD
+       messages.  Use gdb_filename_fnmatch.
+       (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
+       pattern.
+       (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
+       * defs.h (gdb_filename_fnmatch): New declaration.
+       * utils.c: Include fnmatch.h.
+       (gdb_filename_fnmatch): New function.
+
+2012-07-02  Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
+       `-probe' and `-probe-stap' options.
+
+2012-07-01  Yao Qi  <yao@codesourcery.com>
+
+       * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
+       always_inserted_off, and always_inserted_enums.
+       Change always_inserted_mode's type to 'enum auto_boolean'.
+       (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
+       callers.
+       (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
+       of add_setshow_enum_cmd.
+       * infrun.c: Remove can_use_displaced_stepping_auto,
+       can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
+       can_use_displaced_stepping_enum.
+       Change can_use_displaced_stepping's type to 'enum auto_boolean'.
+       (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
+       (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
+       add_setshow_enum_cmd.
+
+2012-06-30  Doug Evans  <dje@google.com>
+
+       * dwarf2read.c (signatured_type): Make "per_cu" member first.
+       (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
+       currently being read.  Propagate DW_AT_comp_dir to DWO DIE.
+
+2012-06-29  Doug Evans  <dje@google.com>
+
+       * linespec.c: #include "stack.h".
+       (decode_line_with_current_source): Moved here from symtab.c and
+       renamed from decode_line_spec.  All callers updated.
+       (decode_line_with_last_displayed): Moved here from breakpoint.c and
+       renamed from decode_line_spec_1.  All callers updated.
+       * linespec.h (decode_line_with_current_source): Move declaration here
+       from symtab.h and renamed from decode_line_spec.
+       (decode_line_with_last_displayed): Move declaration here from symtab.h
+       and renamed from decode_line_spec_1.
+       * macrocmd.c: #include "linespec.h".
+       * symtab.c: Remove #include "linespec.h".
+
+2012-06-28  Doug Evans  <dje@google.com>
+
+       * dwarf2read.c (get_cu_length): New function.
+       (offset_in_cu_p, error_check_comp_unit_head): Call it.
+       (create_debug_types_hash_table): Ditto.
+       (init_cutu_and_read_dies): Ditto.
+       (init_cutu_and_read_dies_no_follow): Ditto.
+
+       * dwarf2read.c (dwarf2_find_base_address): Move definition.
+
+       * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
+       (struct abbrev_table): Define.
+       (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
+       abbrev_table.
+       (init_cutu_and_read_dies): Update.
+       (abbrev_table_alloc_abbrev): New function.  Replaces
+       dwarf_alloc_abbrev.  All callers updated.
+       (abbrev_table_add_abbrev): New function.
+       (abbrev_table_lookup_abbrev): New function.  Replaces
+       dwarf2_lookup_abbrev.  All callers updated.
+       (abbrev_table_read_table): New function.  Contents moved here from
+       dwarf2_read_abbrevs.
+       (dwarf2_read_abbrevs): Call it.
+       (abbrev_table_free): New function.
+       (dwarf2_free_abbrev_table): Call it.
+
+2012-06-28  Stan Shebs  <stan@codesourcery.com>
+
+       * osdata.c (info_osdata_command): Filter out "Title" columns
+       from non-MI uses.
+       * common/linux-osdata.c (struct osdata_type): Add title field.
+       (osdata_table): Add titles to each entry.
+       (linux_command_xfer_osdata): Add a column for title data.
+
+2012-06-28  Stan Shebs  <stan@codesourcery.com>
+
+       Make logging work for MI.
+       * NEWS: Mention it.
+       * interps.h (interp_set_logging_ftype): New typedef.
+       (struct interp_procs): New field set_logging_proc.
+       (current_interp_set_logging): Declare.
+       * interps.c (current_interp_set_logging): New function.
+       * cli/cli-logging.c: Include interps.h.
+       (set_logging_redirect): Call current_interp_set_logging.
+       (pop_output_files): Ditto.
+       (handle_redirections): Ditto, plus skip ui-out redirect if MI.
+       * mi/mi-console.h (mi_console_set_raw): Declare.
+       * mi/mi-console.c (mi_console_set_raw): New function.
+       * mi/mi-interp.c (saved_raw_stdout): New global.
+       (mi_set_logging): New function.
+       (_initialize_mi_interp): Add it to interp procs.
+
+2012-06-28  Doug Evans  <dje@google.com>
+
+       * symtab.c (lookup_symbol_aux_objfile): Use
+       ALL_OBJFILE_PRIMARY_SYMTABS.
+
+       * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
+
+2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * common/buffer.c: Include inttypes.h and stdint.h.
+       (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
+
+2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
+           Pedro Alves  <palves@redhat.com>
+
+       * gdbthread.h (ALL_THREADS): New macro.
+       (thread_list): Declare.
+       * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
+       going, but instead fall through to the stepping handling.
+       * linux-nat.c (resume_lwp): New parameter 'signo'.  Resume with
+       the passed in signal.  Adjust debug output.
+       (resume_callback): Rename to ...
+       (linux_nat_resume_callback): ... this.  Pass the thread's last
+       stop signal, if in "pass" state.
+       (linux_nat_resume): Adjust to rename.
+       (stop_wait_callback): New assertion.  Don't respawn signals;
+       instead let the LWP remain with SIGNALLED set.
+       (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
+       * remote.c (append_pending_thread_resumptions): New.
+       (remote_vcont_resume): Call it.
+       * target.h (target_resume): Extend comment.
+
+2012-06-28  Iain Sandoe  <iain@codesourcery.com>
+
+       * auxv.c (fprint_target_auxv): Handle extended cache data tags.
+
+2012-06-27  Doug Evans  <dje@google.com>
+
+       * dwarf2read.c (dwarf2_cu): Add ranges_base.
+       Delete have_addr_base, unused.  All uses updated.
+       (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
+       (dwarf2_get_pc_bounds): Add ranges_base.
+       (dwarf2_record_block_ranges): Ditto.
+
+2012-06-27  Tom Tromey  <tromey@redhat.com>
+
+       PR macros/7961:
+       * varobj.c (varobj_create): Update.
+       (varobj_set_value): Update.
+       * tracepoint.c (validate_actionline): Update.
+       (encode_actions_1): Update.
+       * parse.c (parse_exp_1): Add 'pc' argument.
+       (parse_exp_in_context): Add 'pc' argument.  Change how
+       expression_context_pc is set.
+       (parse_expression): Update.
+       (parse_field_expression): Update.
+       * expression.h (parse_exp_1): Update.
+       * eval.c (parse_to_comma_and_eval): Update.
+       * breakpoint.c (set_breakpoint_condition): Update.
+       (update_watchpoint): Update.
+       (init_breakpoint_sal): Update
+       (find_condition_and_thread): Update.
+       (watch_command_1): Update.
+       (update_breakpoint_locations): Update.
+       * ada-lang.c (ada_read_renaming_var_value): Update.
+       (create_excep_cond_exprs): Update.
+
+2012-06-27  Doug Evans  <dje@google.com>
+
+       * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
+       type units.
+
+2012-06-26  Doug Evans  <dje@google.com>
+
+       * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
+       prototype.
+       (error_check_comp_unit_head): New arg abbrev_section.  All callers
+       updated.
+       (read_and_check_comp_unit_head): Ditto.
+       (read_and_check_type_unit_head): Ditto.
+
+2012-06-26  Siva Chandra Reddy  <sivachandra@google.com>
+
+       New attribute 'last' for gdb.Symtab_and_line.
+       * NEWS (Python Scripting): Add entry about the new attribute.
+       * python/py-symtab.c (salpy_get_last): New function which
+       implements the get method for the 'last' attribute of
+       gdb.Symtab_and_line.
+       (sal_object_getset): Add entry for the 'last' attribute.
+
+2012-06-26  Doug Evans  <dje@google.com>
+
+       * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
+       (dwo_sections): Add macinfo, macro.
+       (dwarf2_locate_dwo_sections): Watch for macro sections.
+       (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
+       All callers updated.  Handle DWO files.
+
+       * NEWS: Mention new options "set debug dwarf2-read" and
+       "set debug symtab-create".
+       * dwarf2read.c (dwarf2_read_debug): New static global.
+       (dwarf2_build_psymtabs_hard): Add debugging printfs.
+       (process_queue): Ditto.
+       (process_full_comp_unit): Ditto.
+       (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
+       * elfread.c (elf_symfile_read): Add debugging printf.
+       * minsyms.c (install_minimal_symbols): Ditto.
+       * psymtab.c (allocate_psymtab): Ditto.
+       * symfile.c (allocate_symtab): Ditto.
+       * symtab.c (symtab_create_debug): New global.
+       (_initialize_symtab): Add new option "set debug symtab-create".
+       * symtab.h (symtab_create_debug): Declare.
+
+       * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
+       (lookup_dwo_type_unit): Ditto.
+
+2012-06-26  Roland McGrath  <roland@hack.frob.com>
+           H.J. Lu  <hongjiu.lu@intel.com>
+
+       * amd64-linux-nat.c: Include <sys/user.h>.
+       (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
+       if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
+       HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
+
+       * configure.ac: Check if the fs_base and gs_base members of
+       `struct user_regs_struct' exist.
+       * config.in: Regenerated.
+       * configure: Likewise.
+
+2012-06-25  Michael Eager  <eager@eagercon.com>
+
+       PR python/14291
+       * python/python.c (gdbpy_write): Check for interrupted output. 
+
+2012-06-25  Greta Yorsh  <greta.yorsh@arm.com>
+
+       * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
+       register as a stack alignment in ARM mode.
+
+2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
+       * gnulib/config.in: Regenerate.
+       * gnulib/configure: Likewise.
+       * gnulib/import/m4/extensions.m4: Update it.
+       * gnulib/import/m4/gnulib-common.m4: Likewise.
+       * gnulib/import/m4/memmem.m4: Likewise.
+       * gnulib/import/m4/mmap-anon.m4: Likewise.
+       * gnulib/import/m4/multiarch.m4: Likewise.
+       * gnulib/import/stdint.in.h: Likewise.
+
+2012-06-24  Yao Qi  <yao@codesourcery.com>
+
+       * corefile.c (write_memory_with_notification): New.
+       * gdbcore.h: Declare write_memory_with_notification.
+       * ada-lang.c (ada_value_assign): Replace 'write_memory' and
+       'observer_notify_memory_changed' with 'write_memory_with_notification'.
+       * valops.c (value_assign): Likewise.
+       * python/py-inferior.c (infpy_write_memory): Call
+       'write_memory_with_notification'.
+
+2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * cc-with-index.sh: Use also -ex "set auto-load no".
+
+2012-06-23  Doug Evans  <dje@google.com>
+
+       PR 14125
+       * NEWS: Document additions to .gdb_index.
+       * dwarf2read.c: #include "gdb/gdb-index.h".
+       (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
+       (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
+       (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
+       (dwarf2_read_index): Recognize version 7.
+       (dw2_do_expand_symtabs_matching): New args want_specific_block,
+       block_kind, domain): All callers updated.
+       (dw2_find_symbol_file): Handle new index CU values.
+       (dw2_expand_symtabs_matching): Match symbol kind if requested.
+       (add_index_entry): New args is_static, kind.  All callers updated.
+       (offset_type_compare, uniquify_cu_indices): New functions
+       (symbol_kind): New function.
+       (write_psymtabs_to_index): Remove duplicate CU values.
+       (write_psymtabs_to_index): Write .gdb_index version 7.
+
+2012-06-22  Joel Brobecker  <brobecker@adacore.com>
+
+       * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
+       * configure: Regenerate.
+
+2012-06-20  Yao Qi  <yao@codesourcery.com>
+
+       * python/py-inferior.c: Update comments of infpy_read_memory
+       and infpy_write_memory.
+
+2012-06-19  Tom Tromey  <tromey@redhat.com>
+
+       PR exp/9514:
+       * parser-defs.h (insert_type, insert_type_address_space): Declare.
+       (push_type_address_space): Remove.
+       * parse.c (insert_into_type_stack): New function.
+       (insert_type): Likewise.
+       (insert_type_address_space): Rename from push_type_address_space.
+       Insert tp_space_identifier.
+       * c-exp.y (ptr_operator): New production.
+       (abs_decl): Use ptr_operator.
+       (space_identifier): Call insert_type_address_space.
+       (ptype): Don't use const_or_volatile_or_space_identifier.
+       (const_or_volatile_noopt): Call insert_type.
+       (conversion_type_id, conversion_declarator): New productions.
+       (operator): Use conversion_type_id.
+
 2012-06-18  Doug Evans  <dje@google.com>
 
+       * symtab.h (minimal_symbol): New member created_by_gdb.
+       * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
+       created by gdb.
+       * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
+       (search_symbols): Call it instead of lookup_symbol.
+       Skip symbols created by gdb.  Only scan minsyms if nfiles == 0.
+
        * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
        Adjust address for DW_OP_GNU_addr_index.
        * dwarf2expr.h (dwarf_expr_context): Update comment.
This page took 0.029725 seconds and 4 git commands to generate.