solib-svr4: Pass down svr4_info as much as possible
[external/binutils.git] / gdb / ChangeLog
index 2fb4b87..35d54a5 100644 (file)
@@ -1,3 +1,149 @@
+2019-04-22  Simon Marchi  <simon.marchi@efficios.com>
+
+       * solib-svr4.c (get_svr4_info): Add pspace parameter.
+       (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
+       (open_symbol_file_object): Likewise.
+       (svr4_default_sos): Add info parameter.
+       (svr4_read_so_list): Likewise.
+       (svr4_current_sos_direct): Adjust functions calls to pass down
+       info.
+       (svr4_current_sos_1): Add info parameter.
+       (svr4_current_sos): Call get_svr4_info, pass info down to
+       svr4_current_sos_1.
+       (svr4_fetch_objfile_link_map): Pass objfile->pspace to
+       get_svr4_info.
+       (svr4_in_dynsym_resolve_code): Pass current_program_space to
+       get_svr4_info.
+       (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
+       to get_svr4_info.
+       (probes_table_remove_objfile_probes): Likewise.
+       (register_solib_event_probe): Add info parameter.
+       (solist_update_incremental): Pass info parameter down to
+       svr4_read_so_list.
+       (disable_probes_interface): Add info parameter.
+       (svr4_handle_solib_event): Pass current_program_space to
+       get_svr4_info.  Adjust disable_probes_interface cleanup.
+       (svr4_create_probe_breakpoints): Add info parameter, pass it
+       down to register_solib_event_probe.
+       (svr4_create_solib_event_breakpoints): Add info parameter,
+       pass it down to svr4_create_probe_breakpoints.
+       (enable_break): Pass info down to
+       svr4_create_solib_event_breakpoints.
+       (svr4_solib_create_inferior_hook): Pass current_program_space to
+       get_svr4_info.
+       (svr4_clear_solib): Likewise.
+
+2019-04-22  Pedro Alves  <palves@redhat.com>
+
+       * solib-svr4.c (svr4_free_objfile_observer): New.
+       (probe_and_action::objfile): New field.
+       (probes_table_htab_remove_objfile_probes)
+       (probes_table_remove_objfile_probes): New functions.
+       (register_solib_event_probe): Add 'objfile' parameter.  Store it
+       in the new probe_and_action.  Don't store the probe in 'lookup'.
+       (svr4_create_probe_breakpoints): Pass objfile to
+       register_solib_event_probe.
+       (_initialize_svr4_solib): Register a free_objfile observer.
+
+2019-04-19  Tom Tromey  <tom@tromey.com>
+
+       * common/queue.h: Remove.
+
+2019-04-19  Tom Tromey  <tom@tromey.com>
+
+       * event-loop.c: Don't include "common/queue.h".
+
+2019-04-19  Tom Tromey  <tom@tromey.com>
+
+       * remote.c (remote_target): Use delete.
+       * remote-notif.h: Include <list>, not "common/queue.h".
+       (notif_client_p): Remove typedef.
+       (remote_notif_state): Add constructor, destructor, initializer.
+       <notif_queue>: Now a std::list.
+       (remote_notif_state_xfree): Don't declare.
+       * remote-notif.c (remote_notif_process, handle_notification)
+       (remote_notif_state_allocate): Update.
+       (~remote_notif_state): Rename from remote_notif_state_xfree.
+
+2019-04-19  Tom Tromey  <tom@tromey.com>
+
+       * symfile.c (reread_symbols): Update.
+       * objfiles.c (objfile_register_static_link)
+       (objfile_lookup_static_link): Update
+       (~objfile) Don't delete static_links.
+       * objfiles.h (struct objfile) <static_links>: Now an htab_up.
+
+2019-04-19  Tom Tromey  <tom@tromey.com>
+
+       * type-stack.h (struct type_stack) <insert>: Constify string.
+       * type-stack.c (type_stack::insert): Constify string.
+       * gdbtypes.h (lookup_template_type): Update.
+       (address_space_name_to_int): Update.
+       * gdbtypes.c (address_space_name_to_int): Make space_identifier
+       const.
+       (lookup_template_type): Make name const.
+       * c-exp.y: Update rules.
+       (lex_one_token, classify_name, classify_inner_name)
+       (c_print_token): Update.
+       * p-exp.y: Update rules.
+       (yylex): Update.
+       * f-exp.y: Update rules.
+       (yylex): Update.
+       * d-exp.y: Update rules.
+       (lex_one_token, classify_name, classify_inner_name): Update.
+       * parse.c (write_dollar_variable, copy_name): Return std::string.
+       * parser-defs.h (copy_name): Change return type.
+       * m2-exp.y: Update rules.
+       (yylex): Update.
+       * go-exp.y (lex_one_token): Update.
+       Update rules.
+       (classify_unsafe_function, classify_packaged_name)
+       (classify_name, yylex): Update.
+
+2019-04-19  Sergei Trofimovich <siarheit@google.com>
+
+       * configure.ac: add --enable-source-highlight switch.
+       * configure: Regenerate.
+       * top.c (print_gdb_version): plumb --enable-source-highlight
+       status to "show configuration".
+
+2019-04-19  Tom Tromey  <tromey@adacore.com>
+
+       * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
+       Check ADA_TYPE_P.
+       (empty_record, ada_template_to_fixed_record_type_1)
+       (template_to_static_fixed_type)
+       (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
+       * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
+       * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
+       macros.
+
+2019-04-19  Ilya Yu. Malakhov  <malakhov@mcst.ru>
+
+       PR symtab/24423:
+       * source.c (print_source_lines_base): Advance "iter" when a
+       control character is seen.
+
+2019-04-19  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
+
+       * inferior.h (struct infcall_suspend_state_deleter):
+       Catch exception in destructor to avoid crash.
+
+2019-04-19  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
+
+       * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
+       close to the add_com "shell".
+
+2019-04-18  Tom Tromey  <tromey@adacore.com>
+
+       * process-stratum-target.h (class process_stratum_target)
+       <stratum>: Add "final".
+
+2019-04-17  Tom Tromey  <tromey@adacore.com>
+
+       * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
+       against nullptr before use.
+
 2019-04-17  Alan Hayward  <alan.hayward@arm.com>
 
        * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.