Make index reading functions more modular
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 1fbe025be8cebdb7cc7df01c5a74557eea9e5981..52e2dcb67ba8d28018bc79f9e6a7cdb0344faa4e 100644 (file)
@@ -1,3 +1,161 @@
+2018-08-07  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * dwarf2read.c (read_gdb_index_from_section): Rename to...
+       (read_gdb_index_from_buffer): ... this.  Remove section
+       parameter, add buffer parameter.
+       (get_gdb_index_contents_ftype,
+       get_gdb_index_contents_dwz_ftype): New typedefs.
+       (dwarf2_read_gdb_index): Add callback parameters to get the
+       index contents.
+       (get_gdb_index_contents_from_section): New.
+       (dwarf2_initialize_objfile): Update call to
+       dwarf2_read_gdb_index.
+
+2018-08-07  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * common/filestuff.h (gdb_fopen_cloexec): New overload.
+       (gdb_open_cloexec): Likewise.
+       * nat/linux-osdata.c (command_from_pid): Use string_printf.
+       (commandline_from_pid): Likewise.
+       (linux_xfer_osdata_threads): Likewise.
+       (linux_xfer_osdata_fds): Likewise.
+       * ada-lang.c (is_package_name): Likewise.
+       * auxv.c (procfs_xfer_auxv): Likewise.
+       * breakpoint.c (print_one_breakpoint_location): Use
+       uiout::field_fmt.
+       (print_one_catch_solib): Use string_printf.
+       * coff-pe-read.c (add_pe_exported_sym): Likewise.
+       (add_pe_forwarded_sym): Likewise.
+       * dwarf2read.c (create_type_unit_group): Likewise.
+       (build_error_marker_type): Likewise.
+       * infcall.c (get_function_name): Likewise.
+       * valprint.c (print_converted_chars_to_obstack): Likewise.
+       * xtensa-tdep.c (xtensa_register_type): Likewise.
+
+2018-08-06  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * remote.c (remote_target::download_tracepoint): Fix format
+       string errors.
+
+2018-08-06  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
+
+       * tracefile.c: Include common/byte-vector.h.
+       (trace_save): Change type of buf to gdb::byte_vector.  Initialize
+       with trace_regblock_size if needed.  Update uses of buf.
+
+2018-08-06  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
+
+       * tracepoint.h (collection_list) <m_regs_mask>: Change type to
+       std::vector<unsigned char>.
+       * tracepoint.c (collection_list::collection_list): Remove
+       m_regs_mask initializer from initializer list.  Resize
+       m_regs_mask using the largest remote register number.
+       (collection_list::add_remote_register): Remove size check on
+       m_regs_mask.  Use at to access element.
+       (collection_list::stringify): Change type of temp_buf to
+       gdb::char_vector.  Update uses of temp_buf.  Resize if needed to
+       stringify the register mask.  Use pack_hex_byte for the register
+       mask.
+
+2018-08-06  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
+
+       * tracepoint.h (class collection_list) <add_register>: Remove.
+       <add_remote_register, add_ax_registers, add_local_register>:
+       Declare.
+       <add_memrange>: Add scope parameter.
+       * tracepoint.c (encode_actions_1): Likewise.
+       (collection_list::add_register): Rename to ...
+       (collection_list::add_remote_register): ... this.  Update
+       comment.
+       (collection_list::add_ax_registers, add_local_register): New
+       methods.
+       (collection_list::add_memrange): Add scope parameter.  Call
+       add_local_register instead of add_register.
+       (finalize_tracepoint_aexpr): New function.
+       (collection_list::collect_symbol): Update calls to add_memrange.
+       Call add_local_register instead of add_register.  Call
+       add_ax_registers.  Call finalize_tracepoint_aexpr.
+       (encode_actions_1): Get remote regnos for $reg action.  Call
+       add_remote_register, add_ax_registers, and add_local_register.
+       Update call to add_memrange.  Call finalize_tracepoint_aexpr.
+       (validate_actionline): Call finalize_tracepoint_aexpr.
+
+2018-08-06  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
+
+       * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
+       Replace array buf with gdb::char_vector buf, of size
+       get_remote_packet_size ().  Replace references to buf and
+       BUF_SIZE to buf.data () and buf.size ().  Replace strcpy, strcat
+       and xsnprintf with snprintf.  Raise errors if the buffer is too
+       small.
+
+2018-08-06  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
+
+       * remote.c (remote_target::download_tracepoint): Fix the has_more
+       predicate in the QTDP action list iteration.
+
+2018-08-06  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
+
+       * remote.c (remote_target::download_tracepoint): Fix indentation
+       in for block.
+
+2018-08-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * proc-api.c (_initialize_proc_api): Remove c, unused.
+       * procfs.c (procfs_init_inferior): Remove signals, unused.
+       (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
+       unused.
+
+2018-08-06  Sergey Korolev  <s.korolev@ndmsystems.com>
+           Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * linux-nat.c (linux_nat_target::follow_fork): Avoid using
+       'W_STOPCODE (0)' as this could be ambiguous.
+
+2018-08-03  Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       * ser-tcp.c (net_open): Fix thinko when deciding whether to
+       disable TCP's Nagle algorithm (use "ai_protocol" instead of
+       "ai_socktype").
+
+2018-08-02  Tom Tromey  <tom@tromey.com>
+
+       PR symtab/16842.
+       * dwarf2read.c (read_func_scope): Set symtab on template parameter
+       symbols.
+       (process_structure_scope): Likewise.
+
+2018-08-02  Xavier Roirand  <roirand@adacore.com>
+
+       PR gdb/22629:
+        * darwin-nat.c (darwin_kill_inferior): Fix handling of
+        kill inferior.
+
+2018-08-02  Tom Tromey  <tom@tromey.com>
+
+       * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
+       (darwin_suspend_inferior, darwin_resume_inferior)
+       (darwin_decode_notify_message, darwin_resume_inferior_threads)
+       (darwin_check_new_threads): Check result of get_darwin_inferior.
+
+2018-07-31  Joel Brobecker  <brobecker@adacore.com>
+
+       GDB 8.1.1 released.
+
+2018-07-31  Jan Vrany  <jan.vrany@fit.cvut.cz>
+
+       * varobj.c (varobj_get_path_expr_parent): Report an error if
+       parent is a dynamic varobj.
+
+2018-07-31  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * gnulib/aclocal.m4: Re-generate.
+       * gnulib/config.in: Re-generate.
+       * gnulib/configure: Re-generate.
+       * gnulib/import/Makefile.in: Re-generate.
+       * gnulib/import/m4/gnulib-comp.m4: Re-generate.
+       * gnulib/import/m4/onceonly.m4: Re-generate.
+
 2018-07-31  Simon Marchi  <simon.marchi@ericsson.com>
 
        * target-descriptions.c (struct xml_test_tdesc): New.
This page took 0.027423 seconds and 4 git commands to generate.