gdb: New maintenance command to disable bfd sharing.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 13d31a654fd456dfc89fe44a77394565c04715f2..b2860488e22be1fbd743caa23bd82b7ffc0166f8 100644 (file)
@@ -1,3 +1,319 @@
+2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * gdb_bfd.c (bfd_sharing): New variable.
+       (show_bfd_sharing): New function.
+       (gdb_bfd_open): Check bfd_sharing variable.
+       (_initialize_gdb_bfd): Add new set/show command.
+       * NEWS: Mention new command.
+
+2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
+       field.
+       (struct gdb_bfd_cache_search): Likewise.
+       (eq_bfd): Compare the size, inode, and device id fields.
+       (gdb_bfd_open): Initialise the size, inode, and device id fields.
+       (gdb_bfd_ref): Likewise.
+       (gdb_bfd_unref): Likewise.
+
+2015-08-18  Pedro Alves  <palves@redhat.com>
+
+       * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
+       target implements to_always_non_stop_p, call it.
+       * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
+       (x86_linux_create_target): Install it as to_always_non_stop_p
+       method.
+
+2015-08-17  Doug Evans  <dje@google.com>
+
+       * ui-out.c (default_ui_out_impl): Add comment.
+
+2015-08-17  Iain Buclaw  <ibuclaw@gdcproject.org>
+
+       * d-exp.y (type_aggregate_p): New function.
+       (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
+       (classify_inner_name): Likewise.
+       * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
+
+2015-08-15  Doug Evans  <xdje42@gmail.com>
+
+       * psymtab.c (add_psymbol_to_bcache): Remove "val" arg.  All callers
+       updated.
+       (add_psymbol_to_list): Ditto.
+
+2015-08-15  Doug Evans  <xdje42@gmail.com>
+
+       * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab.  All callers
+       updated.  Call end_psymtab_common.
+       * dwarf2read.c (process_psymtab_comp_unit_reader): Call
+       end_psymtab_common.
+       (build_type_psymtabs_reader): Ditto.
+       * psympriv.h (sort_pst_symbols): Delete.
+       (end_psymtab_common): Declare.
+       * psymtab.c (sort_pst_symbols): Make static.
+       (end_psymtab_common): New function.
+       * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
+
+2015-08-15  Doug Evans  <xdje42@gmail.com>
+
+       * defs.h (LANGUAGE_BITS): Define.
+       * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
+       (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
+       * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
+       (minimal_symbol_type): Add nr_minsym_types.
+       (MINSYM_TYPE_BITS): Define.
+       (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
+       (domain_enum_tag): Add NR_DOMAINS.
+       (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
+       (SYMBOL_ACLASS_BITS): Define from 6 to 5.
+
+2015-08-15  Doug Evans  <xdje42@gmail.com>
+
+       * objfiles.h: Whitespace cleanup.
+       * psympriv.h: Whitespace cleanup.
+       * psymtab.c: Whitespace/coding convention cleanup.
+
+2015-08-15  Patrick Palka  <patrick@parcs.ath.cx>
+
+       * inferior.c (detach_inferior_command): Don't call
+       any_thread_of_process when pid is 0.
+       (kill_inferior_command): Likewise.
+
+2015-08-14  Doug Evans  <xdje42@gmail.com>
+
+       PR gdb/11833
+       * NEWS: Document new /s modifier for the disassemble command.
+       * cli/cli-cmds.c (disassemble_command): Add support for /s.
+       (_initialize_cli_cmds): Update online docs of disassemble command.
+       * disasm.c: #include "source.h".
+       (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
+       All uses updated.
+       (dis_line_entry): New struct.
+       (hash_dis_line_entry, eq_dis_line_entry): New functions.
+       (allocate_dis_line_table): New functions.
+       (maybe_add_dis_line_entry, line_has_code_p): New functions.
+       (dump_insns): New arg end_pc.  All callers updated.
+       (do_mixed_source_and_assembly_deprecated): Renamed from
+       do_mixed_source_and_assembly.  All callers updated.
+       (do_mixed_source_and_assembly): New function.
+       (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
+       * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
+       DISASSEMBLY_SOURCE.  All uses updated.
+       (DISASSEMBLY_SOURCE): New macro.
+       * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
+
+2015-08-14  Keith Seitz  <keiths@redhat.com>
+
+       * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
+       `typename' to `type_name' to avoid C++ reserved word.
+
+2015-08-14  Keith Seitz  <keiths@redhat.com>
+
+       * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
+       (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
+       silence ARI errors.
+
+2015-08-14  Iain Buclaw  <ibuclaw@gdcproject.org>
+
+       * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
+       xstrprintf instead of malloc and sprintf.
+       (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
+       (lex_one_token): Likewise.
+
+2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
+
+       * solib-svr4.c (read_program_header): Add base_addr argument to
+       report the runtime address of the segment.
+       (find_program_interpreter): Update read_program_header call to pass
+       a NULL pointer for the new argument.
+       (scan_dyntag): Add ptr_addr argument to report the runtime address
+       of the tag payload.
+       (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
+       read_program_header to get the base address of the dynamic segment.
+       (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
+       read_program_header.
+       (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
+
+2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
+
+       * MAINTAINERS (Write After Approval): Add Matthew Fortune.
+
+2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
+
+       * d-exp.y (%union): Add voidval.
+       (%token): Add UNKNOWN_NAME as a token to represent an unclassified
+       name in the lexing stage.
+       (PostfixExpression): Move symbol completion handling in grammar here
+       from PrimaryExpression.
+       (PrimaryExpression): Move routines to handle resolving identifier
+       tokens in the grammar here from push_expression_name.
+       (IdentifierExp): Remove the handling of alternating '.' and identifier
+       tokens.
+       (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
+       (BasicType): Remove C-style typename rules.
+       (d_type_from_name, d_module_from_name, push_variable)
+       (push_fieldnames, push_type_name, push_module_name)
+       (push_expression_name): Remove.
+       (lex_one_token): Rename from yylex.  Replace pstate with par_state.
+       (token_and_value): New type.
+       (token_fifo, popping, name_obstack): New globals.
+       (classify_name): New function.
+       (classify_inner_name): Likewise.
+       (yylex): Likewise.
+       (d_parse): Initialize token_fifo, popping and name_obstack.
+
+2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
+
+       * Makefile.in (SFILES): Add d-namespace.c.
+       (COMMON_OBS): Add d-namespace.o.
+       * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
+       la_lookup_symbol_nonlocal callback function pointer.
+       * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
+       (d_lookup_nested_symbol): New declaration.
+       * d-namespace.c: New file.
+
+2015-08-13  Pedro Alves  <palves@redhat.com>
+
+       * python/py-unwind.c (pyuw_sniffer): Install the invalidate
+       cleanup after the decref cleanup, not before.
+
+2015-08-13  Pierre-Marie de Rodat  <derodat@adacore.com>
+
+       * ada-lang.c: Include namespace.h
+       (aux_add_nonlocal_symbols): Fix a function name in comment.
+       (ada_add_block_renamings): New.
+       (add_nonlocal_symbols): Add global renamings handling.
+       (ada_lookup_symbol_list_worker): Move the symbol lookup part
+       to...
+       (ada_add_all_symbols): ... this new function.
+       (ada_add_block_symbols): Try to match the input name against the
+       "using directives list", perform a recursive symbol lookup on
+       the matched declarations.
+       * block.h (struct block): Move the_namespace to top-level as
+       namespace_info. Remove the language_specific field.
+       (BLOCK_NAMESPACE): Update access to the namespace_info field.
+       * buildsym.h (using_directives): Rename into...
+       (local_using_directives): ... this.
+       (global_using_directives): New.
+       (struct context_stack): Rename the using_directives field into
+       local_using_directives.
+       * buildsym.c (finish_block_internal): Deal with the proper
+       using directives repository (local or global).
+       (prepare_for_building): Reset local_using_directives. Assert
+       that there is no pending global using directive.
+       (reset_symtab_globals): Reset global_using_directives and
+       local_using_directives.
+       (end_symtab_get_static_block): Don't ignore symtabs that have
+       only using directives.
+       (push_context): Update references to local_using_directives.
+       (buildsym_init): Do not reset using_directives.
+       * cp-support.c: Include namespace.h.
+       * cp-support.h (struct using_direct): Move to namespace.h.
+       (cp_add_using_directives): Move to namespace.h.
+       * cp-namespace.c: Include namespace.h
+       (cp_add_using_directive): Move to namespace.c, rename it to
+       add_using_directive, add a "using_directives" argument and use
+       it as the pending using directives repository.  All callers
+       updated.
+       * dwarf2read.c (using_directives): New.
+       (read_import_statement): Call using_directives.
+       (read_func_scope): Update references to local_using_directives.
+       (read_lexical_block_scope): Likewise.
+       (read_namespace): Update the heading comment, call
+       using_directives.
+       * namespace.h: New file.
+       * namespace.c: New file.
+       * Makefile.in (SFILES): Add namespace.c.
+       (COMMON_OBS): Add namespace.o
+
+2015-08-12  Joel Brobecker  <brobecker@adacore.com>
+
+       * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
+       compute RETADDR.
+
+2015-08-12  Keith Seitz  <keiths@redhat.com>
+
+       * break-catch-throw.c (re_set_exception_catchpoint) Rename
+       reserved C++ keyword "explicit" to "explicit_loc".
+       * breakpoint.c (create_overlay_event_breakpoint)
+       (create_longjmp_master_breakpoint)
+       (create_std_terminate_master_breakpoint)
+       (create_exception_master_breakpoint, update_static_tracepoint):
+       Rename reserved C++ keyword "explicit" to "explicit_loc".
+       * completer.c (collect_explicit_location_matches)
+       (explicit_location_completer): Rename reserved C++ keyword
+       "explicit" to "explicit_loc".
+       * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
+       (canonicalize_linespec, create_sals_line_offset)
+       (convert_linespec_to_sals, convert_explicit_location_to_sals)
+       (event_location_to_sals, decode_objc): Rename reserved C++ keyword
+       "explicit" to "explicit_loc".
+       * location.c (struct event_location) <explicit>: Rename to
+       "explicit_loc".
+       (initialize_explicit_location, new_explicit_location)
+       (explicit_location_to_string_internal, explicit_location_to_linespec):
+       Rename reserved C++ keyword "explicit" to "explicit_loc".
+       * location.h (explicit_location_to_string)
+       (explicit_location_to_linespec, initialize_explicit_location)
+       (new_explicit_location): Rename reserved C++ keyword "explicit"
+       to "explicit_loc".
+       * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
+       keyword "explicit" to "explicit_loc".
+
+2015-08-12  Keith Seitz  <keiths@redhat.com>
+
+       * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
+       and only call decode_line_1 when it is non-NULL.
+
+2015-08-12  Luis Machado  <lgustavo@codesourcery.com>
+
+       * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
+       location address is not meaningful.
+       (breakpoint_address_is_meaningful): Update comment.
+
+2015-08-11  Keith Seitz  <keiths@redhat.com>
+
+       * NEWS: Mention explicit locations.
+       * breakpoint.c [LOCATION_HELP_STRING]: New macro.
+       [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
+       (_initialize_breakpoint): Update documentation for
+       "clear", "break", "trace", "strace", "ftrace", and "dprintf".
+
+2015-08-11  Keith Seitz  <keiths@redhat.com>
+
+       * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
+       explicit locations, options "--source", "--function",
+       "--label", and "--line".
+
+2015-08-11  Keith Seitz  <keiths@redhat.com>
+
+       * completer.c: Include location.h.
+       (enum match_type): New enum.
+       (location_completer): Rename to ...
+       (linespec_completer): ... this.
+       (collect_explicit_location_matches, backup_text_ptr)
+       (explicit_location_completer): New functions.
+       (location_completer): "New" function; handle linespec
+       and explicit location completions.
+       (complete_line_internal): Remove all location completer-specific
+       handling.
+       * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
+       (find_toplevel_char): Export.
+       (linespec_parse_line_offset): Export.
+       Issue error if STRING is not numerical.
+       (gdb_get_linespec_parser_quote_characters): New function.
+       * linespec.h (linespec_parse_line_offset): Declare.
+       (get_gdb_linespec_parser_quote_characters): Declare.
+       (is_ada_operator): Declare.
+       (find_toplevel_char): Declare.
+       (linespec_lexer_lex_keyword): Declare.
+       * location.c (explicit_to_event_location): New function.
+       (explicit_location_lex_one): New function.
+       (string_to_explicit_location): New function.
+       (string_to_event_location): Handle explicit locations.
+       * location.h (explicit_to_event_location): Declare.
+       (string_to_explicit_location): Declare.
+
 2015-08-11  Keith Seitz  <keiths@redhat.com>
 
        * break-catch-throw.c (re_set_exception_catchpoint): Convert
This page took 0.026843 seconds and 4 git commands to generate.