53f05c73a2ea7e15ee08cfbbc42fcbaff493e37a
[external/binutils.git] / gdb / ChangeLog
1 2018-03-16  Simon Marchi  <simon.marchi@polymtl.ca>
2
3         * silent-rules.mk: New.
4         * Makefile.in: Include silent-rules.mk
5         (srcdir, VPATH, top_srcdir): Move up.
6         (COMPILE): Add ECHO_CXX.
7         (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
8         (init.c): Add ECHO_INIT_C.
9         (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
10         (version.c): Add ECHO_GEN.
11         (printcmd.o): Add ECHO_CXX.
12         (target-float.o): Add ECHO_CXX.
13         (ada-exp.o): Add ECHO_CXX.
14         (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
15         (insight$(EXEEXT)): Add ECHO_CXXLD.
16         * gnulib/configure.ac: Add AM_SILENT_RULES.
17         * gnulib/aclocal.m4: Re-generate.
18         * gnulib/configure: Re-generate.
19         * gnulib/import/Makefile.in: Re-generate.
20
21 2018-03-16  Tom Tromey  <tom@tromey.com>
22
23         * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
24         * utils.h (make_cleanup_free_section_addr_info): Don't declare.
25         * utils.c (do_free_section_addr_info)
26         (make_cleanup_free_section_addr_info): Remove.
27         * symfile.h (struct other_sections): Add constructor.
28         (struct section_addr_info): Remove.
29         (section_addr_info): New typedef.
30         (struct sym_fns) <sym_offsets>: Change type of parameter.
31         (build_section_addr_info_from_objfile)
32         (relative_addr_info_to_section_offsets, addr_info_make_relative)
33         (default_symfile_offsets, symbol_file_add)
34         (symbol_file_add_from_bfd)
35         (build_section_addr_info_from_section_table): Update.
36         (alloc_section_addr_info, free_section_addr_info): Don't declare.
37         * symfile.c (alloc_section_addr_info): Remove.
38         (build_section_addr_info_from_section_table): Change return type.
39         Update.
40         (build_section_addr_info_from_bfd)
41         (build_section_addr_info_from_objfile): Likewise.
42         (free_section_addr_info): Remove.
43         (relative_addr_info_to_section_offsets): Change type of "addrs".
44         (addrs_section_compar): Now a std::sort comparator.
45         (addrs_section_sort): Change return type.
46         (addr_info_make_relative): Change type of "addrs".  Update.
47         (default_symfile_offsets, syms_from_objfile_1)
48         (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
49         (symbol_file_add_separate): Update.
50         (symbol_file_add): Change type of "addrs".  Update.
51         (add_symbol_file_command): Update.  Remove cleanups.
52         * symfile-mem.c (symbol_file_add_from_memory): Update.  Remove
53         cleanups.
54         * symfile-debug.c (debug_sym_offsets): Change type of "info".
55         * solib.c (solib_read_symbols): Update.
56         * objfiles.c (objfile_relocate): Update.  Remove cleanups.
57         * machoread.c (macho_symfile_offsets): Update.
58         * jit.c (jit_bfd_try_read_symtab): Update.
59
60 2018-03-15  Simon Marchi  <simon.marchi@polymtl.ca>
61
62         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
63         unittests/utils-selftests.c.
64         * unittests/utils-selftests.c: New file.
65
66 2018-03-14  Tom Tromey  <tom@tromey.com>
67
68         PR cli/14977:
69         * printcmd.c (printf_c_string, printf_wide_c_string): Special case
70         for NULL.
71
72 2018-03-14  Tom Tromey  <tom@tromey.com>
73
74         PR cli/19918:
75         * printcmd.c (printf_pointer): Allow "-" in format.
76
77 2018-03-14  Tom Tromey  <tom@tromey.com>
78
79         * printcmd.c (_initialize_printcmd): Add usage to printf.
80
81 2018-03-14  Yao Qi  <qiyao@sourceware.org>
82
83         * MAINTAINERS: Update my email address.
84
85 2018-03-13  Tom Tromey  <tom@tromey.com>
86
87         * machoread.c (macho_check_dsym): Change filenamep to a
88         std::string*.
89         (macho_symfile_read): Update.
90         * symfile.c (load_command): Use std::string.
91
92 2018-03-12  Andrew Burgess  <andrew.burgess@embecosm.com>
93
94         * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
95         to error message string.
96         (riscv_register_name): Use xsnprintf instead of sprintf.
97         (riscv_insn::fetch_instruction): Use gdb_assert instead of
98         internal_error.
99         (riscv_print_arg_location): Use gdb_assert_not_reached instead of
100         error.
101         (riscv_push_dummy_call): Likewise.
102
103 2018-03-12  Tom Tromey  <tom@tromey.com>
104
105         * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
106         Use gdb::byte_vector.
107         * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
108
109 2018-03-12  Yao Qi  <yao.qi@linaro.org>
110
111         * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
112         parameter type to readable_regcache.
113         * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
114         the declaration.
115
116 2018-03-11  Tom Tromey  <tom@tromey.com>
117
118         * dwarf2read.c (struct nextfield): Add initializers.
119         (struct nextfnfield): Remove.
120         (struct fnfieldlist): Add initializers.  Remove "length" and
121         "head", use std::vector.
122         (struct decl_field_list): Remove.
123         (struct field_info): Add initializers.
124         <fields, baseclasses>: Now std::vector.
125         <nbaseclasses, nfnfields, typedef_field_list_count,
126         nested_types_list_count>: Remove.
127         (dwarf2_add_field, dwarf2_add_type_defn)
128         (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
129         (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
130         (process_structure_scope): Update.
131
132 2018-03-11  Tom Tromey  <tom@tromey.com>
133
134         * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
135         for use by std::sort.
136         (build_type_psymtabs_1): Use std::vector.
137
138 2018-03-09  Eli Zaretskii  <eliz@gnu.org>
139
140         * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
141         and LIBMPFR in the printed configuration.
142
143 2018-03-08  Tom Tromey  <tom@tromey.com>
144
145         * source.c (get_filename_and_charpos): Use scoped_fd.
146         * nto-procfs.c (procfs_open_1): Use scoped_fd.
147         (procfs_pidlist): Likewise.
148         * procfs.c (proc_get_LDT_entry): Use scoped_fd.
149         (iterate_over_mappings): Likewise.
150
151 2018-03-08  Tom Tromey  <tom@tromey.com>
152
153         * infcall.c (struct call_return_meta_info)
154         <stack_temporaries_enabled>: Remove.
155         (get_call_return_value, call_function_by_hand_dummy): Update.
156         * thread.c (disable_thread_stack_temporaries): Remove.
157         (enable_thread_stack_temporaries): Remove.
158         (thread_stack_temporaries_enabled_p): Return bool.
159         (push_thread_stack_temporary, value_in_thread_stack_temporaries)
160         (get_last_thread_stack_temporary): Update.
161         * eval.c (evaluate_subexp): Update.
162         * gdbthread.h (class enable_thread_stack_temporaries): Now a
163         class, not a function.
164         (value_ptr, value_vec): Remove typedefs.
165         (class thread_info) <stack_temporaries_enabled>: Now bool.
166         <stack_temporaries>: Now a std::vector.
167         (thread_stack_temporaries_enabled_p)
168         (value_in_thread_stack_temporaries): Return bool.
169
170 2018-03-08  Simon Marchi  <simon.marchi@ericsson.com>
171
172         * remote.c (putpkt_binary): Fix omitted bytes reporting.
173         (getpkt_or_notif_sane_1): Likewise.
174
175 2018-03-08  Simon Marchi  <simon.marchi@polymtl.ca>
176
177         * build-id.c (build_id_to_debug_bfd): Use std::string.
178
179 2018-03-08  Simon Marchi  <simon.marchi@polymtl.ca>
180
181         * build-id.c (find_separate_debug_file_by_buildid): Return
182         std::string.
183         * build-id.h (find_separate_debug_file_by_buildid): Return
184         std::string.
185         * coffread.c (coff_symfile_read): Adjust to std::string.
186         * elfread.c (elf_symfile_read): Adjust to std::string.
187         * symfile.c (separate_debug_file_exists): Change parameter to
188         std::string.
189         (find_separate_debug_file): Return std::string.
190         (find_separate_debug_file_by_debuglink): Return std::string.
191         * symfile.h (find_separate_debug_file_by_debuglink): Return
192         std::string.
193
194 2018-03-08  Simon Marchi  <simon.marchi@polymtl.ca>
195
196         * common/xml-utils.c (xml_escape_text): Move code to...
197         (xml_escape_text_append): ... this new function.
198         * common/xml-utils.h (xml_escape_text_append): New declaration.
199         * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
200         New function.
201         (_initialize_xml_utils): register test_xml_escape_text_append as
202         a selftest.
203
204 2018-03-07  Alan Hayward  <alan.hayward@arm.com>
205
206         * defs.h: Remove MAX_REGISTER_SIZE.
207         * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
208         asserts.
209         * python/py-unwind.c (pyuw_sniffer): Likewise.
210
211 2018-03-07  Tom Tromey  <tom@tromey.com>
212
213         * linux-tdep.c (linux_info_proc): Update.
214         * target.h (struct target_ops) <to_fileio_readlink>: Return
215         optional<string>.
216         (target_fileio_readlink): Return optional<string>.
217         * remote.c (remote_hostio_readlink): Return optional<string>.
218         * inf-child.c (inf_child_fileio_readlink): Return
219         optional<string>.
220         * target.c (target_fileio_readlink): Return optional<string>.
221
222 2018-03-07  Andrew Burgess  <andrew.burgess@embecosm.com>
223
224         * regcache.c (cooked_read_test): Add riscv to the list of
225         architectures that have a save_reggroup.
226
227 2018-03-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
228
229         * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
230         value is not a dynamic class object.
231
232 2018-03-06  Tom Tromey  <tom@tromey.com>
233
234         * rust-exp.y: Formatting fixes.
235
236 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
237
238         * riscv-tdep.c (riscv_register_name): Remove target description
239         support.
240         (riscv_gdbarch_init): Remove target description check.
241
242 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
243
244         * riscv-tdep.c: Remove 'Contributed by ...' lines from header
245         comment.
246         * riscv-tdep.h: Likewise.
247
248 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
249
250         * riscv-tdep.c (riscv_pseudo_register_read): Delete.
251         (riscv_pseudo_register_write): Delete.
252         (riscv_gdbarch_init): Remove all use of pseudo registers.
253
254 2018-03-06  Simon Marchi  <simon.marchi@polymtl.ca>
255
256         * record-btrace.c (btrace_print_lines): Replace cleanup
257         parameter with RAII equivalents.
258         (btrace_insn_history): Replace cleanup with RAII equivalents.
259         * ui-out.h (make_cleanup_ui_out_list_begin_end,
260         make_cleanup_ui_out_tuple_begin_end): Remove.
261         * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
262         make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
263         make_cleanup_ui_out_list_begin_end): Remove.
264
265 2018-03-06  Simon Marchi  <simon.marchi@polymtl.ca>
266
267         * record-btrace.c (record_btrace_maybe_mark_async_event): Change
268         parameter types to std::vector.  Use bool.
269         (record_btrace_wait): Replace VEC(tp_t) with
270         std::vector<thread_info *>.
271         * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
272
273 2018-03-06  Simon Marchi  <simon.marchi@polymtl.ca>
274
275         * record-btrace.c (record_btrace_disable_callback): Remove.
276         (struct scoped_btrace_disable): New.
277         (record_btrace_open): Use scoped_btrace_disable.
278
279 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
280
281         * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
282         reading values from registers.
283
284 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
285
286         * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
287         where appropriate.
288
289 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
290
291         * riscv-tdep.c (riscv_print_arg_location): Add header comment,
292         change parameter type.  Use GDB's print functions, and use
293         core_addr_to_string where appropriate.
294         (riscv_push_dummy_call): Use core_addr_to_string where
295         appropriate, update call to riscv_print_arg_location, and reindent
296         a few lines.
297         (riscv_return_value): Update call to riscv_print_arg_location.
298
299 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
300             Tim Newsome <tim@sifive.com>
301             Albert Ou <a0u@eecs.berkeley.edu>
302             Darius Rad <darius@bluespec.com>
303
304         * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
305         (HFILES_NO_SRCDIR): Add riscv-tdep.h.
306         (ALLDEPFILES): Add riscv-tdep.c
307         * configure.tgt: Add riscv support.
308         * riscv-tdep.c: New file.
309         * riscv-tdep.h: New file.
310         * NEWS: Mention new target.
311         * MAINTAINERS: Add entry for riscv.
312
313 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
314
315         * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
316         fields within aggregates.
317
318 2018-03-04  Simon Marchi  <simon.marchi@polymtl.ca>
319
320         * record-btrace.c (btrace_print_lines): Change type of flags to
321         gdb_disassembly_flags.
322
323 2018-03-04  John Baldwin  <jhb@FreeBSD.org>
324
325         * fbsd-nat.c: Include "inf-ptrace.h".
326         (USE_SIGTRAP_SIGINFO): Conditionally define.
327         [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
328         (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
329         [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
330         function.
331         [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
332         Likewise.
333         [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
334         Likewise.
335         (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
336         "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
337         "supports_stopped_by_hw_breakpoint" target methods.
338
339 2018-03-04  John Baldwin  <jhb@FreeBSD.org>
340
341         * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
342         * fbsd-nat.c (debug_fbsd_nat): New variable.
343         (show_fbsd_nat_debug): New function.
344         (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
345         (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
346
347 2018-03-04  John Baldwin  <jhb@FreeBSD.org>
348
349         * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
350         * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
351         prototype.
352         * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
353         (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
354         method.
355
356 2018-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
357
358         * common/gdb_vecs.c (free_char_ptr_vec): Remove.
359         * common/gdb_vecs.h (free_char_ptr_vec): Remove.
360
361 2018-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
362
363         * charset.c (struct charset_vector): New.
364         (charsets): Change type to charset_vector.
365         (find_charset_names): Adjust.
366         (add_one): Adjust.
367         (_initialize_charset): Adjust.
368
369 2018-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
370
371         * progspace.h (struct program_space) <deleted_solibs>: Change
372         type to std::vector<std::string>.
373         * progspace.c (clear_program_space_solib_cache): Adjust.
374         * breakpoint.c (print_solib_event): Adjust.
375         (check_status_catch_solib): Adjust.
376         * solib.c (update_solib_list): Adjust.
377         * ui-out.h (class ui_out) <field_string>: New overload.
378         * ui-out.c (ui_out::field_string): New overload.
379
380 2018-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
381
382         * progspace.h (struct program_space): Add constructor and
383         destructor, initialize fields.
384         (add_program_space): Remove.
385         * progspace.c (add_program_space): Rename to...
386         (program_space::program_space): ... this.
387         (release_program_space): Rename to...
388         (program_space::~program_space): ... this.
389         (delete_program_space): Use delete to delete program_space.
390         (initialize_progspace): Use new to allocate program_space.
391         * inferior.c (add_inferior_with_spaces): Likewise.
392         (clone_inferior_command): Likewise.
393         * infrun.c (follow_fork_inferior): Likewise.
394         (handle_vfork_child_exec_or_exit): Likewise.
395
396 2018-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
397
398         * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
399         (delim_string_to_char_ptr_vec): Return std::vector of
400         gdb::unique_xmalloc_ptr.
401         (dirnames_to_char_ptr_vec_append): Take std::vector of
402         gdb::unique_xmalloc_ptr.
403         (dirnames_to_char_ptr_vec): Return std::vector of
404         gdb::unique_xmalloc_ptr.
405         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
406         Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
407         (delim_string_to_char_ptr_vec): Return an std::vector of
408         gdb::unique_xmalloc_ptr, adjust the code.
409         (dirnames_to_char_ptr_vec_append): Take an std::vector of
410         gdb::unique_xmalloc_ptr, adjust the code.
411         (dirnames_to_char_ptr_vec): Return an std::vector of
412         gdb::unique_xmalloc_ptr, adjust the code.
413         * auto-load.c (auto_load_safe_path_vec): Change type to
414         std::vector of gdb::unique_xmalloc_ptr.
415         (auto_load_expand_dir_vars): Return an std::vector of
416         gdb::unique_xmalloc_ptr, adjust the code.
417         (auto_load_safe_path_vec_update): Adjust.
418         (filename_is_in_auto_load_safe_path_vec): Adjust.
419         (auto_load_objfile_script_1): Adjust.
420         * build-id.c (build_id_to_debug_bfd): Adjust.
421         * linux-thread-db.c (thread_db_load_search): Adjust.
422         * source.c (add_path): Adjust.
423         (openp): Adjust.
424         * symfile.c (find_separate_debug_file): Adjust.
425         * utils.c (do_free_char_ptr_vec): Remove.
426         (make_cleanup_free_char_ptr_vec): Remove.
427
428 2018-03-01  Sergio Durigan Junior  <sergiodj@redhat.com>
429
430         PR gdb/22907
431         * common/pathstuff.c: Conditionally include "<windows.h>".
432
433 2018-03-01  Georg Sauthoff  <mail@georg.so>
434
435         PR gdb/22888
436         * gcore.in: Quote variables and switch interpreter to bash.
437
438 2018-03-01  Tom Tromey  <tom@tromey.com>
439
440         * dwarf2read.c (alloc_discriminant_info): Fix default_index
441         assertion.  Add assertion for discriminant_index.
442         (quirk_rust_enum): Use correct base type name in univariant case.
443
444 2018-03-01  Simon Marchi  <simon.marchi@ericsson.com>
445
446         * record.c (get_call_history_modifiers): Return a
447         record_print_flags.
448         (cmd_record_call_history): Adjust.
449         * record-btrace.c (record_btrace_call_history): Adjust.
450         (record_btrace_call_history_range): Adjust.
451         (record_btrace_call_history_from): Adjust.
452         * target-debug.h (target_debug_print_record_print_flags): New.
453         * target-delegates.c: Re-generate.
454         * target.c (target_call_history): Change flags type.
455         (target_call_history_from): Likewise.
456         (target_call_history_range): Likewise.
457         * target.h (struct target_ops) <target_call_history>: Likewise.
458         (target_call_history_from): Likewise.
459         (target_call_history_range): Likewise.
460
461 2018-02-28  Sergio Durigan Junior  <sergiodj@redhat.com>
462             Simon Marchi  <simon.marchi@polymtl.ca>
463
464         * common/common-utils.c: Include "sys/stat.h".
465         (is_regular_file): Move here from "source.c"; change return
466         type to "bool".
467         * common/common-utils.h (is_regular_file): New prototype.
468         * common/pathstuff.c (contains_dir_separator): New function.
469         * common/pathstuff.h (contains_dir_separator): New prototype.
470         * source.c: Don't include "sys/stat.h".
471         (is_regular_file): Move to "common/common-utils.c".
472
473 2018-02-28  Sergio Durigan Junior  <sergiodj@redhat.com>
474
475         * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
476         (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
477         * auto-load.c: Include "common/pathstuff.h".
478         * common/common-def.h (current_directory): Move here.
479         * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
480         function.
481         * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
482         prototype.
483         * common/pathstuff.c: New file.
484         * common/pathstuff.h: New file.
485         * compile/compile.c: Include "common/pathstuff.h".
486         * defs.h (current_directory): Move to "common/common-defs.h".
487         * dwarf2read.c: Include "common/pathstuff.h".
488         * exec.c: Likewise.
489         * guile/scm-safe-call.c: Likewise.
490         * linux-thread-db.c: Likewise.
491         * main.c: Likewise.
492         * nto-tdep.c: Likewise.
493         * objfiles.c: Likewise.
494         * source.c: Likewise.
495         * symtab.c: Likewise.
496         * utils.c: Include "common/pathstuff.h".
497         (gdb_realpath): Move to "common/pathstuff.c".
498         (gdb_realpath_keepfile): Likewise.
499         (gdb_abspath): Likewise.
500         * utils.h (gdb_realpath): Move to "common/pathstuff.h".
501         (gdb_realpath_keepfile): Likewise.
502         (gdb_abspath): Likewise.
503
504 2018-02-28  John Baldwin  <jhb@FreeBSD.org>
505
506         * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
507         wildcard process pid for super_resume for kernels with a
508         specific bug.
509
510 2018-02-27  Phil Muldoon  <pmuldoon@redhat.com>
511
512         * compile/compile.c (get_args): Add additional comments
513         explaining function.
514
515 2018-02-27  Simon Marchi  <simon.marchi@polymtl.ca>
516             Tom Tromey  <tom@tromey.com>
517
518         * target.h (memory_write_request_s): Remove typedef.  Don't define
519         VEC.
520         (target_write_memory_blocks): Change argument to std::vector.
521         (struct memory_write_request): Add constructor.
522         * target-memory.c (compare_block_starting_address): Return bool.
523         Change argument types.
524         (claim_memory): Change arguments to use std::vector.
525         (split_regular_and_flash_blocks, blocks_to_erase)
526         (compute_garbled_blocks): Likewise.
527         (cleanup_request_data, cleanup_write_requests_vector): Remove.
528         (target_write_memory_blocks): Change argument to std::vector.
529         * symfile.c (struct load_section_data): Add constructor and
530         destructor.  Use std::vector for "requests".
531         (struct load_progress_data): Add initializers.
532         (load_section_callback): Update.  Use "new".
533         (clear_memory_write_data): Remove.
534         (generic_load): Update.
535
536 2018-02-27  Alan Hayward  <alan.hayward@arm.com>
537
538         * arch/aarch64.h: Use common/tdesc.h.
539
540 2018-02-26  Maciej W. Rozycki  <macro@mips.com>
541
542         * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
543         architecture with a 64-bit ABI.
544
545 2018-02-26  Maciej W. Rozycki  <macro@mips.com>
546
547         * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
548         ahead of target description loading.
549
550 2018-02-26  Tom Tromey  <tom@tromey.com>
551
552         * stack.c (backtrace_command_1): Update.
553         * python/python-internal.h (gdbpy_apply_frame_filter): Change type
554         of "flags".
555         * python/py-framefilter.c (py_print_frame)
556         (gdbpy_apply_frame_filter): Change type of "flags".
557         * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
558         of "flags".
559         (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
560         (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
561         * extension.h (enum frame_filter_flag): Rename from
562         frame_filter_flags.
563         (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
564         (apply_ext_lang_frame_filter): Change type of "flags".
565         * extension.c (apply_ext_lang_frame_filter): Change type of
566         "flags".
567         * extension-priv.h (struct extension_language_ops)
568         <apply_frame_filter>: Change type of "flags".
569
570 2018-02-26  Tom Tromey  <tom@tromey.com>
571
572         PR python/16497:
573         * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag.  Fix
574         off-by-one in py_end computation.
575         * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
576         PRINT_MORE_FRAMES.
577         * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
578         constant.
579
580 2018-02-26  Tom Tromey  <tom@tromey.com>
581
582         * dwarf2read.c (struct variant_field): New.
583         (struct nextfield) <variant>: New field.
584         (dwarf2_add_field): Handle DW_TAG_variant_part.
585         (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
586         discriminated union.
587         (read_structure_type): Handle DW_TAG_variant_part.
588         (handle_struct_member_die): New function, extracted from
589         process_structure_scope.  Handle DW_TAG_variant.
590         (process_structure_scope): Handle discriminated unions.  Call
591         handle_struct_member_die.
592
593 2018-02-26  Tom Tromey  <tom@tromey.com>
594
595         * rust-lang.h (rust_last_path_segment): Declare.
596         * rust-lang.c (rust_last_path_segment): Now public.  Change
597         contract.
598         (struct disr_info): Remove.
599         (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
600         (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
601         (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
602         (rust_enum_p, rust_enum_variant): New function.
603         (rust_underscore_fields): Remove "offset" parameter.
604         (rust_print_enum): New function.
605         (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
606         <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
607         (rust_print_struct_def): Add "for_rust_enum" parameter.  Handle
608         enums.
609         (rust_internal_print_type): New function, from rust_print_type.
610         Remove enum code.
611         (rust_print_type): Call rust_internal_print_type.
612         (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
613         Update enum handling.
614         * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
615         (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
616         (rust_union_quirks): New functions.
617         (process_full_comp_unit, process_full_type_unit): Call
618         rust_union_quirks.
619         (process_structure_scope): Update rust_unions if necessary.
620
621 2018-02-26  Tom Tromey  <tom@tromey.com>
622
623         * value.h (value_union_variant): Declare.
624         * valops.c (value_union_variant): New function.
625         * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
626         (struct discriminant_info): New.
627         (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
628         enumerator.
629         (struct main_type) <flag_discriminated_union>: New field.
630
631 2018-02-26  Tom Tromey  <tom@tromey.com>
632
633         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
634         unittests/unpack-selftests.c.
635         * unittests/unpack-selftests.c: New file.
636         * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
637
638 2018-02-26  Yao Qi  <yao.qi@linaro.org>
639
640         * dwarf2read.c (struct partial_die_info) <read>: New method.
641         (read_partial_die): Remove the declaration.
642         (load_partial_dies): Update.
643         (partial_die_info::partial_die_info):
644         (read_partial_die): Change it to partial_die_info::read.
645
646 2018-02-26  Yao Qi  <yao.qi@linaro.org>
647
648         * dwarf2read.c (struct partial_die_info) <fixup>: New method.
649         (fixup_partial_die): Remove declaration.
650         (scan_partial_symbols): Update.
651         (partial_die_parent_scope): Likewise.
652         (partial_die_full_name): Likewise.
653         (fixup_partial_die): Change it to partial_die_info::fixup.
654
655 2018-02-26  Yao Qi  <yao.qi@linaro.org>
656
657         * dwarf2read.c (read_partial_die): Update the declaration.
658         (load_partial_dies): Caller update.
659         (read_partial_die): Remove one argument abbrev_len.
660
661 2018-02-26  Yao Qi  <yao.qi@linaro.org>
662
663         * dwarf2read.c (struct partial_die_info): Add ctor, delete
664         assignment operator.
665         (load_partial_dies): Use ctor and copy ctor.
666         (read_partial_die): Update.
667         (dwarf2_cu::find_partial_die): Use ctor.
668
669 2018-02-26  Yao Qi  <yao.qi@linaro.org>
670
671         * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
672         (find_partial_die_in_comp_unit): Change it to
673         dwarf2_cu::find_partial_die.
674         (find_partial_die): Update.
675
676 2018-02-26  Yao Qi  <yao.qi@linaro.org>
677
678         * dwarf2read.c (read_partial_die): Remove the code checking abbrev
679         is NULL.
680
681 2018-02-26  Yao Qi  <yao.qi@linaro.org>
682
683         * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
684
685 2018-02-26  Alan Hayward  <alan.hayward@arm.com>
686
687         * arch/amd64.h: Use common/tdesc.h.
688         * arch/i386.c: Likewise.
689         * arch/i386.h: Likewise.
690         * arch/tic6x.c: Likewise.
691         * arch/tdesc.h: Move file from here...
692         * common/tdesc.h: ...to here.
693         * features/aarch64-core.c: Regenerate.
694         * features/aarch64-fpu.c: Regenerate.
695         * features/i386/32bit-avx.c: Regenerate.
696         * features/i386/32bit-avx512.c: Regenerate.
697         * features/i386/32bit-core.c: Regenerate.
698         * features/i386/32bit-linux.c: Regenerate.
699         * features/i386/32bit-mpx.c: Regenerate.
700         * features/i386/32bit-pkeys.c: Regenerate.
701         * features/i386/32bit-sse.c: Regenerate.
702         * features/i386/64bit-avx.c: Regenerate.
703         * features/i386/64bit-avx512.c: Regenerate.
704         * features/i386/64bit-core.c: Regenerate.
705         * features/i386/64bit-linux.c: Regenerate.
706         * features/i386/64bit-mpx.c: Regenerate.
707         * features/i386/64bit-pkeys.c: Regenerate.
708         * features/i386/64bit-segments.c: Regenerate.
709         * features/i386/64bit-sse.c: Regenerate.
710         * features/i386/x32-core.c: Regenerate.
711         * features/tic6x-c6xp.c: Regenerate.
712         * features/tic6x-core.c: Regenerate.
713         * features/tic6x-gp.c: Regenerate.
714         * target-descriptions.c: Use common/tdesc.h.
715         * target-descriptions.h: Likewise.
716
717 2018-02-24  Tom Tromey  <tom@tromey.com>
718
719         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
720         (try_thread_db_load_from_dir, thread_db_load_search): Use
721         std::string.
722         (info_auto_load_libthread_db_compare): Return bool.  Change
723         argument types.
724         (info_auto_load_libthread_db): Use std::vector, std::string.
725         Remove cleanups.
726
727 2018-02-24  Tom Tromey  <tom@tromey.com>
728
729         * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
730         std::string.
731         * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
732         std::string*.
733         * gdbarch.c: Rebuild.
734         * gdbarch.h: Rebuild.
735         * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
736         * arch-utils.h (default_fast_tracepoint_valid_at): Update.
737         * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
738         std::string*.
739
740 2018-02-23  Simon Marchi  <simon.marchi@polymtl.ca>
741
742         * gdbtypes.h (sect_offset): Change type to uint64_t.
743         (sect_offset_str): New function.
744         * dwarf2read.c (create_addrmap_from_aranges): Use
745         sect_offset_str.
746         (error_check_comp_unit_head): Likewise.
747         (create_debug_type_hash_table): Likewise.
748         (read_cutu_die_from_dwo): Likewise.
749         (init_cutu_and_read_dies): Likewise.
750         (init_cutu_and_read_dies_no_follow): Likewise.
751         (process_psymtab_comp_unit_reader): Likewise.
752         (partial_die_parent_scope): Likewise.
753         (peek_die_abbrev): Likewise.
754         (process_queue): Likewise.
755         (dwarf2_physname): Likewise.
756         (read_namespace_alias): Likewise.
757         (read_import_statement): Likewise.
758         (create_dwo_cu_reader): Likewise.
759         (create_cus_hash_table): Likewise.
760         (lookup_dwo_cutu): Likewise.
761         (inherit_abstract_dies): Likewise.
762         (read_func_scope): Likewise.
763         (read_call_site_scope): Likewise.
764         (dwarf2_add_member_fn): Likewise.
765         (read_common_block): Likewise.
766         (read_module_type): Likewise.
767         (read_typedef): Likewise.
768         (read_subrange_type): Likewise.
769         (load_partial_dies): Likewise.
770         (read_partial_die): Likewise.
771         (find_partial_die): Likewise.
772         (read_str_index): Likewise.
773         (dwarf2_string_attr): Likewise.
774         (build_error_marker_type): Likewise.
775         (lookup_die_type): Likewise.
776         (dump_die_shallow): Likewise.
777         (follow_die_ref): Likewise.
778         (dwarf2_fetch_die_loc_sect_off): Likewise.
779         (dwarf2_fetch_constant_bytes): Likewise.
780         (follow_die_sig): Likewise.
781         (get_signatured_type): Likewise.
782         (get_DW_AT_signature_type): Likewise.
783         (dwarf2_find_containing_comp_unit): Likewise.
784         (set_die_type): Likewise.
785
786 2018-02-21  John Baldwin  <jhb@FreeBSD.org>
787
788         * arch/aarch64.c: Include "common-defs.h".
789         * arch/amd64.c: Likewise.
790         * arch/i386.c: Likewise.
791
792 2018-02-21  Tom Tromey  <tom@tromey.com>
793
794         * value.h: (extract_field_op): Update.
795         * eval.c (extract_field_op): Return a const char *.
796         * expression.h (parse_expression_for_completion): Update.
797         * completer.c (complete_expression): Update.
798         (add_struct_fields): Make fieldname const.
799         * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
800         (mark_completion_tag, parse_exp_in_context_1): Update.
801         (parse_expression_for_completion): Change "name" to
802         unique_xmalloc_ptr*.
803
804 2018-02-21  Tom Tromey  <tom@tromey.com>
805
806         * infcall.c (call_function_by_hand_dummy): Use std::vector.
807
808 2018-02-21  Yao Qi  <yao.qi@linaro.org>
809
810         * avr-tdep.c (avr_read_pc): Change parameter type to
811         readable_regcache.
812         * gdbarch.sh (read_pc): Likewise.
813         * gdbarch.c: Re-generated.
814         * gdbarch.h: Re-generated.
815         * hppa-tdep.c (hppa_read_pc): Change parameter type to
816         readable_regcache.
817         * ia64-tdep.c (ia64_read_pc): Likewise.
818         * mips-tdep.c (mips_read_pc): Likewise.
819         * spu-tdep.c (spu_read_pc): Likewise.
820
821 2018-02-21  Yao Qi  <yao.qi@linaro.org>
822
823         * Makefile.in (COMMON_SFILES): Add regcache-dump.c
824         * regcache-dump.c: New file.
825         * regcache.c: Move register_dump to regcache-dump.c.
826         (maintenance_print_registers): Likewise.
827         (maintenance_print_raw_registers): Likewise.
828         (maintenance_print_cooked_registers): Likewise.
829         (maintenance_print_register_groups): Likewise.
830         (maintenance_print_remote_registers): Likewise.
831         (_initialize_regcache): Likewise.
832         * regcache.h (register_dump): Moved from regcache.c.
833
834 2018-02-21  Yao Qi  <yao.qi@linaro.org>
835
836         * regcache.c (regcache::regcache): Update.
837         (regcache::invalidate): Move it to detached_regcache::invalidate.
838         (get_thread_arch_aspace_regcache): Update.
839         (regcache::raw_update): Update.
840         (regcache::cooked_read): Remove some code.
841         (regcache::cooked_read_value): Likewise.
842         (regcache::raw_write): Remove assert on m_readonly_p.
843         (regcache::raw_supply_integer): Move it to
844         detached_regcache::raw_supply_integer.
845         (regcache::raw_supply_zeroed): Likewise.
846         * regcache.h (detached_regcache) <raw_supply_integer>: New
847         declaration.
848         <raw_supply_zeroed, invalidate>: Likewise.
849         (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
850         <invalidate>: Likewise.
851         <m_readonly_p>: Removed.
852
853 2018-02-21  Yao Qi  <yao.qi@linaro.org>
854
855         * infcmd.c (get_return_value): Let stop_regs point to
856         get_current_regcache.
857         * regcache.c (regcache::regcache): Remove.
858         (register_dump_reg_buffer): New class.
859         (regcache_print): Adjust.
860         * regcache.h (regcache): Remove constructors.
861
862 2018-02-21  Yao Qi  <yao.qi@linaro.org>
863
864         * regcache.c (class register_dump): New class.
865         (register_dump_regcache, register_dump_none): New class.
866         (register_dump_remote, register_dump_groups): New class.
867         (regcache_print): Update.
868         * regcache.h (regcache_dump_what): Move it to regcache.c.
869         (regcache) <dump>: Remove.
870
871 2018-02-21  Yao Qi  <yao.qi@linaro.org>
872
873         * jit.c (struct jit_unwind_private) <regcache>: Change its type to
874          reg_buffer_rw *.
875         (jit_unwind_reg_set_impl): Call raw_supply.
876         (jit_frame_sniffer): Use reg_buffer_rw.
877         * record-full.c (record_full_core_regbuf): Change its type.
878         (record_full_core_open_1): Use reg_buffer_rw.
879         (record_full_close): Likewise.
880         (record_full_core_fetch_registers): Use regcache->raw_supply.
881         (record_full_core_store_registers): Likewise.
882         * regcache.c (regcache::get_register_status): Move it to
883         reg_buffer.
884         (regcache_raw_set_cached_value): Remove.
885         (regcache::raw_set_cached_value): Remove.
886         (regcache::raw_write): Call raw_supply.
887         (regcache::raw_supply): Move it to reg_buffer_rw.
888         * regcache.h (regcache_raw_set_cached_value): Remove.
889         (reg_buffer_rw): New class.
890
891 2018-02-21  Yao Qi  <yao.qi@linaro.org>
892
893         * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
894         readonly_detached_regcache.
895         (dummy_frame_prev_register): Use regcache->cooked_read.
896         * frame.c (frame_save_as_regcache): Change return type.
897         (frame_pop): Update.
898         * frame.h (frame_save_as_regcache): Update declaration.
899         * inferior.h (get_infcall_suspend_state_regcache): Update
900         declaration.
901         * infrun.c (infcall_suspend_state) <registers>: use
902         readonly_detached_regcache.
903         (save_infcall_suspend_state): Don't use regcache_dup.
904         (get_infcall_suspend_state_regcache): Change return type.
905         * linux-fork.c (struct fork_info) <savedregs>: Change to
906         readonly_detached_regcache.
907         <pc>: New field.
908         (fork_save_infrun_state): Don't use regcache_dup.
909         (info_checkpoints_command): Adjust.
910         * mi/mi-main.c (register_changed_p): Update declaration.
911         (mi_cmd_data_list_changed_registers): Use
912         readonly_detached_regcache.
913         (register_changed_p): Change parameter type to
914         readonly_detached_regcache.
915         * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
916         readonly_detached_regcache.
917         (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
918         * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
919         New.
920         (regcache::save): Move it to reg_buffer.
921         (regcache::restore): Change parameter type.
922         (regcache_dup): Remove.
923         * regcache.h (reg_buffer) <save>: New method.
924         (readonly_detached_regcache): New class.
925         * spu-tdep.c (spu2ppu_cache) <regcache>: Use
926         readonly_detached_regcache.
927         (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
928
929 2018-02-21  Yao Qi  <yao.qi@linaro.org>
930
931         * frame.c (frame_save_as_regcache): Use regcache method save.
932         (frame_pop): Use regcache method restore.
933         * infrun.c (restore_infcall_suspend_state): Likewise.
934         * linux-fork.c (fork_load_infrun_state): Likewise.
935         * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
936         save.
937         * regcache.c (regcache_save): Remove.
938         (regcache::restore): More asserts.
939         (regcache_cpy): Remove.
940         * regcache.h (regcache_save): Remove the declaration.
941         (regcache::restore): Move from private to public.
942         Remove the friend declaration of regcache_cpy.
943         (regcache_cpy): Remove declaration.
944
945 2018-02-21  Yao Qi  <yao.qi@linaro.org>
946
947         * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
948         parameter type to 'readable_regcache *'.
949         * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
950         * arm-tdep.c (arm_neon_quad_read): Likewise.
951         (arm_pseudo_read): Likewise.
952         * avr-tdep.c (avr_pseudo_register_read): Likewise.
953         * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
954         * frv-tdep.c (frv_pseudo_register_read): Likewise.
955         * gdbarch.c: Re-generated.
956         * gdbarch.h: Re-generated.
957         * gdbarch.sh (pseudo_register_read): Change parameter type to
958         'readable_regcache *'.
959         (pseudo_register_read_value): Likewise.
960         * h8300-tdep.c (pseudo_from_raw_register): Likewise.
961         (h8300_pseudo_register_read): Likewise.
962         * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
963         * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
964         (i386_pseudo_register_read_into_value): Likewise.
965         (i386_pseudo_register_read_value): Likewise.
966         * i386-tdep.h (i386_pseudo_register_read_into_value): Update
967         declaration.
968         * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
969         * m32c-tdep.c (m32c_raw_read): Likewise.
970         (m32c_read_flg): Likewise.
971         (m32c_banked_register): Likewise.
972         (m32c_banked_read): Likewise.
973         (m32c_sb_read): Likewise.
974         (m32c_part_read): Likewise.
975         (m32c_cat_read): Likewise.
976         (m32c_r3r2r1r0_read): Likewise.
977         (m32c_pseudo_register_read): Likewise.
978         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
979         * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
980         (mep_pseudo_cr64_read): Likewise.
981         (mep_pseudo_register_read): Likewise.
982         * mips-tdep.c (mips_pseudo_register_read): Likewise.
983         * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
984         * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
985         * regcache.c (regcache::raw_read): Move it to readable_regcache.
986         (regcache::cooked_read): Likewise.
987         (regcache::cooked_read_value): Likewise.
988         (regcache_cooked_read_signed):
989         (regcache::cooked_read): Likewise.
990         * regcache.h (readable_regcache): New class.
991         (regcache): Inherit readable_regcache.  Move some methods to
992         readable_regcache.
993         * rl78-tdep.c (rl78_pseudo_register_read): Change
994         parameter type to 'readable_regcache *'.
995         * rs6000-tdep.c (do_regcache_raw_read): Remove.
996         (e500_pseudo_register_read): Change parameter type to
997         'readable_regcache *'.
998         (dfp_pseudo_register_read): Likewise.
999         (vsx_pseudo_register_read): Likewise.
1000         (efpr_pseudo_register_read): Likewise.
1001         * s390-tdep.c (s390_pseudo_register_read): Likewise.
1002         * sh-tdep.c (sh_pseudo_register_read): Likewise.
1003         * sh64-tdep.c (pseudo_register_read_portions): Likewise.
1004         (sh64_pseudo_register_read): Likewise.
1005         * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
1006         * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
1007         * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
1008         (spu_pseudo_register_read): Likewise.
1009         * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
1010         (xtensa_pseudo_register_read): Likewise.
1011
1012 2018-02-21  Yao Qi  <yao.qi@linaro.org>
1013
1014         * regcache.c (regcache::regcache): Call reg_buffer ctor.
1015         (regcache::arch): Move it to reg_buffer::arch.
1016         (regcache::register_buffer): Likewise.
1017         (regcache::assert_regnum): Likewise.
1018         (regcache::num_raw_registers): Likewise.
1019         * regcache.h (reg_buffer): New class.
1020         (regcache): Inherit reg_buffer.
1021
1022 2018-02-20  Simon Marchi  <simon.marchi@ericsson.com>
1023
1024         * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
1025         gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
1026
1027 2018-02-20  Markus Metzger  <markus.t.metzger@intel.com>
1028
1029         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
1030
1031 2018-02-19  Alan Hayward  <alan.hayward@arm.com>
1032
1033         * Makefile.in: (COMMON_SFILES): Add common/*.c files.
1034         (SFILES): Remove common/*.c files.
1035         (COMMON_OBS): Remove some *.o files built from common/*.c files.
1036         * common/common.host: Add common reference.
1037         * configure.ac: Likewise.
1038         * configure: Regenerate.
1039
1040 2018-02-16  Yao Qi  <yao.qi@linaro.org>
1041
1042         * block.c (block_namespace_info): Inherit allocate_on_obstack.
1043         (block_initialize_namespace): Use new.
1044         * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
1045         (dwarf2_free_objfile): Use delete.
1046         * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
1047         (copy_type_recursive): Use new.
1048         * gdb_obstack.h (allocate_on_obstack): New.
1049
1050 2018-02-15  Yao Qi  <yao.qi@linaro.org>
1051
1052         PR gdb/22849
1053         * inferior.c (exit_inferior_1): Reset inf->control.
1054
1055 2018-02-15  Joel Brobecker  <brobecker@adacore.com>
1056
1057         * ada-lang.c (ada_to_fixed_value_create): Delete advance
1058         declaration.
1059
1060 2018-02-14  Pedro Alves  <palves@redhat.com>
1061
1062         * frame-unwind.c (frame_unwind_try_unwinder): Always call
1063         frame_cleanup_after_sniffer on exception.
1064
1065 2018-02-14  Tom Tromey  <tom@tromey.com>
1066
1067         * solist.h (struct target_so_ops) <bfd_open>: Make pathname
1068         const.
1069         (solib_bfd_open): Make pathname const.
1070         * solib.c (solib_bfd_open): Make pathname const.
1071         * solib-spu.c (spu_bfd_fopen): Make name const.
1072         (spu_bfd_open): Make pathname const.
1073         * solib-darwin.c (darwin_bfd_open): Make pathname const.
1074         * solib-aix.c (solib_aix_bfd_open): Make pathname const.
1075
1076 2018-02-14  Tom Tromey  <tom@tromey.com>
1077
1078         * symfile.c (symfile_bfd_open): Update.
1079         * source.h (openp, source_full_path_of, find_and_open_source):
1080         Change argument type to unique_xmalloc_ptr.
1081         * source.c (openp): Take a unique_xmalloc_ptr.
1082         (source_full_path_of, find_and_open_source): Likewise.
1083         (open_source_file, symtab_to_fullname): Update.
1084         * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
1085         unique_xmalloc_ptr.
1086         * solib.c (solib_find_1): Use unique_xmalloc_ptr.
1087         (exec_file_find): Update.
1088         * psymtab.c (psymtab_to_fullname): Update.
1089         * nto-tdep.h (nto_find_and_open_solib): Update.
1090         * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
1091         unique_xmalloc_ptr.
1092         * exec.c (exec_file_attach): Update.
1093         * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
1094         * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
1095
1096 2018-02-14  Tom Tromey  <tom@tromey.com>
1097
1098         * solib.c: Include source.h.
1099         * nto-tdep.c: Include source.h.
1100         * mi/mi-cmd-env.c: Include source.h.
1101         * infcmd.c: Include source.h.
1102         * exec.c: Include source.h.
1103         * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
1104         (add_path, directory_switch, source_path, init_source_path): Move
1105         declarations...
1106         * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
1107         (add_path, directory_switch, source_path, init_source_path):
1108         ...here.
1109
1110 2018-02-14  Tom Tromey  <tom@tromey.com>
1111
1112         * solist.h (exec_file_find, solib_find): Return
1113         unique_xmalloc_ptr.
1114         (solib_bfd_fopen): Take a const char *.
1115         * solib.c (solib_find_1): Return unique_xmalloc_ptr.
1116         (exec_file_find, solib_find): Likewise.
1117         (solib_bfd_fopen): Do not take ownership of "pathname".
1118         (solib_bfd_open): Use unique_xmalloc_ptr.
1119         * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
1120         * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
1121         * infrun.c (follow_exec): Use unique_xmalloc_ptr.
1122         * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
1123
1124 2018-02-14  Joel Brobecker  <brobecker@adacore.com>
1125
1126         * ada-lang.c (name_match_type_from_name): Remove reference to
1127         ada_name_for_lookup in function's documentation.
1128         * ada-lang.h (ada_name_for_lookup): Delete declaration.
1129
1130 2018-02-13  Simon Marchi  <simon.marchi@polymtl.ca>
1131
1132         * defs.h (enum openp_flags): New enum.
1133         (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
1134         Move to enum openp_flags.
1135         (openp_flags): New enum flags.
1136         (openp): Change parameter type to openp_flags.
1137         * source.c (openp): Change parameter type to openp_flags.
1138         * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
1139         * dwarf2read.c (try_open_dwop_file): Use openp_flags.
1140
1141 2018-02-13  Simon Marchi  <simon.marchi@polymtl.ca>
1142
1143         * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
1144         per-command.
1145
1146 2018-02-12  Andrew Burgess  <andrew.burgess@embecosm.com>
1147
1148         * dwarf2read.c (dwarf2_release_queue): Delete function, move body
1149         into...
1150         (class dwarf2_queue_guard): ...the destructor of this new class.
1151         (dw2_do_instantiate_symtab): Create instance of the new class
1152         dwarf2_queue_guard, remove cleanup.
1153
1154 2018-02-09  Tom Tromey  <tom@tromey.com>
1155
1156         * source.c (find_source_lines): Don't reference past the end of
1157         the vector.
1158
1159 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
1160
1161         * remote.c (remote_btrace_maybe_reopen): Change error message.
1162         * btrace.c (btrace_enable): Likewise.
1163         (parse_xml_btrace): Likewise.
1164         (parse_xml_btrace_conf): Likewise.
1165
1166 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
1167
1168         * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
1169         (linux_enable_pt, linux_enable_bts): Call
1170         diagnose_perf_event_open_fail.
1171
1172 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
1173
1174         * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
1175         Remove parameter and change return type.  Update callers.  Move it.
1176         (linux_enable_bts, linux_enable_pt): Improve error message.
1177         (linux_enable_pt): Remove zero buffer size check.
1178         (linux_enable_btrace): Improve error messages.  Remove NULL return
1179         check.
1180
1181 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
1182
1183         * btrace.c (btrace_enable): Remove target_supports_btrace call.
1184         * nat/linux-btrace.c (perf_event_pt_event_type): Move.
1185         (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
1186         (linux_supports_pt, linux_supports_btrace): Remove.
1187         (linux_enable_bts): Call cpu_supports_bts.
1188         * nat/linux-btrace.h (linux_supports_btrace): Remove.
1189         * remote.c (remote_supports_btrace): Remove.
1190         (init_remote_ops): Remove remote_supports_btrace.
1191         * target-delegates.c: Regenerated.
1192         * target.c (target_supports_btrace): Remove.
1193         * target.h (target_ops) <to_supports_btrace>: Remove
1194         (target_supports_btrace): Remove.
1195         * x86-linux-nat.c (x86_linux_create_target): Remove
1196         linux_supports_btrace.
1197
1198 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
1199
1200         * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
1201         btrace failed.
1202         * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
1203         exception and use message in own exception.
1204
1205 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
1206
1207         * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
1208         (perf_event_pt_event_type): Use gdb_file_up.
1209         (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
1210         scoped_fd, and scoped_mmap.
1211
1212 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
1213
1214         * common/scoped_mmap.h: New.
1215         * unittests/scoped_mmap-selftest.c: New.
1216         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1217         unittests/scoped_mmap-selftest.c.
1218
1219 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
1220
1221         * common/scoped_fd.h: New.
1222         * unittests/scoped_fd-selftest.c: New.
1223         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1224         unittests/scoped_fd-selftest.c.
1225
1226 2018-02-09  Tom Tromey  <tom@tromey.com>
1227
1228         * auto-load.c (auto_load_section_scripts): Use
1229         gdb::unique_xmalloc_ptr.
1230
1231 2018-02-09  Tom Tromey  <tom@tromey.com>
1232
1233         * auto-load.c (execute_script_contents): Use std::string.
1234
1235 2018-02-09  Joel Brobecker  <brobecker@adacore.com>
1236
1237         * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
1238         Python function, rather than a new command.
1239
1240 2018-02-08  Tom Tromey  <tom@tromey.com>
1241
1242         * solib.c (solib_find_1): Use std::string.
1243         (solib_bfd_fopen): Use unique_xmalloc_ptr.
1244
1245 2018-02-08  Tom Tromey  <tom@tromey.com>
1246
1247         * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
1248
1249 2018-02-08  Tom Tromey  <tom@tromey.com>
1250
1251         * source.c (find_source_lines): Use gdb::def_vector.
1252
1253 2018-02-08  Tom Tromey  <tom@tromey.com>
1254
1255         * macrocmd.c (struct temporary_macro_definition): New.
1256         (macro_define_command): Use temporary_macro_definition.  Remove
1257         cleanups.
1258         (free_macro_definition_ptr): Remove.
1259
1260 2018-02-08  Tom Tromey  <tom@tromey.com>
1261
1262         * macroexp.c (maybe_expand): Use std::string.
1263
1264 2018-02-08  Tom Tromey  <tom@tromey.com>
1265
1266         * macroexp.c (struct macro_buffer): Add initializers for some
1267         members.
1268         (init_buffer, init_shared_buffer, free_buffer)
1269         (free_buffer_return_text): Remove.
1270         (macro_buffer): New constructors.
1271         (~macro_buffer): New destructor.
1272         (macro_buffer::set_shared): New method.
1273         (macro_buffer::resize_buffer, macro_buffer::appendc)
1274         (macro_buffer::appendmem): Now methods, not free functions.
1275         (set_token, append_tokens_without_splicing, stringify)
1276         (macro_stringify): Update.
1277         (gather_arguments): Change return type.  Remove argc_p argument,
1278         add args_ptr argument.  Use std::vector.
1279         (substitute_args): Remove argc argument.  Accept std::vector.
1280         (expand): Update.  Use std::vector.
1281         (scan, macro_expand, macro_expand_next): Update.
1282
1283 2018-02-08  Tom Tromey  <tom@tromey.com>
1284
1285         * symtab.c (default_collect_symbol_completion_matches_break_on):
1286         Use unique_xmalloc_ptr.
1287         * macroscope.h: (sal_macro_scope, user_macro_scope)
1288         (default_macro_scope): Return unique_xmalloc_ptr.
1289         * macroscope.c (sal_macro_scope, user_macro_scope)
1290         (default_macro_scope): Return unique_xmalloc_ptr.
1291         * macroexp.h (macro_expand, macro_expand_once): Return
1292         unique_xmalloc_ptr.
1293         * macroexp.c (macro_expand, macro_expand_once): Return
1294         unique_xmalloc_ptr.
1295         * macrocmd.c (macro_expand_command, macro_expand_once_command)
1296         (info_macro_command, info_macros_command): Use
1297         unique_xmalloc_ptr.
1298         * compile/compile-c-support.c (write_macro_definitions): Use
1299         unique_xmalloc_ptr.
1300         * c-exp.y (c_parse): Use unique_xmalloc_ptr.
1301
1302 2018-02-07  Simon Marchi  <simon.marchi@ericsson.com>
1303
1304         * value.c (value_static_field): Assign field type instead of
1305         containing type when returning an optimized out value.
1306
1307 2018-02-06  Yao Qi  <yao.qi@linaro.org>
1308
1309         * ft32-tdep.c (ft32_read_pc): Remove.
1310         (ft32_write_pc): Remove.
1311         (ft32_gdbarch_init): Update.
1312         * m32r-tdep.c (m32r_read_pc): Remove.
1313         (m32r_gdbarch_init): Update.
1314         * mep-tdep.c (mep_read_pc): Remove.
1315         (mep_gdbarch_init): Update.
1316         * microblaze-tdep.c (microblaze_write_pc): Remove.
1317         (microblaze_gdbarch_init): Update.
1318         * mn10300-tdep.c (mn10300_read_pc): Remove.
1319         (mn10300_write_pc): Remove.
1320         (mn10300_gdbarch_init): Update.
1321         * moxie-tdep.c (moxie_read_pc): Remove.
1322         (moxie_write_pc): Remove.
1323         (moxie_gdbarch_init): Update.
1324
1325 2018-02-06  Yao Qi  <yao.qi@linaro.org>
1326
1327         * expprint.c (print_subexp_standard): Handle
1328         OP_F77_UNDETERMINED_ARGLIST.
1329         (dump_subexp_body_standard): Likewise.
1330
1331 2018-02-05  Alan Hayward  <alan.hayward@arm.com>
1332
1333         * target-descriptions.c (tdesc_element_visitor) Add empty
1334         implementations.
1335         (tdesc_type): Move make_gdb_type from here.
1336         (tdesc_type_builtin): Likewise.
1337         (tdesc_type_vector): Likewise.
1338         (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
1339         (make_gdb_type_struct): Move from tdesc_type_with_fields.
1340         (make_gdb_type_union): Likewise.
1341         (make_gdb_type_flags): Likewise.
1342         (make_gdb_type_enum): Likewise.
1343         (make_gdb_type): New function.
1344         (tdesc_register_type): Use static make_gdb_type.
1345
1346 2018-02-05  Ruslan Kabatsayev <b7.10110111@gmail.com>
1347
1348         * infcmd.c (default_print_one_register_info): Align natural-format
1349         column values consistently one under another.
1350         (pad_to_column): New function.
1351
1352 2018-02-05  Joel Brobecker  <brobecker@adacore.com>
1353
1354         * dwarf2read.c (dwarf2_physname): Move commment.
1355
1356 2018-02-01  Leszek Swirski  <leszeks@google.com>
1357
1358         * varobj.c (varobj_formatted_print_options): Allow recursive
1359         pretty printing if pretty printing is enabled.
1360
1361 2018-02-01  Leszek Swirski  <leszeks@google.com>
1362
1363         * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
1364         names after a structop as a filename.
1365
1366 2018-02-01  Yao Qi  <yao.qi@linaro.org>
1367
1368         * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
1369         (arm_record_coproc_data_proc): Likewise.
1370
1371 2018-02-01  Yao Qi  <yao.qi@linaro.org>
1372
1373         * arm-tdep.c (arm_record_extension_space): Change ret to signed.
1374
1375 2018-01-31  Nikola Prica  <nikola.prica@rt-rk.com>
1376
1377         * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
1378         assign shifted lr_reg to fdata->lr_register when lr_reg is set.
1379
1380 2018-01-31  Pedro Alves  <palves@redhat.com>
1381
1382         * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
1383         * inflow.c (child_terminal_save_inferior): Wrap reference to
1384         tcgetpgrp in HAVE_TERMIOS_H.
1385         (child_interrupt, child_pass_ctrlc): Wrap references to signal in
1386         _WIN32.
1387         * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
1388         always iterate over all inferiors.
1389         (gdbsim_cntrl_c): Adjust.
1390         * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
1391
1392 2018-01-31  Joel Brobecker  <brobecker@adacore.com>
1393
1394         * gdbtypes.c (lookup_array_range_type): Make sure the array's
1395         index type is objfile-owned if the element type is as well.
1396
1397 2018-01-31  Joel Brobecker  <brobecker@adacore.com>
1398
1399         GDB 8.1 released.
1400
1401 2018-01-30  Philipp Rudo  <prudo@linux.vnet.ibm.com>
1402
1403         * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
1404         "features/s390x-linux64.c".
1405         (_initialize_s390_linux_tdep): Remove initialization of tdescs
1406         s390_linux32 and s390x_linux64.
1407         (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
1408         default tdesc.
1409         * s390-tdep.c: Include "features/s390-linux32.c" and
1410         "features/s390x-linux64.c".
1411         (s390_tdesc_valid): Add check for tdesc_has_registers.
1412         (s390_gdbarch_init): Make sure there is always a valid tdesc.
1413         (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
1414         tdesc_s390x_linux64.
1415         * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
1416         tdesc_s390x_linux64 to...
1417         * s390-tdep.h: ...here.
1418
1419 2018-01-30  Pedro Alves  <palves@redhat.com>
1420
1421         PR gdb/13211
1422         * config.in, configure: Regenerate.
1423         * configure.ac: Check for getpgid.
1424         * go32-nat.c (go32_pass_ctrlc): New.
1425         (go32_target): Install it.
1426         * inf-child.c (inf_child_target): Install
1427         child_terminal_save_inferior, child_pass_ctrlc and
1428         child_interrupt.
1429         * inf-ptrace.c (inf_ptrace_interrupt): Delete.
1430         (inf_ptrace_target): No longer install it.
1431         * infcmd.c (interrupt_target_1): Adjust.
1432         * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
1433         (child_interrupt): Declare.
1434         (inferior::terminal_state): New.
1435         * inflow.c (struct terminal_info): Update comments.
1436         (inferior_process_group): Delete.
1437         (terminal_is_ours): Delete.
1438         (gdb_tty_state): New.
1439         (child_terminal_init): Adjust.
1440         (is_gdb_terminal, sharing_input_terminal_1)
1441         (sharing_input_terminal): New functions.
1442         (child_terminal_inferior): Adjust.  Use sharing_input_terminal.
1443         Set the process's actual process group in the foreground if
1444         possible.  Handle is_ours_for_output/is_ours distinction.  Don't
1445         mark terminal as the inferior's if not sharing GDB's terminal.
1446         Don't check attach_flag.
1447         (child_terminal_ours_for_output, child_terminal_ours): Adjust to
1448         pass down a target_terminal_state.
1449         (child_terminal_save_inferior): New, factored out from ...
1450         (child_terminal_ours_1): ... this.  Handle
1451         target_terminal_state::is_ours_for_output.
1452         (child_interrupt, child_pass_ctrlc): New.
1453         (inflow_inferior_exit): Clear the inferior's terminal_state.
1454         (copy_terminal_info): Copy the inferior's terminal state.
1455         (_initialize_inflow): Remove reference to terminal_is_ours.
1456         * inflow.h (inferior_process_group): Delete.
1457         * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
1458         * procfs.c (procfs_target): Don't install procfs_interrupt.
1459         (procfs_interrupt): Delete.
1460         * remote.c (remote_serial_quit_handler): Adjust.
1461         (remote_interrupt): Remove ptid parameter.  Adjust.
1462         * target-delegates.c: Regenerate.
1463         * target.c: Include "terminal.h".
1464         (target_terminal::terminal_state): Rename to ...
1465         (target_terminal::m_terminal_state): ... this.
1466         (target_terminal::init): Adjust.
1467         (target_terminal::inferior): Adjust to per-inferior
1468         terminal_state.
1469         (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
1470         (target_terminal::ours, target_terminal::ours_for_output): Use
1471         target_terminal_is_ours_kind.
1472         (target_interrupt): Remove ptid parameter.  Adjust.
1473         (default_target_pass_ctrlc): Adjust.
1474         * target.h (target_ops::to_terminal_save_inferior): New field.
1475         (target_ops::to_interrupt): Remove ptid_t parameter.
1476         (target_interrupt): Remove ptid_t parameter.  Update comment.
1477         (target_pass_ctrlc): Update comment.
1478         * target/target.h (target_terminal_state): New scoped enum,
1479         factored out of ...
1480         (target_terminal::terminal_state): ... here.
1481         (target_terminal::inferior): Update comments.
1482         (target_terminal::restore_inferior): New.
1483         (target_terminal::is_inferior, target_terminal::is_ours)
1484         (target_terminal::is_ours_for_output): Adjust.
1485         (target_terminal::scoped_restore_terminal_state): Adjust to
1486         rename, and call restore_inferior() instead of inferior().
1487         (target_terminal::scoped_restore_terminal_state::m_state): Change
1488         type.
1489         (target_terminal::terminal_state): Rename to ...
1490         (target_terminal::m_terminal_state): ... this and change type.
1491
1492 2018-01-30  Pedro Alves  <palves@redhat.com>
1493
1494         * linux-nat.c (wait_for_signal): New function.
1495         (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
1496         directly.
1497         (async_terminal_is_ours)
1498         (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
1499         (linux_nat_add_target): Don't override
1500         to_terminal_inferior/to_terminal_ours.
1501
1502 2018-01-29  Sergio Durigan Junior  <sergiodj@redhat.com>
1503
1504         * remote.c (remote_follow_fork): Don't call "detach_inferior".
1505
1506 2018-01-28  Simon Marchi  <simon.marchi@ericsson.com>
1507
1508         * dwarf2read.c (free_dwo_files): Add forward-declaration.
1509         (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
1510         dwarf2_per_objfile_free here.
1511         (dwarf2_per_objfile_free): Remove.
1512         (_initialize_dwarf2_read): Don't register
1513         dwarf2_per_objfile_free as a registry cleanup.
1514
1515 2018-01-27  Eli Zaretskii  <eliz@gnu.org>
1516
1517         Avoid compilation errors in MinGW native builds
1518
1519         The error is triggered by including python-internal.h, and the
1520         error message is:
1521
1522              In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
1523                       from build-gnulib/import/math.h:27,
1524                       from d:/usr/Python26/include/pyport.h:235,
1525                       from d:/usr/Python26/include/Python.h:58,
1526                       from python/python-internal.h:94,
1527                       from python/py-arch.c:24:
1528              d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
1529         using ::hypot;
1530                 ^~~~~
1531
1532         This happens because Python headers define 'hypot' to expand t
1533         '_hypot' in the Windows builds.
1534         * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
1535         'hypoth'.  This avoids a compilation error.
1536
1537 2018-01-26  Alan Hayward  <alan.hayward@arm.com>
1538
1539         * MAINTAINERS (Write After Approval): Fix ordering.
1540
1541 2018-01-26  Alan Hayward  <alan.hayward@arm.com>
1542
1543         * MAINTAINERS (Write After Approval): Add Alan Hayward.
1544
1545 2018-01-26  Alan Modra  <amodra@gmail.com>
1546
1547         * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
1548         (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
1549         Remove nop.  Make const.  Comment.
1550         (powerpc32_plt_stub_so_2): New.
1551         (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
1552         Correct count.  Update uses.
1553         (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
1554         Move common code reading PLT entry word.  Correct
1555         powerpc32_plt_stub PLT address calculation.
1556         * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
1557         (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
1558         (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
1559         (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
1560         (ppc64_standard_linkage8): Likewise.
1561         * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
1562         Correct insns description.
1563         * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
1564
1565 2018-01-24  Pedro Alves  <palves@redhat.com>
1566
1567         GCC PR libstdc++/83906
1568         * gdbtypes.c (operator==(const dynamic_prop &,
1569         const dynamic_prop &)): New.
1570         (operator==(const range_bounds &, const range_bounds &)): New.
1571         (check_types_equal): Use them instead of memcmp.
1572         * gdbtypes.h (operator==(const dynamic_prop &,
1573         const dynamic_prop &)): Declare.
1574         (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
1575         (operator==(const range_bounds &, const range_bounds &)): Declare.
1576         (operator!=(const range_bounds &, const range_bounds &)): Declare.
1577
1578 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
1579
1580         * s390-linux-tdep.c (s390_record_address_mask)
1581         (s390_record_calc_disp_common, s390_record_calc_disp)
1582         (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
1583         (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
1584         (s390_process_record): Move to s390-tdep.c.
1585         (s390_linux_init_abi_any): Adjust.
1586         * s390-tdep.c (s390_record_address_mask)
1587         (s390_record_calc_disp_common, s390_record_calc_disp)
1588         (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
1589         (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
1590         (s390_process_record): Moved from s390-linux-tdep.c
1591         (s390_gdbarch_init): Adjust.
1592
1593 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
1594
1595         * s390-linux-nat.c (s390-tdep.h): New include.
1596         * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
1597         (HFILES_NO_SRCDIR): Add s390-tdep.h.
1598         (ALLDEPFILES): Add s390-tdep.c.
1599         * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
1600         * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
1601         * s390-tdep.h: ...this.  New file.
1602         * s390-linux-tdep.c (s390-tdep.h): New include.
1603         (_initialize_s390_tdep): Rename to...
1604         (_initialize_s390_linux_tdep): ...this and adjust.
1605         (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
1606         (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
1607         s390-tdep.h.
1608         (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
1609         (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
1610         (s390_is_partial_instruction, s390_software_single_step)
1611         (is_non_branch_ril, s390_displaced_step_copy_insn)
1612         (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
1613         (s390_prologue_data, s390_addr, s390_store, s390_load)
1614         (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
1615         (s390_register_call_saved, s390_guess_tracepoint_registers)
1616         (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
1617         (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
1618         (s390_pseudo_register_name, s390_pseudo_register_type)
1619         (s390_pseudo_register_read, s390_pseudo_register_write)
1620         (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
1621         (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
1622         (s390_addr_bits_remove, s390_address_class_type_flags)
1623         (s390_address_class_type_flags_to_name)
1624         (s390_address_class_name_to_type_flags, s390_effective_inner_type)
1625         (s390_function_arg_float, s390_function_arg_vector)
1626         (is_power_of_two, s390_function_arg_integer, s390_arg_state)
1627         (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
1628         (s390_frame_align, s390_register_return_value, s390_return_value)
1629         (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
1630         (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
1631         (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
1632         (s390_trad_frame_prev_register, s390_unwind_cache)
1633         (s390_prologue_frame_unwind_cache)
1634         (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
1635         (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
1636         (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
1637         (s390_stub_frame_this_id, s390_stub_frame_prev_register)
1638         (s390_stub_frame_sniffer, s390_stub_frame_unwind)
1639         (s390_frame_base_address, s390_local_base_address)
1640         (s390_frame_base, s390_gcc_target_options)
1641         (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
1642         (s390_validate_reg_range, s390_tdesc_valid)
1643         (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
1644         * s390-tdep.c: ...this.  New file.
1645
1646 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
1647
1648         * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
1649         (s390_process_record, s390_gdbarch_tdep_alloc)
1650         (s390_linux_init_abi_any): Use/set new hook.
1651
1652 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
1653
1654         * s390-linux-tdep.c (osabi.h): New include.
1655         (s390_linux_init_abi_31, s390_linux_init_abi_64)
1656         (s390_linux_init_abi_any): New functions.
1657         (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
1658
1659 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
1660
1661         * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
1662         tdesc_has_registers check
1663
1664 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
1665
1666         * s390-linux-tdep.c (s390_tdesc_valid): New function.
1667         (s390_validate_reg_range): New macro.
1668         (s390_gdbarch_init): Adjust.
1669
1670 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
1671
1672         * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
1673         (s390_gdbarch_tdep_alloc): Adjust.
1674         (s390_gdbarch_init): Adjust.
1675
1676 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
1677
1678         * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
1679         <have_tdb>: Change type to bool.
1680         (s390_gdbarch_tdep_alloc): Adjust.
1681         (s390_gdbarch_init): Adjust.
1682
1683 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
1684
1685         * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
1686         (gdbarch_tdep) <have_upper, have_vx>: New fields.
1687         (s390_gdbarch_tdep_alloc): New function.
1688         (s390_gdbarch_init): Allocate tdep at start and use its fields
1689         instead of separate variables.
1690
1691 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
1692
1693         * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
1694         when looking for cached gdbarch and add comment for remaining.
1695
1696 2018-01-22  Pedro Alves  <palves@redhat.com>
1697             Sergio Durigan Junior  <sergiodj@redhat.com>
1698
1699         * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
1700         case.
1701
1702 2018-01-22  Maciej W. Rozycki  <macro@mips.com>
1703
1704         * MAINTAINERS: Update my company e-mail address.
1705
1706 2018-01-22  Yao Qi  <yao.qi@linaro.org>
1707
1708         * regcache.c (cooked_write_test): New function.
1709         (_initialize_regcache): Register the test.
1710
1711 2018-01-22  Yao Qi  <yao.qi@linaro.org>
1712
1713         * ia64-tdep.c (ia64_pseudo_register_read): Call
1714         regcache->cooked_read instead of regcache_cooked_read_unsigned.
1715         * m32c-tdep.c (m32c_cat_read): Likewise.
1716         (m32c_r3r2r1r0_read): Likewise.
1717         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
1718         * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
1719
1720 2018-01-22  Yao Qi  <yao.qi@linaro.org>
1721
1722         * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
1723         method raw_read instead of regcache_raw_read.
1724         * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
1725         * arm-tdep.c (arm_neon_quad_read): Likewise.
1726         * avr-tdep.c (avr_pseudo_register_read): Likewise.
1727         * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
1728         * frv-tdep.c (frv_pseudo_register_read): Likewise.
1729         * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
1730         * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
1731         (i386_pseudo_register_read_into_value): Likewise.
1732         * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
1733         * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
1734         * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
1735         * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
1736         * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
1737         * sparc-tdep.c (sparc32_pseudo_register_read):  Likewise.
1738         * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
1739         * spu-tdep.c (spu_pseudo_register_read_spu):  Likewise.
1740         * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
1741
1742 2018-01-22  Yao Qi  <yao.qi@linaro.org>
1743
1744         * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
1745         * configure.tgt: Remove target mt.
1746         * mt-tdep.c: Remove.
1747         * regcache.c (cooked_read_test): Remove the check for mt.
1748
1749 2018-01-22  Yao Qi  <yao.qi@linaro.org>
1750
1751         * jit.c (jit_frame_prev_register): Call regcache::cooked_read
1752         instead of gdbarch_pseudo_register_read_value.
1753
1754 2018-01-22  Joel Brobecker  <brobecker@adacore.com>
1755
1756         * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
1757         language is Ada.
1758
1759 2018-01-22  Joel Brobecker  <brobecker@adacore.com>
1760
1761         * linespec.c (create_sals_line_offset): Remove code that preserved
1762         the symtab_and_line's line number.
1763
1764 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
1765
1766         * varobj.c (varobj_create): Don't set valid_block when creating a
1767         floating varobj.
1768
1769 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
1770
1771         * varobj.c (varobj_create): Remove out of date comment.
1772
1773 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
1774
1775         PR mi/20395
1776         * ada-exp.y (write_var_from_sym): Pass extra parameter when
1777         updating innermost block.
1778         * parse.c (innermost_block_tracker::update): Take extra type
1779         parameter, and check types match before updating innermost block.
1780         (write_dollar_variable): Update innermost block for registers.
1781         * parser-defs.h (enum innermost_block_tracker_type): New enum.
1782         (innermost_block_tracker::innermost_block_tracker): Initialise
1783         m_types member.
1784         (innermost_block_tracker::reset): Take type parameter.
1785         (innermost_block_tracker::update): Take type parameter, and pass
1786         type through as needed.
1787         (innermost_block_tracker::m_types): New member.
1788         * varobj.c (varobj_create): Pass type when reseting innermost
1789         block.
1790
1791 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
1792
1793         * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
1794         * ada-lang.c (resolve_subexp): Likewise.
1795         * breakpoint.c (set_breakpoint_condition) Likewise.
1796         (watch_command_1) Likewise.
1797         * c-exp.y (variable): Likewise.
1798         * d-exp.y (PrimaryExpression): Likewise.
1799         * f-exp.y (variable): Likewise.
1800         * go-exp.y (variable): Likewise.
1801         * m2-exp.y (variable): Likewise.
1802         * objfiles.c (objfile::~objfile): Likewise.
1803         * p-exp.y (variable): Likewise.
1804         * parse.c (innermost_block): Change type.
1805         * parser-defs.h (class innermost_block_tracker): New.
1806         (innermost_block): Change to innermost_block_tracker.
1807         * printcmd.c (display_command): Switch to innermost_block API.
1808         (do_one_display): Likewise.
1809         * rust-exp.y (do_one_display): Likewise.
1810         * symfile.c (clear_symtab_users): Likewise.
1811         * varobj.c (varobj_create): Switch to innermost_block API, replace
1812         use of innermost_block with block stored on varobj object.
1813
1814 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
1815
1816         * expression.h (innermost_block): Remove declaration.
1817         * varobj.c: Add 'parser-defs.h' include.
1818
1819 2018-01-19  Tom Tromey  <tom@tromey.com>
1820
1821         * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
1822         symbols in the static and global blocks.
1823
1824 2018-01-19  James Clarke  <jrtc27@jrtc27.com>
1825
1826         * nat/linux-ptrace.c: Remove unnecessary reinclusion of
1827         gdb_ptrace.h, and move including gdb_wait.h ...
1828         * nat/linux-ptrace.h: ... to here.
1829
1830 2018-01-19  Simon Marchi  <simon.marchi@ericsson.com>
1831
1832         * inf-ptrace.c (inf_ptrace_detach): Adjust call to
1833         inf_ptrace_detach_success.
1834         (inf_ptrace_detach_success): Add inferior parameter, use it
1835         instead of inferior_ptid, pass it to detach_inferior.
1836         * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
1837         parameter.
1838         * inferior.c (detach_inferior): Add overload that takes an
1839         inferior object.
1840         * inferior.h (detach_inferior): Likewise.
1841         * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
1842         use inferior_ptid, adjust call to inf_ptrace_detach_success.
1843         * linux-thread-db.c (thread_db_detach): Use inf parameter.
1844
1845 2018-01-19  Simon Marchi  <simon.marchi@ericsson.com>
1846
1847         * target.h (struct target_ops) <to_detach>: Add inferior
1848         parameter.
1849         (target_detach): Likewise.
1850         * target.c (dispose_inferior): Pass inferior down.
1851         (target_detach): Pass inferior down.  Assert that it is equal to
1852         the current inferior.
1853         * aix-thread.c (aix_thread_detach): Pass inferior down.
1854         * corefile.c (core_file_command): Pass current_inferior() down.
1855         * corelow.c (core_detach): Add inferior parameter.
1856         * darwin-nat.c (darwin_detach): Likewise.
1857         * gnu-nat.c (gnu_detach): Likewise.
1858         * inf-ptrace.c (inf_ptrace_detach): Likewise.
1859         * infcmd.c (detach_command): Pass current_inferior() down to
1860         target_detach.
1861         * infrun.c (follow_fork_inferior): Pass parent_inf to
1862         target_detach.
1863         (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
1864         target_detach.
1865         * linux-nat.c (linux_nat_detach): Add inferior parameter.
1866         * linux-thread-db.c (thread_db_detach): Likewise.
1867         * nto-procfs.c (procfs_detach): Likewise.
1868         * procfs.c (procfs_detach): Likewise.
1869         * record.c (record_detach): Likewise.
1870         * record.h (struct inferior): Forward-declare.
1871         (record_detach): Add inferior parameter.
1872         * remote-sim.c (gdbsim_detach): Likewise.
1873         * remote.c (remote_detach_1): Likewise.
1874         (remote_detach): Likewise.
1875         (extended_remote_detach): Likewise.
1876         * sol-thread.c (sol_thread_detach): Likewise.
1877         * target-debug.h (target_debug_print_inferior_p): New macro.
1878         * target-delegates.c: Re-generate.
1879         * top.c (kill_or_detach): Pass inferior down to target_detach.
1880         * windows-nat.c (windows_detach): Add inferior parameter.
1881
1882 2018-01-19  Simon Marchi  <simon.marchi@ericsson.com>
1883
1884         * target.h (struct target_ops) <to_detach>: Remove args
1885         parameter.
1886         (target_detach): Likewise.
1887         * target.c (dispose_inferior): Adjust.
1888         (target_detach): Remove args parameter, adjust.
1889         * aix-thread.c (aix_thread_detach): Adjust.
1890         * corefile.c (core_file_command): Adjust.
1891         * corelow.c (core_detach): Adjust.
1892         * darwin-nat.c (darwin_detach): Adjust.
1893         * gnu-nat.c (gnu_detach): Adjust.
1894         * inf-ptrace.c (inf_ptrace_detach): Adjust.
1895         * infcmd.c (detach_command): Adjust
1896         * infrun.c (follow_fork_inferior): Adjust.
1897         (handle_vfork_child_exec_or_exit): Adjust.
1898         * linux-fork.c (linux_fork_detach): Remove args parameter.
1899         * linux-fork.h (linux_fork_detach): Likewise.
1900         * linux-nat.c (linux_nat_detach): Likewise, and adjust.
1901         * linux-thread-db.c (thread_db_detach): Likewise.
1902         * nto-procfs.c (procfs_detach): Likewise.
1903         * procfs.c (procfs_detach): Likewise.
1904         (do_detach): Remove signo parameter.
1905         * record.c (record_detach): Remove args parameter.
1906         * record.h (record_detach): Likewise.
1907         * remote-sim.c (gdbsim_detach): Likewise.
1908         * remote.c (remote_detach_1): Likewise.
1909         (remote_detach): Likewise.
1910         (extended_remote_detach): Likewise.
1911         * sol-thread.c (sol_thread_detach): Likewise.
1912         * target-delegates.c: Re-generate.
1913         * top.c (struct qt_args) <args>: Remove field.
1914         (kill_or_detach): Don't pass args.
1915         (quit_force): Don't set args.
1916         * windows-nat.c (windows_detach): Remove args parameter.
1917
1918 2018-01-19  Yao Qi  <yao.qi@linaro.org>
1919
1920         * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
1921         (arm_linux_init_abi): Install it.
1922
1923 2018-01-19  Yao Qi  <yao.qi@linaro.org>
1924
1925         * osabi.c (gdb_osabi_names): Extend the regexp for
1926         arm-linux-gnueabihf.
1927
1928 2018-01-18  Yao Qi  <yao.qi@linaro.org>
1929
1930         * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
1931         m_abbrevs.
1932         (abbrev_table::add_abbrev): Update.
1933         (abbrev_table::lookup_abbrev): Update.
1934
1935 2018-01-18  Yao Qi  <yao.qi@linaro.org>
1936
1937         * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
1938
1939 2018-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
1940
1941         * compile/compile.c (compile_to_object): Convert "triplet_rx"
1942         to "std::string".
1943
1944 2018-01-17  Tom Tromey  <tom@tromey.com>
1945
1946         * dwarf2read.c (symbolp): Remove typedef.  Don't instantiate VEC.
1947
1948 2018-01-17  Tom Tromey  <tom@tromey.com>
1949
1950         * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
1951         * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
1952         (create_array_type_with_stride): Update.
1953         * dwarf2read.c (set_die_type): Update.
1954
1955 2018-01-17  Tom Tromey  <tom@tromey.com>
1956
1957         * dwarf2read.c (delayed_method_info): Remove typedef.
1958         (dwarf2_cu::method_info): Now a std::vector.
1959         (add_to_method_list): Update.
1960         (free_delayed_list): Remove.
1961         (compute_delayed_physnames): Update.
1962         (process_full_comp_unit, process_full_type_unit): Clear the method
1963         list.  Remove cleanups.
1964         (psymtab_include_file_name): Add name_holder parameter.  Use
1965         unique_xmalloc_ptr.
1966         (dwarf_decode_lines): Update.
1967
1968 2018-01-17  Tom Tromey  <tom@tromey.com>
1969             Simon Marchi  <simon.marchi@ericsson.com>
1970
1971         * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
1972         (dwarf2_per_objfile::free_cached_comp_units)
1973         (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
1974         (init_cutu_and_read_dies_no_follow): Update.
1975         (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
1976         (dwarf2_cu::~dwarf2_cu): New.
1977         (free_heap_comp_unit, free_stack_comp_unit): Remove.
1978         (age_cached_comp_units, free_one_cached_comp_unit): Update.
1979
1980 2018-01-17  Tom Tromey  <tom@tromey.com>
1981             Simon Marchi  <simon.marchi@ericsson.com>
1982
1983         * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
1984         (struct die_reader_specs) <abbrev_table>: New member.
1985         (struct abbrev_table): Add constructor.
1986         <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
1987         <abbrev_obstack>: Now an auto_obstack.
1988         (abbrev_table_up): New typedef.
1989         (init_cu_die_reader): Add abbrev_table parameter.
1990         (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
1991         Add result_dwo_abbrev_table.
1992         (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
1993         (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
1994         Update.
1995         (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
1996         parameter.
1997         (skip_children): Update.
1998         (abbrev_table::alloc_abbrev): Rename from
1999         abbrev_table_alloc_abbrev.
2000         (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
2001         (abbrev_table::lookup_abbrev): Rename from
2002         abbrev_table_lookup_abbrev.
2003         (abbrev_table_read_table): Return abbrev_table_up.
2004         (abbrev_table_free, abbrev_table_free_cleanup)
2005         (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
2006         (load_partial_dies): Update.
2007
2008 2018-01-17  Tom Tromey  <tom@tromey.com>
2009
2010         * dwarf2read.c (dwarf2_compute_name): Update comment.
2011         (read_func_scope, read_variable): Update.
2012         (new_symbol): Remove.
2013         (new_symbol_full): Rename to new_symbol.
2014
2015 2018-01-17  Mike Gulick  <mgulick@mathworks.com>
2016
2017         PR gdb/16577
2018         * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
2019         a warning instead of throwing an error, set section size to 0 and return
2020         NULL.
2021         * gdb_bfd.h (gdb_bfd_map_section): Update description.
2022
2023 2018-01-17  Simon Marchi  <simon.marchi@ericsson.com>
2024
2025         * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
2026         std::string.
2027         (linux_ptrace_attach_fail_reason_string): Likewise.
2028         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
2029         Likewise.
2030         (linux_ptrace_attach_fail_reason_string): Likewise.
2031         * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
2032
2033 2018-01-17  Simon Marchi  <simon.marchi@ericsson.com>
2034
2035         * linux-nat.c (linux_nat_attach): Remove xstrdup.
2036
2037 2018-01-17  Eldar Abusalimov  <eldar.abusalimov@jetbrains.com>
2038
2039         PR gdb/21559
2040         * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
2041         checking for fs_base/gs_base fields in struct user_regs_struct.
2042         * configure: Regenerate.
2043
2044 2018-01-17  Yao Qi  <yao.qi@linaro.org>
2045
2046         * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
2047         function.
2048         (aarch64_linux_init_abi): Install it to gdbarch hook
2049         gcc_target_options.
2050
2051 2018-01-15  Pedro Alves  <palves@redhat.com>
2052
2053         * common/signals-state-save-restore.c
2054         (save_original_signals_state): Fix typos.
2055
2056 2017-01-12  Tom Tromey  <tom@tromey.com>
2057             Sergio Durigan Junior  <sergiodj@redhat.com>
2058
2059         * Makefile.in (install-only): Install gdb-add-index.
2060
2061 2018-01-12  John Baldwin  <jhb@FreeBSD.org>
2062
2063         * fbsd-tdep.c (KVE_PROTECTION): Correct value.
2064
2065 2018-01-12  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2066
2067         * infrun.c (keep_going_pass_signal): Clear step-over info when
2068         insert_breakpoints fails.
2069
2070 2018-01-11  Pedro Alves  <palves@redhat.com>
2071
2072         PR gdb/22583
2073         * infrun.c (resume): Rename to ...
2074         (resume_1): ... this.
2075         (resume): Reimplement as wrapper around resume_1.
2076
2077 2018-01-11  Pedro Alves  <palves@redhat.com>
2078
2079         PR remote/22597
2080         * remote.c (remote_parse_stop_reply): Default to the last-set
2081         general thread instead of to 'magic_null_ptid'.
2082
2083 2018-01-10  Pedro Alves  <palves@redhat.com>
2084
2085         * language.h (language_get_symbol_name_matcher): Rename ...
2086         (get_symbol_name_matcher): ... this.
2087         * language.c (language_get_symbol_name_matcher): Ditto.
2088         * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
2089         callers adjusted.
2090
2091 2018-01-10  Pedro Alves  <palves@redhat.com>
2092
2093         PR gdb/22670
2094         * dwarf2read.c
2095         (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
2096         Adjust to use language_get_symbol_name_matcher instead of
2097         language_defn::la_get_symbol_name_matcher.
2098         * language.c (language_get_symbol_name_matcher): If in Ada mode
2099         and the lookup name is a verbatim match, return Ada's matcher.
2100         * language.h (language_get_symbol_name_matcher): Adjust comment.
2101         (ada_lookup_name_info::verbatim_p):: New method.
2102
2103 2018-01-10  Pedro Alves  <palves@redhat.com>
2104
2105         PR gdb/22670
2106         * ada-lang.c (ada_collect_symbol_completion_matches): If the
2107         minsym's language is language_auto or language_cplus, pass down
2108         language_ada instead.
2109         * symtab.c (compare_symbol_name): Don't frob symbol language here.
2110
2111 2018-01-10  Pedro Alves  <palves@redhat.com>
2112
2113         PR gdb/22670
2114         * minsyms.c (linkage_name_str): New function.
2115         (iterate_over_minimal_symbols): Use it.
2116
2117 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
2118
2119         * NEWS: Document that 'info proc' now works on FreeBSD.
2120
2121 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
2122
2123         * configure.ac: Check for kinfo_getfile in libutil.
2124         * configure: Regenerate.
2125         * config.in: Regenerate.
2126         * fbsd-nat.c: Include "fbsd-tdep.h".
2127         (fbsd_fetch_cmdline): New.
2128         (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
2129         rather than calling error.
2130         (fbsd_info_proc): New.
2131         (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
2132         (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
2133         (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
2134
2135 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
2136
2137         * fbsd-nat.c (struct free_deleter): Remove.
2138         (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
2139
2140 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
2141
2142         * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
2143         NULL for an empty pathname.
2144
2145 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
2146
2147         * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
2148         (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
2149         (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
2150         (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
2151         (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
2152         (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
2153         (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
2154         (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
2155         (kinfo_proc_layout_32, kinfo_proc_layout_i386)
2156         (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
2157         (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
2158         (fbsd_core_fetch_timeval, fbsd_print_sigset)
2159         (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
2160         (fbsd_init_abi):  Install gdbarch "core_info_proc" method.
2161         * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
2162
2163 2018-01-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2164
2165         * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
2166         (gnu_xfer_auxv): New function.
2167         (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
2168         TARGET_OBJECT_AUXV.
2169
2170 2018-01-08  Yao Qi  <yao.qi@linaro.org>
2171             Simon Marchi  <simon.marchi@ericsson.com>
2172
2173         * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
2174         common/selftest.c.
2175         (COMMON_OBS): Remove selftest.o.
2176         * configure.ac: Append selftest-arch.c and common/selftest.c to
2177         CONFIG_SRCS.  Append selftest-arch.o and selftest.o to COMMON_OBS.
2178         * configure: Re-generated.
2179         * maint.c (maintenance_selftest): Wrap selftests::run_tests with
2180         GDB_SELF_TEST.
2181         (maintenance_info_selftests): Likewise.
2182
2183 2018-01-08  Xavier Roirand  <roirand@adacore.com>
2184
2185         * ada-valprint.c (val_print_packed_array_elements): Use
2186         proper number of elements when printing an array indexed
2187         by an enumeration type.
2188
2189 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
2190
2191         * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
2192         (dw2_get_file_names_reader): Adjust.
2193         (lookup_dwo_signatured_type): Adjust.
2194         (lookup_dwp_signatured_type): Adjust.
2195         (lookup_signatured_type): Adjust.
2196         (create_type_unit_group): Adjust.
2197         (get_type_unit_group): Adjust.
2198         (process_psymtab_comp_unit_reader): Adjust.
2199         (build_type_psymtabs_reader): Adjust.
2200         (scan_partial_symbols): Adjust.
2201         (add_partial_symbol): Adjust.
2202         (add_partial_subprogram): Adjust.
2203         (peek_die_abbrev): Adjust.
2204         (fixup_go_packaging): Adjust.
2205         (process_imported_unit_die): Adjust.
2206         (dwarf2_compute_name): Adjust.
2207         (dwarf2_physname): Adjust.
2208         (read_import_statement): Adjust.
2209         (handle_DW_AT_stmt_list): Adjust.
2210         (read_file_scope): Adjust.
2211         (read_func_scope): Adjust.
2212         (read_lexical_block_scope): Adjust.
2213         (read_call_site_scope): Adjust.
2214         (read_variable): Adjust.
2215         (dwarf2_rnglists_process): Adjust.
2216         (dwarf2_ranges_process): Adjust.
2217         (dwarf2_ranges_read): Adjust.
2218         (dwarf2_get_pc_bounds): Adjust.
2219         (dwarf2_record_block_ranges): Adjust.
2220         (dwarf2_add_field): Adjust.
2221         (dwarf2_add_member_fn): Adjust.
2222         (read_structure_type): Adjust.
2223         (process_structure_scope): Adjust.
2224         (read_enumeration_type): Adjust.
2225         (read_array_type): Adjust.
2226         (mark_common_block_symbol_computed): Adjust.
2227         (read_common_block): Adjust.
2228         (read_namespace_type): Adjust.
2229         (read_namespace): Adjust.
2230         (read_module_type): Adjust.
2231         (read_tag_pointer_type): Adjust.
2232         (read_tag_ptr_to_member_type): Adjust.
2233         (read_tag_string_type): Adjust.
2234         (read_subroutine_type): Adjust.
2235         (read_typedef): Adjust.
2236         (read_base_type): Adjust.
2237         (attr_to_dynamic_prop): Adjust.
2238         (read_subrange_type): Adjust.
2239         (read_unspecified_type): Adjust.
2240         (dwarf2_read_abbrevs): Adjust.
2241         (load_partial_dies): Adjust.
2242         (read_partial_die): Adjust.
2243         (find_partial_die): Adjust.
2244         (guess_partial_die_structure_name): Adjust.
2245         (fixup_partial_die): Adjust.
2246         (read_attribute_value): Adjust.
2247         (read_addr_index): Adjust.
2248         (read_addr_index_from_leb128): Adjust.
2249         (read_str_index): Adjust.
2250         (dwarf2_string_attr): Adjust.
2251         (get_debug_line_section): Adjust.
2252         (dwarf_decode_line_header): Adjust.
2253         (lnp_state_machine::check_line_address): Adjust.
2254         (dwarf_decode_lines_1): Adjust.
2255         (dwarf_decode_lines): Adjust.
2256         (dwarf2_start_symtab): Adjust.
2257         (var_decode_location): Adjust.
2258         (new_symbol_full): Adjust.
2259         (dwarf2_const_value_data): Adjust.
2260         (dwarf2_const_value_attr): Adjust.
2261         (dwarf2_const_value): Adjust.
2262         (die_type): Adjust.
2263         (die_containing_type): Adjust.
2264         (build_error_marker_type): Adjust.
2265         (lookup_die_type): Adjust.
2266         (guess_full_die_structure_name): Adjust.
2267         (anonymous_struct_prefix): Adjust.
2268         (determine_prefix): Adjust.
2269         (dwarf2_name): Adjust.
2270         (follow_die_ref_or_sig): Adjust.
2271         (follow_die_offset): Adjust.
2272         (follow_die_ref): Adjust.
2273         (follow_die_sig_1): Adjust.
2274         (follow_die_sig): Adjust.
2275         (get_signatured_type): Adjust.
2276         (get_DW_AT_signature_type): Adjust.
2277         (decode_locdesc): Adjust.
2278         (dwarf_decode_macros): Adjust.
2279         (cu_debug_loc_section): Adjust.
2280         (fill_in_loclist_baton): Adjust.
2281         (dwarf2_symbol_mark_computed): Adjust.
2282         (init_one_comp_unit): Don't assign
2283         dwarf2_cu::dwarf2_per_objfile.
2284         (set_die_type): Adjust.
2285
2286 2018-01-07  Simon Marchi  <simon.marchi@ericsson.com>
2287
2288         * dwarf2read.c (struct mapped_debug_names): Add constructor.
2289         <dwarf2_per_objfile>: New field.
2290         (dwarf2_per_objfile): Remove global.
2291         (get_dwarf2_per_objfile): New function.
2292         (set_dwarf2_per_objfile): New function.
2293         (dwarf2_build_psymtabs_hard): Change objfile parameter to
2294         dwarf2_per_objfile.
2295         (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
2296         (read_abbrev_offset): Likewise.
2297         (read_indirect_string): Likewise.
2298         (read_indirect_line_string): Likewise.
2299         (read_indirect_string_at_offset): Likewise.
2300         (read_indirect_string_from_dwz): Likewise.
2301         (dwarf2_find_containing_comp_unit): Change objfile parameter to
2302         dwarf2_per_objfile.
2303         (age_cached_comp_units): Add dwarf2_per_objfile parameter.
2304         (create_all_comp_units): Change objfile parameter to
2305         dwarf2_per_objfile.
2306         (create_all_type_units): Likewise.
2307         (process_queue): Add dwarf2_per_objfile parameter.
2308         (read_and_check_comp_unit_head): Likewise.
2309         (lookup_dwo_unit_in_dwp): Likewise.
2310         (get_dwp_file): Likewise.
2311         (process_cu_includes): Likewise.
2312         (struct free_dwo_file_cleanup_data): New struct.
2313         (dwarf2_has_info): Use get_dwarf2_per_objfile and
2314         set_dwarf2_per_objfile.
2315         (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
2316         (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
2317         context, adjust calls.
2318         (dw2_instantiate_symtab): Likewise.
2319         (dw2_get_cutu): Add dwarf2_per_objfile parameter.
2320         (dw2_get_cu): Likewise.
2321         (create_cu_from_index_list): Change objfile parameter to
2322         dwarf2_per_objfile.
2323         (create_cus_from_index_list): Get dwarf2_per_objfile from
2324         context, adjust calls.
2325         (create_cus_from_index): Likewise.
2326         (create_signatured_type_table_from_index): Change objfile
2327         parameter to dwarf2_per_objfile.
2328         (create_signatured_type_table_from_debug_names): Change objfile
2329         parameter to dwarf2_per_objfile.
2330         (create_addrmap_from_index): Likewise.
2331         (create_addrmap_from_aranges): Likewise.
2332         (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
2333         (dw2_setup): Remove.
2334         (dw2_get_file_names_reader): Get dwarf2_per_objfile from
2335         context.
2336         (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
2337         get_dwarf2_per_objfile.
2338         (dw2_forget_cached_source_info): Likewise.
2339         (dw2_map_symtabs_matching_filename): Likewise.
2340         (struct dw2_symtab_iterator) <index>: Remove.
2341         <dwarf2_per_objfile>: New field.
2342         (dw2_symtab_iter_init): Replace index parameter with
2343         dwarf2_per_objfile.
2344         (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
2345         (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
2346         (dw2_print_stats): Likewise.
2347         (dw2_dump): Likewise.
2348         (dw2_expand_symtabs_for_function): Likewise.
2349         (dw2_expand_all_symtabs): Likewise.
2350         (dw2_expand_symtabs_with_fullname): Likewise.
2351         (dw2_expand_marked_cus): Replace index and objfile parameters
2352         with dwarf2_per_objfile.
2353         (dw_expand_symtabs_matching_file_matcher): Add
2354         dwarf2_per_objfile parameter and adjust calls.
2355         (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
2356         adjust calls.
2357         (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
2358         (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
2359         adjust calls.
2360         (create_cus_from_debug_names_list): Replace objfile parameter
2361         with dwarf2_per_objfile and adjust calls.
2362         (create_cus_from_debug_names): Likewise.
2363         (dwarf2_read_debug_names): Likewise.
2364         (mapped_debug_names::namei_to_name): Adjust call.
2365         (dw2_debug_names_iterator::next): Likewise.
2366         (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2367         (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
2368         (dw2_debug_names_dump): Likewise.
2369         (dw2_debug_names_expand_symtabs_for_function): Likewise.
2370         (dw2_debug_names_expand_symtabs_matching): Likewise.
2371         (dwarf2_initialize_objfile): Likewise.
2372         (dwarf2_build_psymtabs): Likewise.
2373         (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
2374         this_cu.
2375         (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
2376         (read_and_check_comp_unit_head): Likewise.
2377         (read_abbrev_offset): Likewise.
2378         (create_debug_type_hash_table): Likewise.
2379         (create_debug_types_hash_table): Likewise.
2380         (create_all_type_units): Replace objfile parameter with
2381         dwarf2_per_objfile.
2382         (add_type_unit): Add dwarf2_per_objfile parameter.
2383         (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
2384         with dwarf2_per_objfile.
2385         (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
2386         (lookup_dwp_signatured_type): Likewise.
2387         (lookup_signatured_type): Likewise.
2388         (read_cutu_die_from_dwo): Likewise.
2389         (init_tu_and_read_dwo_dies): Likewise.
2390         (init_cutu_and_read_dies): Likewise.
2391         (init_cutu_and_read_dies_no_follow): Likewise.
2392         (allocate_type_unit_groups_table): Add objfile parameter.
2393         (create_type_unit_group): Use dwarf2_per_objfile from cu.
2394         (get_type_unit_group): Likewise.
2395         (process_psymtab_comp_unit): Update call.
2396         (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
2397         (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
2398         (print_tu_stats): Likewise.
2399         (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
2400         in void* parameter.
2401         (build_type_psymtabs): Change objfile parameter to
2402         dwarf2_per_objfile.
2403         (process_skeletonless_type_unit): Use dwarf2_per_objfile
2404         passed in void* parameter.
2405         (process_skeletonless_type_units): Change objfile parameter to
2406         dwarf2_per_objfile.
2407         (set_partial_user): Likewise.
2408         (dwarf2_build_psymtabs_hard): Likewise.
2409         (read_comp_units_from_section): Likewise.
2410         (create_all_comp_units): Likewise.
2411         (scan_partial_symbols): Update calls.
2412         (add_partial_symbol): Likewise.
2413         (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
2414         (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
2415         (process_queue): Add dwarf2_per_objfile parameter.
2416         (get_compunit_symtab): Use dwarf2_per_objfile from cu.
2417         (compute_compunit_symtab_includes): Likewise.
2418         (process_cu_includes): Add dwarf2_per_objfile parameter.
2419         (process_full_comp_unit): Use dwarf2_per_objfile from cu.
2420         (process_full_type_unit): Likewise.
2421         (process_imported_unit_die): Update call.
2422         (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
2423         (read_file_scope): Likewise.
2424         (allocate_dwo_file_hash_table): Add objfile parameter.
2425         (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
2426         (create_cus_hash_table): Likewise.
2427         (create_dwp_hash_table): Likewise.
2428         (create_dwo_unit_in_dwp_v1): Likewise.
2429         (create_dwp_v2_section): Likewise.
2430         (create_dwo_unit_in_dwp_v2): Likewise.
2431         (lookup_dwo_unit_in_dwp): Likewise.
2432         (try_open_dwop_file): Likewise.
2433         (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
2434         (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
2435         cleanup to include a reference to dwarf2_per_objfile.
2436         (open_dwp_file): Add dwarf2_per_objfile parameter.
2437         (open_and_init_dwp_file): Likewise.
2438         (get_dwp_file): Likewise.
2439         (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
2440         (queue_and_load_all_dwo_tus): Update call.
2441         (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
2442         data.
2443         (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
2444         (dwarf2_ranges_process): Likewise.
2445         (dwarf2_get_pc_bounds): Likewise.
2446         (mark_common_block_symbol_computed): Likewise.
2447         (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
2448         (dwarf2_read_abbrevs): Update call.
2449         (read_partial_die): Use dwarf2_per_objfile from cu.
2450         (find_partial_die): Likewise.
2451         (fixup_partial_die): Likewise.
2452         (read_attribute_value): Likewise.
2453         (read_indirect_string_at_offset_from): Add objfile parameter.
2454         (read_indirect_string_at_offset): Add dwarf2_per_objfile
2455         parameter.
2456         (read_indirect_string_from_dwz): Add objfile parameter.
2457         (read_indirect_string): Add objfile parameter.
2458         (read_addr_index_1): Add dwarf2_per_objfile parameter.
2459         (read_addr_index): Use dwarf2_per_objfile from cu.
2460         (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
2461         call dw2_setup.
2462         (read_str_index): Use dwarf2_per_objfile from cu.
2463         (get_debug_line_section): Likewise.
2464         (read_formatted_entries): Add dwarf2_per_objfile parameter.
2465         (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
2466         (new_symbol_full): Use dwarf2_per_objfile from cu.
2467         (build_error_marker_type): Likewise.
2468         (lookup_die_type): Likewise.
2469         (determine_prefix): Likewise.
2470         (follow_die_offset): Likewise.
2471         (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
2472         (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
2473         (dwarf2_fetch_die_type_sect_off): Likewise.
2474         (dwarf2_get_die_type): Likewise.
2475         (follow_die_sig_1): Use dwarf2_per_objfile from cu.
2476         (get_signatured_type): Likewise.
2477         (get_DW_AT_signature_type): Likewise.
2478         (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
2479         (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
2480         (cu_debug_loc_section): Likewise.
2481         (fill_in_loclist_baton): Likewise.
2482         (dwarf2_symbol_mark_computed): Likewise.
2483         (dwarf2_find_containing_comp_unit): Change objfile parameter to
2484         dwarf2_per_objfile.
2485         (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
2486         parameter.
2487         (age_cached_comp_units): Add dwarf2_per_objfile parameter.
2488         (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
2489         (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
2490         (set_die_type): Use dwarf2_free_objfile from cu.
2491         (get_die_type_at_offset): Likewise.
2492         (dwarf2_per_objfile_free): Don't assign global variable.
2493         (debug_names) <constructor>: Add dwarf2_per_objfile
2494         parameter, update m_debugstrlookup construction.
2495         (debug_names::debug_str_lookup): Add dwarf2_per_objfile
2496         parameter.
2497         <m_dwarf2_per_objfile>: New field.
2498         <lookup>: Use m_dwarf2_per_objfile.
2499         (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
2500         (psyms_seen_size): Likewise.
2501         (write_gdbindex): Replace objfile parameter with
2502         dwarf2_per_objfile.
2503         (write_debug_names): Likewise.
2504         (write_psymtabs_to_index): Likewise.
2505         (save_gdb_index_command): Use get_dwarf2_per_objfile, update
2506         calls.
2507
2508 2018-01-07  Simon Marchi  <simon.marchi@ericsson.com>
2509
2510         * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
2511         <dwarf2_per_objfile>: New field.
2512         (struct dwarf2_per_cu_data) <objfile>: Remove.
2513         <dwarf2_per_objfile>: New field.
2514         (create_cu_from_index_list): Assign dwarf2_per_objfile instead
2515         of objfile.
2516         (create_signatured_type_table_from_index): Likewise.
2517         (create_debug_type_hash_table): Likewise.
2518         (fill_in_sig_entry_from_dwo_entry): Likewise.
2519         (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
2520         (create_type_unit_group): Assign dwarf2_per_objfile instead of
2521         objfile.
2522         (create_partial_symtab): Access objfile through
2523         dwarf2_per_objfile.
2524         (process_psymtab_comp_unit_reader): Likewise.
2525         (read_comp_units_from_section): Likewise.
2526         (scan_partial_symbols): Likewise.
2527         (add_partial_symbol): Likewise.
2528         (add_partial_subprogram): Likewise.
2529         (peek_die_abbrev): Likewise.
2530         (fixup_go_packaging): Likewise.
2531         (process_full_comp_unit): Likewise.
2532         (process_full_type_unit): Likewise.
2533         (process_imported_unit_die): Likewise.
2534         (dwarf2_compute_name): Likewise.
2535         (dwarf2_physname): Likewise.
2536         (read_import_statement): Likewise.
2537         (create_cus_hash_table): Assign dwarf2_physname instead of
2538         objfile.
2539         (read_func_scope): Access objfile through dwarf2_per_objfile.
2540         (read_lexical_block_scope): Likewise.
2541         (read_call_site_scope): Likewise.
2542         (read_variable): Likewise.
2543         (dwarf2_rnglists_process): Likewise.
2544         (dwarf2_ranges_process): Likewise.
2545         (dwarf2_ranges_read): Likewise.
2546         (dwarf2_record_block_ranges): Likewise.
2547         (dwarf2_add_field): Likewise.
2548         (dwarf2_add_member_fn): Likewise.
2549         (read_structure_type): Likewise.
2550         (process_structure_scope): Likewise.
2551         (read_enumeration_type): Likewise.
2552         (read_array_type): Likewise.
2553         (read_common_block): Likewise.
2554         (read_namespace_type): Likewise.
2555         (read_namespace): Likewise.
2556         (read_module_type): Likewise.
2557         (read_tag_pointer_type): Likewise.
2558         (read_tag_ptr_to_member_type): Likewise.
2559         (read_tag_string_type): Likewise.
2560         (read_subroutine_type): Likewise.
2561         (read_typedef): Likewise.
2562         (read_base_type): Likewise.
2563         (attr_to_dynamic_prop): Likewise.
2564         (read_subrange_type): Likewise.
2565         (read_unspecified_type): Likewise.
2566         (load_partial_dies): Likewise.
2567         (read_partial_die): Likewise.
2568         (find_partial_die): Likewise.
2569         (guess_partial_die_structure_name): Likewise.
2570         (fixup_partial_die): Likewise.
2571         (read_attribute_value): Likewise.
2572         (read_addr_index_from_leb128): Likewise.
2573         (dwarf2_read_addr_index): Likewise.
2574         (dwarf2_string_attr): Likewise.
2575         (lnp_state_machine::check_line_address): Likewise.
2576         (dwarf_decode_lines_1): Likewise.
2577         (dwarf_decode_lines): Likewise.
2578         (dwarf2_start_symtab): Likewise.
2579         (var_decode_location): Likewise.
2580         (new_symbol_full): Likewise.
2581         (dwarf2_const_value_data): Likewise.
2582         (dwarf2_const_value_attr): Likewise.
2583         (dwarf2_const_value): Likewise.
2584         (die_type): Likewise.
2585         (die_containing_type): Likewise.
2586         (lookup_die_type): Likewise.
2587         (guess_full_die_structure_name): Likewise.
2588         (anonymous_struct_prefix): Likewise.
2589         (dwarf2_name): Likewise.
2590         (follow_die_ref_or_sig): Likewise.
2591         (follow_die_offset): Likewise.
2592         (follow_die_ref): Likewise.
2593         (dwarf2_fetch_die_loc_sect_off): Likewise.
2594         (dwarf2_fetch_constant_bytes): Likewise.
2595         (dwarf2_fetch_die_type_sect_off): Likewise.
2596         (dwarf2_get_die_type): Likewise.
2597         (follow_die_sig): Likewise.
2598         (decode_locdesc): Likewise.
2599         (dwarf2_per_cu_objfile): Likewise.
2600         (dwarf2_per_cu_text_offset): Likewise.
2601         (init_one_comp_unit): Assign dwarf2_per_objfile instead of
2602         objfile.
2603         (set_die_type): Access objfile through
2604         dwarf2_per_objfile.
2605
2606 2018-01-07  Simon Marchi  <simon.marchi@ericsson.com>
2607
2608         * valprint.c (converted_character_d): Remove typedef.
2609         (DEF_VEC_O (converted_character_d)): Remove.
2610         (count_next_character): Use std::vector.
2611         (print_converted_chars_to_obstack): Likewise.
2612         (generic_printstr): Likewise.
2613
2614 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
2615
2616         * xml-support.h (struct gdb_xml_value): Add constructor.
2617         <value>: Change type to unique_xmalloc_ptr.
2618         (gdb_xml_value_s): Remove typedef.
2619         (DEF_VEC_O (gdb_xml_value_s)): Remove.
2620         (gdb_xml_element_start_handler): Change parameter type to
2621         std::vector.
2622         (xml_find_attribute): Likewise.
2623         * xml-support.c (xml_find_attribute): Change parameter type to
2624         std::vector and adjust.
2625         (gdb_xml_values_cleanup): Remove.
2626         (gdb_xml_parser::start_element): Adjust to std::vector.
2627         (xinclude_start_include): Change paraeter type to std::vector
2628         and adjust.
2629         * btrace.c (check_xml_btrace_version): Likewise.
2630         (parse_xml_btrace_block): Likewise.
2631         (parse_xml_btrace_pt_config_cpu): Likewise.
2632         (parse_xml_btrace_pt): Likewise.
2633         (parse_xml_btrace_conf_bts): Likewise.
2634         (parse_xml_btrace_conf_pt): Likewise.
2635         * memory-map.c (memory_map_start_memory): Likewise.
2636         (memory_map_start_property): Likewise.
2637         * osdata.c (osdata_start_osdata): Likewise.
2638         (osdata_start_item): Likewise.
2639         (osdata_start_column): Likewise.
2640         * remote.c (start_thread): Likewise.
2641         * solib-aix.c (library_list_start_library): Likewise.
2642         (library_list_start_list): Likewise.
2643         * solib-svr4.c (library_list_start_library): Likewise.
2644         (svr4_library_list_start_list): Likewise.
2645         * solib-target.c (library_list_start_segment): Likewise.
2646         (library_list_start_section): Likewise.
2647         (library_list_start_library): Likewise.
2648         (library_list_start_list): Likewise.
2649         * tracepoint.c (traceframe_info_start_memory): Likewise.
2650         (traceframe_info_start_tvar): Likewise.
2651         * xml-syscall.c (syscall_start_syscall): Likewise.
2652         * xml-tdesc.c (tdesc_start_target): Likewise.
2653         (tdesc_start_feature): Likewise.
2654         (tdesc_start_reg): Likewise.
2655         (tdesc_start_union): Likewise.
2656         (tdesc_start_struct): Likewise.
2657         (tdesc_start_flags): Likewise.
2658         (tdesc_start_enum): Likewise.
2659         (tdesc_start_field): Likewise.
2660         (tdesc_start_enum_value): Likewise.
2661         (tdesc_start_vector): Likewise.
2662
2663 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
2664
2665         * extension.h (struct xmethod_worker) <clone>: Remove.
2666         * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
2667         Remove.
2668         (python_xmethod_worker::clone): Remove.
2669         * valops.c (find_overload_match): Use std::move instead of
2670         clone.
2671
2672 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
2673
2674         * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
2675         (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
2676         <free_xmethod_worker_data>: Remove.
2677         <get_matching_xmethod_workers>: Chance VEC to std::vector.
2678         <get_xmethod_arg_types>: Remove.
2679         <get_xmethod_result_type>: Remove.
2680         <invoke_xmethod>: Remove.
2681         * extension.c (new_xmethod_worker): Remove.
2682         (clone_xmethod_worker): Remove.
2683         (get_matching_xmethod_workers): Return void, pass std::vector by
2684         pointer.
2685         (get_xmethod_arg_types): Rename to...
2686         (xmethod_worker::get_arg_types): ... this, and adjust.
2687         (get_xmethod_result_type): Rename to...
2688         (xmethod_worker::get_result_type): ... this, and adjust.
2689         (invoke_xmethod): Remove.
2690         (free_xmethod_worker): Remove.
2691         (free_xmethod_worker_vec): Remove.
2692         * extension.h (enum ext_lang_rc): Move here from
2693         extension-priv.h.
2694         (struct xmethod_worker): Add constructor and destructor.
2695         <data>: Remove.
2696         <value>: Remove.
2697         <invoke, clone, do_get_result_type, do_get_arg_types>: New
2698         virtual pure methods.
2699         <get_arg_types, get_result_type>: New methods.
2700         (xmethod_worker_ptr): Remove typedef.
2701         (DEF_VEC_P (xmethod_worker_ptr)): Remove.
2702         (xmethod_worker_vec): Remove typedef.
2703         (xmethod_worker_up): New typedef.
2704         (invoke_xmethod): Remove.
2705         (clone_xmethod_worker): Remove.
2706         (free_xmethod_worker): Remove.
2707         (free_xmethod_worker_vec): Remove.
2708         (get_xmethod_arg_types): Remove.
2709         (get_xmethod_result_type): Remove.
2710         * valops.c (find_method_list): Use std::vector, don't use
2711         intermediate vector.
2712         (value_find_oload_method_list): Use std::vector.
2713         (find_overload_match): Use std::vector.
2714         (find_oload_champ): Use std::vector.
2715         * value.c (value_free): Use operator delete.
2716         (value_of_xmethod): Rename to...
2717         (value_from_xmethod): ... this.  Don't assign
2718         xmethod_worker::value, take rvalue-reference.
2719         (result_type_of_xmethod): Adjust.
2720         (call_xmethod): Adjust.
2721         * value.h: Include extension.h.
2722         (struct xmethod_worker): Don't forward-declare.
2723         (value_of_xmethod): Rename to...
2724         (value_from_xmethod): ... this, take rvalue-reference.
2725         * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
2726         (struct python_xmethod_worker): ... this, add constructor and
2727         destructor.
2728         <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
2729         (gdbpy_free_xmethod_worker_data): Rename to...
2730         (python_xmethod_worker::~python_xmethod_worker): ... this and
2731         adjust.
2732         (gdbpy_clone_xmethod_worker_data): Rename to...
2733         (python_xmethod_worker::clone): ... this and adjust.
2734         (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
2735         temporary vector.
2736         (gdbpy_get_xmethod_arg_types): Rename to...
2737         (python_xmethod_worker::do_get_arg_types): ... this and adjust.
2738         (gdbpy_get_xmethod_result_type): Rename to...
2739         (python_xmethod_worker::do_get_result_type): ... this and
2740         adjust.
2741         (gdbpy_invoke_xmethod): Rename to...
2742         (python_xmethod_worker::invoke): ... this and adjust.
2743         (new_python_xmethod_worker): Rename to...
2744         (python_xmethod_worker::python_xmethod_worker): ... this and
2745         adjust.
2746         * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
2747         Remove.
2748         (gdbpy_free_xmethod_worker_data): Remove.
2749         (gdbpy_get_matching_xmethod_workers): Use std::vector.
2750         (gdbpy_get_xmethod_arg_types): Remove.
2751         (gdbpy_get_xmethod_result_type): Remove.
2752         (gdbpy_invoke_xmethod): Remove.
2753         * python/python.c (python_extension_ops): Remove obsolete
2754         callbacks.
2755
2756 2018-01-05  Pedro Alves  <palves@redhat.com>
2757
2758         PR gdb/18653
2759         * common/signals-state-save-restore.c
2760         (save_original_signals_state): New parameter 'quiet'.  Warn if we
2761         find a custom handler preinstalled, instead of internal erroring.
2762         But only warn if !quiet.
2763         * common/signals-state-save-restore.h
2764         (save_original_signals_state): New parameter 'quiet'.
2765         * main.c (captured_main_1): Move save_original_signals_state call
2766         after option handling, and pass QUIET.
2767
2768 2018-01-05  Pedro Alves  <palves@redhat.com>
2769
2770         * spu-tdep.c (spu_catch_start): Pass
2771         symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
2772
2773 2018-01-05  Pedro Alves  <palves@redhat.com>
2774
2775         PR gdb/22670
2776         * ada-lang.c (literal_symbol_name_matcher): New function.
2777         (ada_get_symbol_name_matcher): Use it for
2778         symbol_name_match_type::SEARCH_NAME.
2779         * block.c (block_lookup_symbol): New parameter 'match_type'.  Pass
2780         it down instead of assuming symbol_name_match_type::FULL.
2781         * block.h (block_lookup_symbol): New parameter 'match_type'.
2782         * c-valprint.c (print_unpacked_pointer): Use
2783         lookup_symbol_search_name instead of lookup_symbol.
2784         * compile/compile-object-load.c (get_out_value_type): Pass down
2785         symbol_name_match_type::SEARCH_NAME.
2786         * cp-namespace.c (cp_basic_lookup_symbol): Pass down
2787         symbol_name_match_type::FULL.
2788         * cp-support.c (cp_get_symbol_name_matcher): Handle
2789         symbol_name_match_type::SEARCH_NAME.
2790         * infrun.c (insert_exception_resume_breakpoint): Use
2791         lookup_symbol_search_name.
2792         * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
2793         * psymtab.c (maintenance_check_psymtabs): Use
2794         symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
2795         * stack.c (print_frame_args): Use lookup_symbol_search_name and
2796         SYMBOL_SEARCH_NAME.
2797         * symtab.c (lookup_local_symbol): Don't demangle the lookup name
2798         if symbol_name_match_type::SEARCH_NAME.
2799         (lookup_symbol_in_language): Pass down
2800         symbol_name_match_type::FULL.
2801         (lookup_symbol_search_name): New.
2802         (lookup_language_this): Pass down
2803         symbol_name_match_type::SEARCH_NAME.
2804         (lookup_symbol_aux, lookup_local_symbol): New parameter
2805         'match_type'.  Pass it down.
2806         * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
2807         (lookup_symbol_search_name): New declaration.
2808         (lookup_symbol_in_block): New 'match_type' parameter.
2809
2810 2018-01-05  Pedro Alves  <palves@redhat.com>
2811
2812         PR gdb/22670
2813         * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
2814         ada_lookup_symbol.
2815         (ada_lookup_symbol): Reimplement in terms of
2816         ada_lookup_symbol_list, bits factored out from
2817         ada_lookup_encoded_symbol.
2818
2819 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
2820
2821         * ada-exp.y (write_object_renaming): When subscripting an array
2822         using a symbol as the index, pass the block in call to
2823         ada_lookup_encoded_symbol when looking that symbol up.
2824
2825 2018-01-05  Jerome Guitton  <guitton@adacore.com>
2826
2827         * ada-lang.c (ada_array_length): Use ada_index_type instead of
2828         TYPE_INDEX_TYPE.
2829
2830 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
2831
2832         * ada-lang.c (ada_to_fixed_value_create): Add handling of
2833         the case where VALUE_LVAL (val0) is not lval_memory.
2834
2835 2018-01-05  Xavier Roirand  <roirand@adacore.com>
2836
2837         * ada-valprint.c (print_optional_low_bound): Handle
2838         character-indexed array printing like boolean-indexed array
2839         printing.
2840
2841 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
2842
2843         * NEWS: Create a new section for the next release branch.
2844         Rename the section of the current branch, now that it has
2845         been cut.
2846
2847 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
2848
2849         GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
2850         * version.in: Bump version to 8.1.50.DATE-git.
2851
2852 2018-01-03  Xavier Roirand  <roirand@adacore.com>
2853
2854         * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
2855         Add field.
2856         * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
2857         Add field.
2858         (default_exception_support_info) <catch_handlers_sym>: Add field.
2859         (exception_support_info_fallback) <catch_handlers_sym>: Add field.
2860         (ada_exception_name_addr_1): Add "catch handlers" handling.
2861         (ada_exception_catchpoint_cond_string) <ex>: New parameter.
2862         Update all callers.
2863         (create_excep_cond_exprs) <ex>: Add parameter.
2864         (re_set_exception): Update create_excep_cond_exprs call.
2865         (print_it_exception, print_one_exception, print_mention_exception)
2866         (print_recreate_exception): Add "catch handler" handling.
2867         (allocate_location_catch_handlers, re_set_catch_handlers)
2868         (check_status_catch_handlers, print_it_catch_handlers)
2869         (print_one_catch_handlers, print_mention_catch_handlers)
2870         (print_recreate_catch_handlers): New function.
2871         (catch_handlers_breakpoint_ops): New variable.
2872         (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
2873         Add parameter.  Add "catch handler" handling.
2874         (ada_exception_sym_name, ada_exception_breakpoint_ops):
2875         Add "catch handler" handling.
2876         (ada_exception_catchpoint_cond_string): Add "catch handler"
2877         handling.
2878         (create_ada_exception_catchpoint): Update create_excep_cond_exprs
2879         call.
2880         (catch_ada_handlers_command): New function.
2881         (initialize_ada_catchpoint_ops): Initialize "catch handlers"
2882         operations structure.
2883         (_initialize_ada_language): Add "catch handlers" command entry.
2884         * NEWS: Document "catch handlers" feature.
2885
2886 2018-01-02  Joel Brobecker  <brobecker@adacore.com>
2887
2888         * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
2889         account when creating the array type of the slice.
2890         (ada_value_slice): Likewise.
2891
2892 2018-01-02  Joel Brobecker  <brobecker@adacore.com>
2893
2894         * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
2895         New enum value.
2896         (create_array_type_with_stride): Add byte_stride_prop parameter.
2897         * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
2898         New parameter.  Update all callers in this file.
2899         (array_type_has_dynamic_stride): New function.
2900         (is_dynamic_type_internal, resolve_dynamic_array): Add handling
2901         of arrays with dynamic byte strides.
2902         * dwarf2read.c (read_array_type): Add support for dynamic
2903         DW_AT_byte_stride attributes.
2904
2905 2018-01-02  Joel Brobecker  <brobecker@adacore.com>
2906
2907         * dwarf2read.c (read_unspecified_type): Treat
2908         DW_TAG_enumeration_type DIEs from Ada units as stubs.
2909
2910 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
2911
2912         Update copyright year range in all GDB files.
2913
2914 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
2915
2916         * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
2917         and gdb/testsuite/gdb.base/step-line.c.
2918
2919 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
2920
2921         * copyright.py (main): Dump the contents of
2922         MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
2923         even if BY_HAND is empty.
2924
2925 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
2926
2927         * top.c (print_gdb_version): Update Copyright year in version
2928         message.
2929
2930 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
2931
2932         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
2933
2934 For older changes see ChangeLog-2017.
2935 \f
2936 Local Variables:
2937 mode: change-log
2938 left-margin: 8
2939 fill-column: 74
2940 version-control: never
2941 coding: utf-8
2942 End: