change probes to be program-space-independent
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 0ce3186102fab2c7b1148ccba5c4561c4bd3c727..963ca04ac6066b16ff21ae7ff87a81607254ef14 100644 (file)
@@ -1,3 +1,274 @@
+2014-03-03  Tom Tromey  <tromey@redhat.com>
+
+       * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
+       * breakpoint.c (create_longjmp_master_breakpoint): Use
+       get_probe_address.
+       (add_location_to_breakpoint, bkpt_probe_insert_location)
+       (bkpt_probe_remove_location): Update.
+       * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
+       * elfread.c (elf_symfile_relocate_probe): Remove.
+       (elf_probe_fns): Update.
+       (insert_exception_resume_breakpoint): Change type of "probe"
+       parameter to bound_probe.
+       (check_exception_resume): Update.
+       * objfiles.c (objfile_relocate1): Don't relocate probes.
+       * probe.c (bound_probe_s): New typedef.
+       (parse_probes): Use get_probe_address.  Set sal's objfile.
+       (find_probe_by_pc): Return a bound_probe.
+       (collect_probes): Return a VEC(bound_probe_s).
+       (compare_probes): Update.
+       (gen_ui_out_table_header_info): Change type of "probes"
+       parameter.  Update.
+       (info_probes_for_ops): Update.
+       (get_probe_address): New function.
+       (probe_safe_evaluate_at_pc): Update.
+       * probe.h (struct probe_ops) <get_probe_address>: New field.
+       <set_semaphore, clear_semaphore>: Add objfile parameter.
+       (struct probe) <objfile>: Remove field.
+       <arch>: New field.
+       <address>: Update comment.
+       (struct bound_probe): New.
+       (find_probe_by_pc): Return a bound_probe.
+       (get_probe_address): Declare.
+       * solib-svr4.c (struct probe_and_action) <address>: New field.
+       (hash_probe_and_action, equal_probe_and_action): Update.
+       (register_solib_event_probe): Add address parameter.
+       (solib_event_probe_at): Update.
+       (svr4_create_probe_breakpoints): Add objfile parameter.  Use
+       get_probe_address.
+       * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
+       (stap_get_probe_address): New function.
+       (stap_can_evaluate_probe_arguments, compute_probe_arg)
+       (compile_probe_arg): Update.
+       (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
+       address.
+       (handle_stap_probe): Don't relocate the probe.
+       (stap_relocate): Remove.
+       (stap_gen_info_probes_table_values): Update.
+       (stap_probe_ops): Remove stap_relocate.
+       * symfile-debug.c (debug_sym_relocate_probe): Remove.
+       (debug_sym_probe_fns): Update.
+       * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
+       * symtab.c (init_sal): Use memset.
+       * symtab.h (struct symtab_and_line) <objfile>: New field.
+       * tracepoint.c (start_tracing, stop_tracing): Update.
+
+2014-03-03  Tom Tromey  <tromey@redhat.com>
+
+       * probe.h (parse_probes, find_probe_by_pc)
+       (find_probes_in_objfile): Fix comments.
+
+2014-03-02  Doug Evans  <xdje42@gmail.com>
+
+       * infrun.c (handle_signal_stop): Replace test for
+       TARGET_WAITKIND_STOPPED with an assert.
+
+2014-03-02  Doug Evans  <xdje42@gmail.com>
+
+       * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
+
+2014-03-02  Doug Evans  <xdje42@gmail.com>
+
+       * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
+
+2014-03-01  Mark Kettenis  <kettenis@gnu.org>
+
+       * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
+
+2014-03-01  Mark Kettenis  <kettenis@gnu.org>
+
+       * i386obsd-nat.c: Include "obsd-nat.h".
+       (_initialize_i386obsd_nat): Call obsd_add_target instead of
+       add_target.
+       * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
+
+2014-03-01  Mark Kettenis  <kettenis@gnu.org>
+
+       * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
+
+2014-03-01  Mark Kettenis  <kettenis@gnu.org>
+
+       * mips64obsd-nat.c: Include "obsd-nath".
+       (_initialize_mips64obsd_nat): Call obsd_add_target instead of
+       add_target
+       * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
+
+2014-03-01  Mark Kettenis  <kettenis@gnu.org>
+
+       * amd64obsd-nat.c: Include "obsd-nat,h.
+       (_initialize_amd64obsd_nat): Call obsd_add_target instead of
+       add_target.
+       * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
+
+2014-02-28  Siva Chandra Reddy  <sivachandra@google.com>
+
+       * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
+       (find_overload_match): Update call to find_oload_champ.
+       (find_oload_champ_namespace_loop): Likewise
+
+2014-02-28  Mark Kettenis  <kettenis@gnu.org>
+
+       * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
+
+       * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
+       * config/sparc/obsd64.mh: New file.
+       * sparc64obsd-nat.c: New file.
+
+       * obsd-nat.h: New file.
+       * obsd-nat.c: New file.
+       * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
+       (ALLDEPFILES): Add obsd-nat.c.
+
+2014-02-28  Tom Tromey  <tromey@redhat.com>
+
+       * cli-out.c (cli_ui_out_impl): Now const.  Remove comment.
+       * cli-out.h (cli_ui_out_impl): Now const.
+       * mi/mi-out.c (mi_ui_out_impl): Now const.  Remove comment.
+       * ui-out.c (struct ui_out) <impl>: Now const.
+       (default_ui_out_impl): Now const.
+       (ui_out_new): Make 'impl' parameter const.
+       * ui-out.h (ui_out_new): Update.
+
+2014-02-27  Mark Kettenis  <kettenis@gnu.org>
+
+       * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
+
+2014-02-27  Mark Kettenis  <kettenis@gnu.org>
+
+       * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
+
+2014-02-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Additional PR 8882 fix.
+       * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
+
+2014-02-27  Pedro Alves  <palves@redhat.com>
+
+       * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
+       isn't set.
+
+2014-02-27  Pedro Alves  <palves@redhat.com>
+
+       PR 12702
+       * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
+       * nat/linux-waitpid.c: Include string.h.
+       (status_to_str): Moved here and made extern.
+       * nat/linux-waitpid.h (status_to_str): New declaration.
+
+2014-02-27  Hui Zhu  <hui@codesourcery.com>
+
+       PR 12702
+       * infrun.c (ptid_match): Move ...
+       * common/ptid.c (ptid_match): ... here.
+       * inferior.h (ptid_match): Move ...
+       * common/ptid.h (ptid_match): ... here.
+
+2014-02-27  Mark Kettenis  <kettenis@gnu.org>
+
+       * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
+       * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
+       gdb_target_obs.
+
+2014-02-27  Mark Kettenis  <kettenis@gnu.org>
+
+       * obsd-tdep.c (obsd_auxv_parse): New function.
+       (obsd_init_abi): Set auxv_parse.
+
+       * gdbarch.sh (auxv_parse): New.
+       * gdbarch.h: Regenerated.
+       * gdbarch.c: Regenerated.
+       * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
+
+2014-02-26  Ludovic Courtès  <ludo@gnu.org>
+
+       * guile/scm-value.c (gdbscm_history_append_x): New function.
+       (value_functions): Add it.
+
+2014-02-27  Joel Brobecker  <brobecker@adacore.com>
+
+       * dwarf2read.c (attr_value_as_address): New function.
+       (dwarf2_find_base_address, read_call_site_scope): Use
+       attr_value_as_address in place of DW_ADDR.
+       (dwarf2_get_pc_bounds): Use attr_value_as_address to get
+       the low and high addresses.  Slight rework of the handling
+       of the high pc being a constant form, and limit it to
+       DWARF verson 4 or higher.
+       (dwarf2_record_block_ranges): Likewise.
+       (read_partial_die): Likewise.
+       (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
+
+2014-02-26  Tom Tromey  <tromey@redhat.com>
+
+       * exec.c (exec_file_attach): Hold a reference to exec_bfd.
+
+2014-02-26  Tom Tromey  <tromey@redhat.com>
+
+       * elfread.c (elf_read_minimal_symbols): Return early if
+       minimal symbols have already been read.  Add "ei" parameter.
+       (elf_symfile_read): Call elf_read_minimal_symbols earlier.
+       * minsyms.c (prim_record_minimal_symbol_full): Update.
+       * objfiles.h (struct objstats) <n_minsyms>: Move...
+       (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
+       * symmisc.c (print_objfile_statistics): Update.
+
+2014-02-26  Tom Tromey  <tromey@redhat.com>
+
+       * elfread.c (elf_read_minimal_symbols): New function, from
+       elf_symfile_read.
+       (elf_symfile_read): Call it.
+
+2014-02-26  Tom Tromey  <tromey@redhat.com>
+
+       * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
+       (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
+       (lookup_minimal_symbol_solib_trampoline)
+       (lookup_minimal_symbol_by_pc_section_1)
+       (lookup_minimal_symbol_and_objfile): Update.
+       (prim_record_minimal_symbol_full): Use the per-BFD obstack.
+       Don't allocate a minimal symbol if minsyms have already been read.
+       (build_minimal_symbol_hash_tables): Update.
+       (install_minimal_symbols): Do nothing if minsyms already read.
+       Use the per-BFD obstack.
+       (terminate_minimal_symbol_table): Use the per-BFD obstack.
+       * objfiles.c (allocate_objfile): Call
+       terminate_minimal_symbol_table later.
+       (have_minimal_symbols): Update.
+       * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
+       minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
+       Move from struct objfile.
+       <minsyms_read>: New field.
+       (struct objfile) <msymbols, minimal_symbol_count,
+       msymbol_hash, msymbol_demangled_hash>: Move.
+       (ALL_OBJFILE_MSYMBOLS): Update.
+       * symfile.c (read_symbols): Set minsyms_read.
+       (reread_symbols): Update.
+       * symmisc.c (dump_objfile, dump_msymbols): Update.
+
+2014-02-26  Tom Tromey  <tromey@redhat.com>
+
+       * minsyms.c (msymbols_sort): Remove.
+       * minsyms.h (msymbols_sort): Remove.
+       * objfiles.c (objfile_relocate1): Don't relocate minsyms.
+       * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
+       * elfread.c (elf_symtab_read): Don't add section offsets.
+       * xcoffread.c (record_minimal_symbol): Don't add section offset
+       to minimal symbol address.
+       * somread.c (text_offset, data_offset): Remove.
+       (som_symtab_read): Don't add section offsets to minimal symbol
+       addresses.
+       * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
+       Don't add section offsets to minimal symbols.
+       * coffread.c (coff_symtab_read): Don't add section offsets
+       to minimal symbol addresses.
+       * machoread.c (macho_symtab_add_minsym): Don't add section offset
+       to minimal symbol addresses.
+       * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
+       section offset to minimal symbol addresses.
+       * mdebugread.c (parse_partial_symbols): Don't add section
+       offset to minimal symbol addresses.
+       * dbxread.c (read_dbx_dynamic_symtab): Don't add section
+       offset to minimal symbol addresses.
+
 2014-02-26  Tom Tromey  <tromey@redhat.com>
 
        * ada-lang.c (ada_main_name): Update.
This page took 0.028637 seconds and 4 git commands to generate.