Add tdesc osabi and architecture functions
[external/binutils.git] / gdb / ChangeLog
1 2018-04-18  Alan Hayward  <alan.hayward@arm.com>
2
3         * common/tdesc.h (tdesc_architecture_name): Add new declaration.
4         (tdesc_osabi_name): Likewise.
5         * target-descriptions.c (tdesc_architecture_name): Add new
6         function.
7         (tdesc_osabi_name): Likewise.
8
9 2018-04-18  Alan Hayward  <alan.hayward@arm.com>
10
11         * common/tdesc.c (tdesc_predefined_type): Move to here.
12         (tdesc_named_type): Likewise.
13         (tdesc_create_vector): Likewise.
14         (tdesc_create_struct): Likewise.
15         (tdesc_set_struct_size): Likewise.
16         (tdesc_create_union): Likewise.
17         (tdesc_create_flags): Likewise.
18         (tdesc_create_enum): Likewise.
19         (tdesc_add_field): Likewise.
20         (tdesc_add_typed_bitfield): Likewise.
21         (tdesc_add_bitfield): Likewise.
22         (tdesc_add_flag): Likewise.
23         (tdesc_add_enum_value): Likewise.
24         * common/tdesc.h (struct tdesc_type_builtin): Likewise.
25         (struct tdesc_type_vector): Likewise.
26         (struct tdesc_type_field): Likewise.
27         (struct tdesc_type_with_fields): Likewise.
28         (tdesc_create_enum): Add declaration.
29         (tdesc_add_typed_bitfield): Likewise.
30         (tdesc_add_enum_value): Likewise.
31         * target-descriptions.c (tdesc_type_field): Move from here.
32         (tdesc_type_builtin): Likewise.
33         (tdesc_type_vector): Likewise.
34         (tdesc_type_with_fields): Likewise.
35         (tdesc_predefined_types): Likewise.
36         (tdesc_named_type): Likewise.
37         (tdesc_create_vector): Likewise.
38         (tdesc_create_struct): Likewise.
39         (tdesc_set_struct_size): Likewise.
40         (tdesc_create_union): Likewise.
41         (tdesc_create_flags): Likewise.
42         (tdesc_create_enum): Likewise.
43         (tdesc_add_field): Likewise.
44         (tdesc_add_typed_bitfield): Likewise.
45         (tdesc_add_bitfield): Likewise.
46         (tdesc_add_flag): Likewise.
47         (tdesc_add_enum_value): Likewise.
48         * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
49         (tdesc_add_typed_bitfield): Likewise.
50         (tdesc_add_enum_value): Likewise.
51
52 2018-04-18  Alan Hayward  <alan.hayward@arm.com>
53
54         * common/tdesc.c (tdesc_feature::accept): Move to here.
55         (tdesc_feature::operator==): Likewise.
56         (tdesc_create_reg): Likewise.
57         * common/tdesc.h (tdesc_type_kind): Likewise.
58         (struct tdesc_type): Likewise.
59         (struct tdesc_feature): Likewise.
60         * regformats/regdat.sh: Create a feature.
61         * target-descriptions.c (tdesc_type_kind): Move from here.
62         (tdesc_type): Likewise.
63         (tdesc_type_up): Likewise.
64         (tdesc_feature): Likewise.
65         (tdesc_create_reg): Likewise.
66
67 2018-04-18  Alan Hayward  <alan.hayward@arm.com>
68
69         * Makefile.in: Add arch/tdesc.c
70         * common/tdesc.c: New file.
71         * common/tdesc.h (tdesc_element_visitor): Move to here.
72         (tdesc_element): Likewise.
73         (tdesc_reg): Likewise.
74         (tdesc_reg_up): Likewise.
75         * regformats/regdef.h (reg): Add offset to constructors.
76         * target-descriptions.c (tdesc_element_visitor): Move from here.
77         (tdesc_element): Likewise.
78         (tdesc_reg): Likewise.
79         (tdesc_reg_up): Likewise.
80
81 2018-04-17  Tom Tromey  <tom@tromey.com>
82
83         * dwarf2read.c (quirk_rust_enum): Conditionally drop the
84         discriminant field.
85
86 2018-04-17  Tom Tromey  <tom@tromey.com>
87
88         * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
89
90 2018-04-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
91
92         * symtab.c (print_symbol_info): Skip printing filename and line
93         number when `last' is NULL.
94         (symtab_symbol_info): Use empty string instead of NULL for first
95         invocation of print_symbol_info.
96         (rbreak_command): Pass NULL to `last' parameter of
97         print_symbol_info.
98
99 2018-04-16  Simon Marchi  <simon.marchi@ericsson.com>
100
101         * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
102         instead of nullptr.
103
104 2018-04-16  Pedro Alves  <palves@redhat.com>
105
106         * MAINTAINERS (sh): Remove.
107         * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
108         (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
109         (ALLDEPFILES): Remove sh64-tdep.c.
110         * NEWS: Mentions that support for SH-5/SH64 is removed.
111         * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
112         (sh*-*-openbsd*): Ditto.
113         (sh64-*-elf*): Remove.
114         (sh*): Remove.
115         * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
116         * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
117         * sh-tdep.c: No longer include "sh64-tdep.h".
118         (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
119         * sh64-tdep.c, sh64-tdep.h: Remove files.
120
121 2018-04-16  Pedro Alves  <palves@redhat.com>
122
123         * MAINTAINERS: Remove m88k.
124         * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
125         (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
126         (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
127         * NEWS: Mention that support for m88k was removed.
128         * configure.host (m88*-*-*): Remove support.
129         * configure.nat (m88k-*-*): Remove support.
130         * configure.tgt (m88*-*-openbsd*): Remove.
131         * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
132
133 2018-04-15  Simon Marchi  <simon.marchi@polymtl.ca>
134
135         * configure.tgt (x86_tobjs): New variable.
136         (amd64_tobjs, i386_tobjs): Use it.
137
138 2018-04-13  Andreas Arnez  <arnez@linux.vnet.ibm.com>
139
140         * symtab.c (print_symbol_info): Precede the symbol definition by
141         the line number when available.
142         * NEWS: Advertise this enhancement.
143
144 2018-04-13  Markus Metzger  <markus.t.metzger@intel.com>
145
146         * NEWS (New options): announce set/show record btrace cpu.
147         * btrace.c: Include record-btrace.h.
148         (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
149         the vendor is unknown.
150         (btrace_compute_ftrace_1): Add cpu parameter.  Update callers.
151         Maybe overwrite the btrace configuration's cpu.
152         (btrace_compute_ftrace): Add cpu parameter.  Update callers.
153         (btrace_fetch): Add cpu parameter.  Update callers.
154         (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
155         Maybe overwrite the btrace configuration's cpu.  Skip enabling
156         errata workarounds if the vendor is unknown.
157         * python/py-record-btrace.c: Include record-btrace.h.
158         (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
159         (recpy_bt_function_call_history): Call record_btrace_get_cpu.
160         * record-btrace.c (record_btrace_cpu_state_kind): New.
161         (record_btrace_cpu): New.
162         (set_record_btrace_cpu_cmdlist): New.
163         (record_btrace_get_cpu): New.
164         (require_btrace_thread, record_btrace_info)
165         (record_btrace_resume_thread): Call record_btrace_get_cpu.
166         (cmd_set_record_btrace_cpu_none): New.
167         (cmd_set_record_btrace_cpu_auto): New.
168         (cmd_set_record_btrace_cpu): New.
169         (cmd_show_record_btrace_cpu): New.
170         (_initialize_record_btrace): Initialize set/show record btrace cpu
171         commands.
172         * record-btrace.h (record_btrace_get_cpu): New.
173
174 2018-04-13  Markus Metzger  <markus.t.metzger@intel.com>
175
176         * record.c (set_record_command): Fix typo in message.
177
178 2018-04-13  Markus Metzger  <markus.t.metzger@intel.com>
179
180         * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
181
182 2018-04-13  Markus Metzger  <markus.t.metzger@intel.com>
183
184         * infrun.c (process_event_stop_test): Call
185         gdbarch_in_indirect_branch_thunk.
186         * gdbarch.sh (in_indirect_branch_thunk): New.
187         * gdbarch.c: Regenerated.
188         * gdbarch.h: Regenerated.
189         * x86-tdep.h: New.
190         * x86-tdep.c: New.
191         * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
192         (HFILES_NO_SRCDIR): Add x86-tdep.h.
193         (ALLDEPFILES): Add x86-tdep.c.
194         * arch-utils.h (default_in_indirect_branch_thunk): New.
195         * arch-utils.c (default_in_indirect_branch_thunk): New.
196         * i386-tdep: Include x86-tdep.h.
197         (i386_in_indirect_branch_thunk): New.
198         (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
199         function.
200         * amd64-tdep: Include x86-tdep.h.
201         (amd64_in_indirect_branch_thunk): New.
202         (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
203
204 2018-04-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
205
206         PR gdb/23053
207         * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
208         (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
209         (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
210         regression.
211
212 2018-04-12  Tom Tromey  <tom@tromey.com>
213
214         * rust-lang.c (rust_print_struct_def): Remove univariant code.
215         (rust_evaluate_subexp): Likewise.
216
217 2018-04-12  Pedro Alves  <palves@redhat.com>
218
219         * procfs.c (procfs_detach): Make forward declaration's prototype
220         match definition's protototype.
221         (proc_get_LDT_entry): Remove stale do_cleanups call.
222
223 2018-04-12  Pedro Alves  <palves@redhat.com>
224
225         * target.h (target_ops::to_has_exited): Delete.
226         (target_has_exited): Delete.
227         * target-delegates.c: Regenerate.
228
229 2018-04-11  Pedro Alves  <palves@redhat.com>
230
231         * target.c (fileio_fh_t::t): Add comment.
232         (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
233         (target_fileio_close): Handle a NULL target.
234         (invalidate_fileio_fh): New.
235         (target_close): Call it.
236         * remote.c (remote_hostio_send_command): No longer check whether
237         remote_desc is open.
238
239 2018-04-11  Pedro Alves  <palves@redhat.com>
240
241         * target.c (fileio_fh_t): Make it a named struct instead of a
242         typedef.
243         (fileio_fh_t::is_closed): New method.
244         (DEF_VEC_O (fileio_fh_t)): Remove.
245         (fileio_fhandles): Now a std::vector.
246         (is_closed_fileio_fh): Delete.
247         (acquire_fileio_fd): Adjust.  Rename parameters.
248         (release_fileio_fd): Adjust.
249         (fileio_fd_to_fh): Reimplement as a function instead of a macro.
250         (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
251         (target_fileio_close): Adjust.
252
253 2018-04-10  Simon Marchi  <simon.marchi@ericsson.com>
254
255         * auto-load.c (auto_load_safe_path_vec_update): Iterate by
256         index.
257
258 2018-04-10  Pedro Alves  <palves@redhat.com>
259
260         * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
261         (scoped_finish_thread_state): New class.
262         * infcmd.c (run_command_1): Use it instead of finish_thread_state
263         cleanup.
264         * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
265         (fetch_inferior_event, normal_stop): Likewise.
266         * thread.c (finish_thread_state_cleanup): Delete.
267
268 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
269             Pedro Alves  <palves@redhat.com>
270
271         * value.c: Include "selftest.h" and "common/array-view.h".
272         (struct range) <operator ==>: New.
273         (test_ranges_contain): New.
274         (check_ranges_vector): New.
275         (test_insert_into_bit_range_vector): New.
276         (_initialize_values): Register selftests.
277         * common/array-view.h (operator==, operator!=): New.
278
279 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
280
281         * common/gdb_vecs.h (unordered_remove): Add overload that takes
282         an iterator.
283         * inline-frame.c: Include <algorithm>.
284         (struct inline_state): Add constructor.
285         (inline_state_s): Remove.
286         (DEF_VEC_O(inline_state_s)): Remove.
287         (inline_states): Change type to std::vector.
288         (find_inline_frame_state): Adjust to std::vector.
289         (allocate_inline_frame_state): Remove.
290         (clear_inline_frame_state): Adjust to std::vector.
291         (skip_inline_frames): Adjust to std::vector.
292
293 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
294
295         * tracepoint.h (struct trace_state_variable): Add constructor.
296         <name>: Change type to std::string.
297         * tracepoint.c (tsv_s): Remove.
298         (DEF_VEC_O(tsv_s)): Remove.
299         (tvariables): Change to std::vector.
300         (create_trace_state_variable): Adjust to std::vector.
301         (find_trace_state_variable): Likewise.
302         (find_trace_state_variable_by_number): Likewise.
303         (delete_trace_state_variable): Likewise.
304         (trace_variable_command): Adjust to std::string.
305         (delete_trace_variable_command): Likewise.
306         (tvariables_info_1): Adjust to std::vector.
307         (save_trace_state_variables): Likewise.
308         (start_tracing): Likewise.
309         (merge_uploaded_trace_state_variables): Adjust to std::vector
310         and std::string.
311         * target.h (struct target_ops)
312         <to_download_trace_state_variable>: Pass reference to
313         trace_state_variable.
314         * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
315         * target-delegates.c: Re-generate.
316         * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
317         (mi_tsv_deleted): Likewise.
318         * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
319         * remote.c (remote_download_trace_state_variable): Change
320         pointer to reference and adjust.
321         * make-target-delegates (parse_argtypes): Handle references.
322         (write_function_header): Likewise.
323         (munge_type): Likewise.
324
325 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
326
327         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
328         string_view-selftests.c.
329         * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
330         testsuite.
331         * unittests/basic_string_view/cons/char/1.cc: Likewise.
332         * unittests/basic_string_view/cons/char/2.cc: Likewise.
333         * unittests/basic_string_view/cons/char/3.cc: Likewise.
334         * unittests/basic_string_view/element_access/char/1.cc:
335         Likewise.
336         * unittests/basic_string_view/element_access/char/empty.cc:
337         Likewise.
338         * unittests/basic_string_view/element_access/char/front_back.cc:
339         Likewise.
340         * unittests/basic_string_view/inserters/char/2.cc: Likewise.
341         * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
342         Likewise.
343         * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
344         Likewise.
345         * unittests/basic_string_view/modifiers/swap/char/1.cc:
346         Likewise.
347         * unittests/basic_string_view/operations/compare/char/1.cc:
348         Likewise.
349         * unittests/basic_string_view/operations/compare/char/13650.cc:
350         Likewise.
351         * unittests/basic_string_view/operations/copy/char/1.cc:
352         Likewise.
353         * unittests/basic_string_view/operations/data/char/1.cc:
354         Likewise.
355         * unittests/basic_string_view/operations/find/char/1.cc:
356         Likewise.
357         * unittests/basic_string_view/operations/find/char/2.cc:
358         Likewise.
359         * unittests/basic_string_view/operations/find/char/3.cc:
360         Likewise.
361         * unittests/basic_string_view/operations/find/char/4.cc:
362         Likewise.
363         * unittests/basic_string_view/operations/rfind/char/1.cc:
364         Likewise.
365         * unittests/basic_string_view/operations/rfind/char/2.cc:
366         Likewise.
367         * unittests/basic_string_view/operations/rfind/char/3.cc:
368         Likewise.
369         * unittests/basic_string_view/operations/substr/char/1.cc:
370         Likewise.
371         * unittests/basic_string_view/operators/char/2.cc: Likewise.
372         * unittests/string_view-selftests.c: New file.
373
374 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
375
376         * unittests/basic_string_view/capacity/1.cc: New file.
377         * unittests/basic_string_view/capacity/empty_neg.cc: New file.
378         * unittests/basic_string_view/cons/char/1.cc: New file.
379         * unittests/basic_string_view/cons/char/2.cc: New file.
380         * unittests/basic_string_view/cons/char/3.cc: New file.
381         * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
382         * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
383         * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
384         * unittests/basic_string_view/element_access/char/1.cc: New file.
385         * unittests/basic_string_view/element_access/char/2.cc: New file.
386         * unittests/basic_string_view/element_access/char/empty.cc: New file.
387         * unittests/basic_string_view/element_access/char/front_back.cc: New file.
388         * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
389         * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
390         * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
391         * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
392         * unittests/basic_string_view/include.cc: New file.
393         * unittests/basic_string_view/inserters/char/1.cc: New file.
394         * unittests/basic_string_view/inserters/char/2.cc: New file.
395         * unittests/basic_string_view/inserters/char/3.cc: New file.
396         * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
397         * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
398         * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
399         * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
400         * unittests/basic_string_view/literals/types.cc: New file.
401         * unittests/basic_string_view/literals/values.cc: New file.
402         * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
403         * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
404         * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
405         * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
406         * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
407         * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
408         * unittests/basic_string_view/operations/compare/char/1.cc: New file.
409         * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
410         * unittests/basic_string_view/operations/compare/char/2.cc: New file.
411         * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
412         * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
413         * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
414         * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
415         * unittests/basic_string_view/operations/copy/char/1.cc: New file.
416         * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
417         * unittests/basic_string_view/operations/data/char/1.cc: New file.
418         * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
419         * unittests/basic_string_view/operations/find/char/1.cc: New file.
420         * unittests/basic_string_view/operations/find/char/2.cc: New file.
421         * unittests/basic_string_view/operations/find/char/3.cc: New file.
422         * unittests/basic_string_view/operations/find/char/4.cc: New file.
423         * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
424         * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
425         * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
426         * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
427         * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
428         * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
429         * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
430         * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
431         * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
432         * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
433         * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
434         * unittests/basic_string_view/operations/substr/char/1.cc: New file.
435         * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
436         * unittests/basic_string_view/operators/char/2.cc: New file.
437         * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
438         * unittests/basic_string_view/range_access/char/1.cc: New file.
439         * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
440         * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
441         * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
442         * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
443         * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
444         * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
445         * unittests/basic_string_view/requirements/typedefs.cc: New file.
446         * unittests/basic_string_view/typedefs.cc: New file.
447         * unittests/basic_string_view/types/1.cc: New file.
448
449 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
450
451         * common/gdb_string_view.h: Remove libstdc++ implementation
452         details, adjust to gdb reality.
453         * common/gdb_string_view.tcc: Likewise.
454         * cli/cli-script.c (struct string_view): Remove.
455         (user_args) <m_args>: Change element type to gdb::string_view.
456         (user_args::insert_args): Adjust.
457
458 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
459
460         * common/gdb_string_view.h: New file.
461         * common/gdb_string_view.tcc: New file.
462
463 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
464
465         * ax_cxx_compile_stdcxx.m4: Sync with upstream.
466         * configure: Re-generate.
467
468 2018-04-09  Pedro Alves  <palves@redhat.com>
469
470         * gdbarch.sh: Include "observable.h" instead of "observer.h".
471         (set_target_gdbarch): Call
472         gdb::observers::architecture_changed.notify instead of
473         observer_notify_architecture_changed.
474
475 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
476
477         * tracepoint.c (struct current_traceframe_cleanup): Remove.
478         (do_restore_current_traceframe_cleanup): Remove.
479         (restore_current_traceframe_cleanup_dtor): Remove.
480         (make_cleanup_restore_current_traceframe): Remove.
481         (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
482         New.
483         * tracepoint.h (struct scoped_restore_current_traceframe): New.
484         * infrun.c (fetch_inferior_event): Use
485         scoped_restore_current_traceframe.
486
487 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
488
489         * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
490         Remove.
491         <n_allocated_type_units>: Remove.
492         <all_type_units>: Change to std::vector.
493         * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
494         to std::vector change.
495         (dwarf2_per_objfile::get_cutu): Likewise.
496         (dwarf2_per_objfile::get_tu): Likewise.
497         (create_signatured_type_table_from_index): Likewise.
498         (create_signatured_type_table_from_debug_names): Likewise.
499         (dw2_symtab_iter_next): Likewise.
500         (dw2_print_stats): Likewise.
501         (dw2_expand_all_symtabs): Likewise.
502         (dw2_expand_marked_cus): Likewise.
503         (dw2_debug_names_iterator::next): Likewise.
504         (dwarf2_initialize_objfile): Likewise.
505         (add_signatured_type_cu_to_table): Likewise.
506         (create_all_type_units): Likewise.
507         (add_type_unit): Likewise.
508         (struct tu_abbrev_offset): Add constructor.
509         (build_type_psymtabs_1): Adjust to std::vector change.
510         (print_tu_stats): Likewise.
511         * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
512         (write_debug_names): Likewise.
513
514 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
515
516         * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
517         Make an std::vector.
518         <n_comp_units>: Remove.
519         * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
520         to std::vector change.
521         (dwarf2_per_objfile::get_cutu): Likewise.
522         (dwarf2_per_objfile::get_cu): Likewise.
523         (create_cus_from_index): Likewise.
524         (create_addrmap_from_index): Likewise.
525         (create_addrmap_from_aranges): Likewise.
526         (dwarf2_read_index): Likewise.
527         (dw2_find_last_source_symtab): Likewise.
528         (dw2_map_symtabs_matching_filename): Likewise.
529         (dw2_symtab_iter_next): Likewise.
530         (dw2_print_stats): Likewise.
531         (dw2_expand_all_symtabs): Likewise.
532         (dw2_expand_symtabs_with_fullname): Likewise.
533         (dw2_expand_marked_cus): Likewise.
534         (dw2_map_symbol_filenames): Likewise.
535         (create_cus_from_debug_names): Likewise.
536         (dwarf2_read_debug_names): Likewise.
537         (dw2_debug_names_iterator::next): Likewise.
538         (dwarf2_initialize_objfile): Likewise.
539         (set_partial_user): Likewise.
540         (dwarf2_build_psymtabs_hard): Likewise.
541         (read_comp_units_from_section): Remove arguments, adjust to
542         std::vector change.
543         (create_all_comp_units): Adjust to std::vector and
544         read_comp_units_from_section changes.
545         (dwarf2_find_containing_comp_unit): Adjust to std::vector
546         change.
547         * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
548         (psyms_seen_size): Likewise.
549         (write_gdbindex): Likewise.
550         (write_debug_names): Likewise.
551
552 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
553
554         * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
555         with dwarf2_per_objfile.
556         (create_cus_from_index): Likewise.
557         (create_signatured_type_table_from_index): Likewise.
558         (dwarf2_read_index): Likewise.
559         (dwarf2_initialize_objfile): Likewise.
560         (dwarf2_fetch_die_loc_sect_off):  Get dwarf2_per_objfile from
561         per_cu rather than get_dwarf2_per_objfile.
562
563 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
564
565         * dwarf2read.h (struct signatured_type): Forward declare.
566         (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
567         New methods.
568         * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
569         (dw2_get_cutu): ...this.
570         (dwarf2_per_objfile::get_cu): Rename from...
571         (dw2_get_cu): ...this.
572         (dwarf2_per_objfile::get_tu): New.
573         (create_addrmap_from_index): Adjust.
574         (create_addrmap_from_aranges): Adjust.
575         (dw2_find_last_source_symtab): Adjust.
576         (dw2_map_symtabs_matching_filename): Adjust.
577         (dw2_symtab_iter_next): Adjust.
578         (dw2_print_stats): Adjust.
579         (dw2_expand_all_symtabs): Adjust.
580         (dw2_expand_symtabs_with_fullname): Adjust.
581         (dw2_expand_marked_cus): Adjust.
582         (dw_expand_symtabs_matching_file_matcher): Adjust.
583         (dw2_map_symbol_filenames): Adjust.
584         (dw2_debug_names_iterator::next): Adjust.
585         (dwarf2_initialize_objfile): Adjust.
586         (set_partial_user): Adjust.
587         (dwarf2_build_psymtabs_hard): Adjust.
588
589 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
590
591         * dwarf2read.c (create_signatured_type_table_from_debug_names):
592         Remove unused variables.
593         (dw2_map_symtabs_matching_filename): Likewise.
594         (dwarf2_record_block_ranges): Likewise.
595         (dwarf2_read_addr_index): Likewise.
596         (follow_die_offset): Likewise.
597
598 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
599
600         * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
601         to symbol_file_add_main.
602
603 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
604
605         PR mi/22299
606         * mi/mi-console.c (do_fputc_async_safe): New.
607         (mi_console_file::write_async_safe): New.
608         (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
609         * mi/mi-console.h (class mi_console_file) <write_async_safe>:
610         New.
611         * ui-file.c (ui_file::putstrn): Adjust call to
612         fputstrn_unfiltered.
613         * utils.c (printchar): Replace do_fputs and do_fprintf
614         parameters by do_fputc.
615         (fputstr_filtered): Adjust call to printchar.
616         (fputstr_unfiltered): Likewise.
617         (fputstrn_filtered): Likewise.
618         (fputstrn_unfiltered): Add do_fputc parameter, pass to
619         printchar.
620         * utils.h (do_fputc_ftype): New typedef.
621         (fputstrn_unfiltered): Add do_fputc parameter.
622
623 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
624
625         * regformats/i386/i386-avx.dat: Remove.
626
627 2018-04-07  Simon Marchi  <simon.marchi@ericsson.com>
628
629         PR gdb/22979
630         * amd64-tdep.c (amd64_none_init_abi): New function.
631         (amd64_x32_none_init_abi): New function.
632         (_initialize_amd64_tdep): Register handlers for x86-64 and
633         x64_32 with GDB_OSABI_NONE.
634         * osabi.c (gdbarch_init_osabi): Allow running handlers for the
635         GDB_OSABI_NONE osabi.
636
637 2018-04-07  Simon Marchi  <simon.marchi@ericsson.com>
638
639         PR gdb/22980
640         * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
641         GDB_OSABI_NONE.
642         * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
643         * osabi.c (gdb_osabi_names): Add "unknown" entry.
644
645 2018-04-07  Simon Marchi  <simon.marchi@ericsson.com>
646
647         * common/byte-vector.h (char_vector): New type.
648         * target.h (target_read_alloc): Return
649         gdb::optional<byte_vector>.
650         (target_read_stralloc): Return gdb::optional<char_vector>.
651         (target_get_osdata): Return gdb::optional<char_vector>.
652         * target.c (target_read_alloc_1): Templatize.  Replacement
653         manual memory management with vector.
654         (target_read_alloc): Change return type, adjust.
655         (target_read_stralloc): Change return type, adjust.
656         (target_get_osdata): Change return type, adjust.
657         * auxv.c (struct auxv_info) <length>: Remove.
658         <data>: Change type to gdb::optional<byte_vector>.
659         (auxv_inferior_data_cleanup): Free auxv_info with delete.
660         (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
661         (target_auxv_search): Adjust.
662         (fprint_target_auxv): Adjust.
663         * avr-tdep.c (avr_io_reg_read_command): Adjust.
664         * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
665         (linux_make_corefile_notes): Adjust.
666         * osdata.c (get_osdata): Adjust.
667         * remote.c (remote_get_threads_with_qxfer): Adjust.
668         (remote_memory_map): Adjust.
669         (remote_traceframe_info): Adjust.
670         (btrace_read_config): Adjust.
671         (remote_read_btrace): Adjust.
672         (remote_pid_to_exec_file): Adjust.
673         * solib-aix.c (solib_aix_get_library_list): Adjust.
674         * solib-dsbt.c (decode_loadmap): Don't free buf.
675         (dsbt_get_initial_loadmaps): Adjust.
676         * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
677         * solib-target.c (solib_target_current_sos): Adjust.
678         * tracepoint.c (sdata_make_value): Adjust.
679         * xml-support.c (xinclude_start_include): Adjust.
680         (xml_fetch_content_from_file): Adjust.
681         * xml-support.h (xml_fetch_another): Change return type.
682         (xml_fetch_content_from_file): Change return type.
683         * xml-syscall.c (xml_init_syscalls_info): Adjust.
684         * xml-tdesc.c (file_read_description_xml): Adjust.
685         (fetch_available_features_from_target): Change return type.
686         (target_fetch_description_xml): Adjust.
687         (target_read_description_xml): Adjust.
688
689 2018-04-06  Tom Tromey  <tom@tromey.com>
690
691         * value.c (~value): Update.
692         (struct value) <contents>: Now unique_xmalloc_ptr.
693         (value_contents_bits_eq, allocate_value_contents)
694         (value_contents_raw, value_contents_all_raw)
695         (value_contents_for_printing, value_contents_for_printing_const)
696         (set_value_enclosing_type): Update.
697
698 2018-04-06  Tom Tromey  <tom@tromey.com>
699
700         * value.c (range_s): Remove typedef, VEC.
701         (struct range): Add operator<.
702         (range_lessthan): Remove.
703         (ranges_contain): Change type.
704         (~value): Update.
705         (struct value) <unavailable, optimized_out>: Now std::vector.
706         (value_entirely_available)
707         (value_entirely_covered_by_range_vector)
708         (value_entirely_unavailable, value_entirely_optimized_out):
709         Update.
710         (insert_into_bit_range_vector): Change argument type.
711         (find_first_range_overlap): Likewise.
712         (struct ranges_and_idx, value_contents_bits_eq)
713         (require_not_optimized_out, require_available): Update.
714         (ranges_copy_adjusted): Change argument types.
715         (value_optimized_out, value_copy, value_fetch_lazy): Update.
716
717 2018-04-06  Tom Tromey  <tom@tromey.com>
718
719         * value.c (~value): Update.
720         (struct value) <parent>: Now a value_ref_ptr.
721         (value_parent, set_value_parent, value_address, value_copy):
722         Update.
723
724 2018-04-06  Tom Tromey  <tom@tromey.com>
725
726         * value.c (struct value): Add constructor, destructor, and member
727         initializers.
728         (allocate_value_lazy, value_decref): Update.
729
730 2018-04-06  Tom Tromey  <tom@tromey.com>
731
732         * value.c (struct value) <released, next>: Remove.
733         (all_values): Now a std::vector.
734         (allocate_value_lazy): Update.
735         (value_next): Remove.
736         (value_mark, value_free_to_mark, release_value)
737         (value_release_to_mark): Update.
738
739 2018-04-06  Tom Tromey  <tom@tromey.com>
740
741         * value.h (fetch_subexp_value, value_release_to_mark): Update.
742         (free_value_chain): Remove.
743         * value.c (free_value_chain): Remove.
744         (value_release_to_mark): Return a std::vector.
745         * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
746         std::vector.
747         (check_condition): Update.
748         * eval.c (fetch_subexp_value): Change "val_chain" to a
749         std::vector.
750         * breakpoint.c (update_watchpoint): Update.
751         (can_use_hardware_watchpoint): Change "vals" to a std::vector.
752
753 2018-04-06  Tom Tromey  <tom@tromey.com>
754
755         * value.h (free_all_values): Remove.
756         * value.c (free_all_values): Remove.
757
758 2018-04-06  Tom Tromey  <tom@tromey.com>
759
760         * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
761         (value_history_chain, value_history_count): Remove.
762         (value_history): New global.
763         (record_latest_value, access_value_history, show_values)
764         (preserve_values): Update.
765
766 2018-04-06  Tom Tromey  <tom@tromey.com>
767
768         * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
769         * varobj.c (varobj_set_display_format, varobj_set_value)
770         (install_default_visualizer, construct_visualizer)
771         (install_new_value, ~varobj, varobj_get_value_type)
772         (my_value_of_variable, varobj_editable_p): Update.
773         * c-varobj.c (c_describe_child, c_value_of_variable)
774         (cplus_number_of_children, cplus_describe_child): Update.
775         * ada-varobj.c (ada_number_of_children, ada_name_of_child)
776         (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
777         (ada_value_of_variable, ada_value_is_changeable_p): Update.
778
779 2018-04-06  Tom Tromey  <tom@tromey.com>
780
781         * printcmd.c (last_examine_address): Change type to
782         value_ref_ptr.
783         (do_examine, x_command): Update.
784
785 2018-04-06  Tom Tromey  <tom@tromey.com>
786
787         * value.c (release_value): Update.
788         * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
789         (struct bpstats) <val>: Now a value_ref_ptr.
790         * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
791         (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
792         (~watchpoint, print_it_watchpoint, watch_command_1)
793         (invalidate_bp_value_on_memory_change): Update.
794
795 2018-04-06  Tom Tromey  <tom@tromey.com>
796
797         * varobj.c (varobj_clear_saved_item)
798         (update_dynamic_varobj_children, install_new_value, ~varobj):
799         Update.
800         * value.h (value_incref): Move declaration earlier.
801         (value_decref): Rename from value_free.
802         (struct value_ref_policy): New.
803         (value_ref_ptr): New typedef.
804         (struct value_deleter): Remove.
805         (gdb_value_up): Remove typedef.
806         (release_value): Change return type.
807         (release_value_or_incref): Remove.
808         * value.c (set_value_parent): Update.
809         (value_incref): Change return type.
810         (value_decref): Rename from value_free.
811         (value_free_to_mark, free_all_values, free_value_chain): Update.
812         (release_value): Return value_ref_ptr.
813         (release_value_or_incref): Remove.
814         (record_latest_value, set_internalvar, clear_internalvar):
815         Update.
816         * stack.c (info_frame_command): Don't call value_free.
817         * python/py-value.c (valpy_dealloc, valpy_new)
818         (value_to_value_object): Update.
819         * printcmd.c (do_examine): Update.
820         * opencl-lang.c (lval_func_free_closure): Update.
821         * mi/mi-main.c (register_changed_p): Don't call value_free.
822         * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
823         * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
824         * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
825         value_free.
826         * guile/scm-value.c (vlscm_free_value_smob)
827         (vlscm_scm_from_value): Update.
828         * frame.c (frame_register_unwind, frame_unwind_register_signed)
829         (frame_unwind_register_unsigned, get_frame_register_bytes)
830         (put_frame_register_bytes): Don't call value_free.
831         * findvar.c (address_from_register): Don't call value_free.
832         * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
833         * dwarf2loc.c (entry_data_value_free_closure)
834         (value_of_dwarf_reg_entry, free_pieced_value_closure)
835         (dwarf2_evaluate_loc_desc_full): Update.
836         * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
837         (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
838         (~watchpoint, watch_command_1)
839         (invalidate_bp_value_on_memory_change): Update.
840         * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
841
842 2018-04-06  Simon Marchi  <simon.marchi@polymtl.ca>
843
844         PR gdb/23022
845         * warning.m4: Add -Wno-error=deprecated-register.
846         * configure: Re-generate.
847
848 2018-04-05  Tom Tromey  <tom@tromey.com>
849
850         * linespec.h: Remove include of "vec.h".
851
852 2018-04-05  Tom Tromey  <tom@tromey.com>
853
854         * linespec.c (typep): Remove typedef.
855         (find_methods, find_superclass_methods): Take a std::vector.
856         (find_method): Use std::vector.
857
858 2018-04-05  Tom Tromey  <tom@tromey.com>
859
860         * utils.c (compare_strings): Remove.
861         * utils.h (compare_strings): Remove.
862         * objc-lang.h (find_imps): Update.
863         * objc-lang.c (find_methods): Take a std::vector.
864         (uniquify_strings, find_imps): Likewise.
865         * linespec.c (find_methods): Take a std::vector.
866         (decode_objc): Use std::vector.
867         (add_all_symbol_names_from_pspace, find_superclass_methods): Take
868         a std::vector.
869         (find_method, find_function_symbols): Use std::vector.
870
871 2018-04-05  Tom Tromey  <tom@tromey.com>
872
873         * completer.c (completion_tracker::completion_tracker): Remove
874         cast.
875         (completion_tracker::discard_completions): Likewise.
876         * breakpoint.c (ambiguous_names_p): Remove cast.
877         * ada-lang.c (_initialize_ada_language): Remove cast.
878         * utils.h (streq): Update.
879         (streq_hash): Add new declaration.
880         * utils.c (streq): Return bool.
881         (streq_hash): New function.
882
883 2018-04-05  Tom Tromey  <tom@tromey.com>
884
885         * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
886         Remove a string copy.
887
888 2018-04-05  Tom Tromey  <tom@tromey.com>
889
890         * linespec.c (filter_results): Use std::vector.
891         (decode_line_2, decode_line_full): Update.
892
893 2018-04-05  Tom Tromey  <tom@tromey.com>
894
895         * linespec.c (canonical_to_fullform): Return std::string.
896         (filter_results): Update.
897         (struct decode_line_2_item): Add constructor.
898         <fullform, displayform>: Now std::string.
899         (decode_line_2_compare_items): Now a std::sort comparator.
900         (decode_line_2): Update.
901
902 2018-04-05  Tom Tromey  <tom@tromey.com>
903
904         * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
905         (unexpected_linespec_error): Update.
906         (linespec_parse_basic, parse_linespec): Update.
907
908 2018-04-05  Tom Tromey  <tom@tromey.com>
909
910         * linespec.c (linespec_parse_basic): Reindent.
911
912 2018-04-05  Tom Tromey  <tom@tromey.com>
913
914         * minsyms.h (iterate_over_minimal_symbols): Update.
915         * minsyms.c (iterate_over_minimal_symbols): Take a
916         gdb::function_view.
917         * linespec.c (struct collect_minsyms): Remove.
918         (compare_msyms): Now a std::sort comparator.
919         (add_minsym): Add parameters.
920         (search_minsyms_for_name): Update.  Use std::vector.
921
922 2018-04-03  Tom Tromey  <tom@tromey.com>
923
924         * mipsread.c (read_alphacoff_dynamic_symtab): Use
925         gdb::byte_vector.
926
927 2018-04-02  Weimin Pan  <weimin.pan@oracle.com>
928
929         * MAINTAINERS (Write After Approval): Add Weimin Pan.
930
931 2018-04-02  Weimin Pan  <weimin.pan@oracle.com>
932
933         PR gdb/16959
934         * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when 
935         printing static type.
936
937 2018-04-01  Tom Tromey  <tom@tromey.com>
938
939         * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
940         (rs6000_xfer_shared_libraries): Update.
941
942 2018-04-01  Simon Marchi  <simon.marchi@polymtl.ca>
943
944         * common/gdb_vecs.h (char_ptr): Remove.
945         * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
946
947 2018-03-30  Simon Marchi  <simon.marchi@polymtl.ca>
948
949         * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
950         with std::vector.
951         * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
952
953 2018-03-30  Simon Marchi  <simon.marchi@polymtl.ca>
954
955         * tracepoint.h (struct uploaded_tp): Initialize fields.
956         <actions, step_actions, cmd_strings>: Change type to
957         std::vector<char *>.
958         * tracepoint.c (get_uploaded_tp): Allocate with new.
959         (free_uploaded_tps): Free with delete.
960         (parse_tracepoint_definition): Adjust to std::vector change.
961         * breakpoint.c (read_uploaded_action): Likewise.
962         (create_tracepoint_from_upload): Likewise.
963         * ctf.c (ctf_write_uploaded_tp): Likewise.
964         (SET_ARRAY_FIELD): Likewise.
965         * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
966
967 2018-03-30  Tom Tromey  <tom@tromey.com>
968
969         * solib-svr4.c (lm_info_read): Use gdb::byte_vector.  Return
970         std::unique_ptr.
971         (svr4_keep_data_in_core): Update.
972         (svr4_read_so_list): Update.
973
974 2018-03-30  Tom Tromey  <tom@tromey.com>
975
976         * windows-nat.c (handle_output_debug_string, handle_exception):
977         Update.
978         * target.h (target_read_string): Update.
979         * target.c (target_read_string): Change "string" to
980         unique_xmalloc_ptr.
981         * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
982         Update.
983         * solib-frv.c (frv_current_sos): Update.
984         * solib-dsbt.c (dsbt_current_sos): Update.
985         * solib-darwin.c (darwin_current_sos): Update.
986         * linux-thread-db.c (inferior_has_bug): Update.
987         * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
988         Update.  Remove alloca.
989         * ada-lang.c (ada_main_name): Update.
990
991 2018-03-30  Tom Tromey  <tom@tromey.com>
992
993         * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
994         (struct dwo_file_deleter): New.
995         (dwo_file_up): New typedef.
996         (open_and_init_dwo_file): Use dwo_file_up.
997         (free_dwo_file_cleanup): Remove.
998
999 2018-03-30  Tom Tromey  <tom@tromey.com>
1000
1001         * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
1002         (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
1003
1004 2018-03-30  Tom Tromey  <tom@tromey.com>
1005
1006         * dwarf2read.c (class free_cached_comp_units): New class.
1007         (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
1008         (free_cached_comp_units): Remove function.
1009
1010 2018-03-30  Tom Tromey  <tom@tromey.com>
1011
1012         * utils.h (make_cleanup_unpush_target): Remove.
1013         * inf-ptrace.c (struct target_unpusher): New.
1014         (target_unpush_up) New typedef.
1015         (inf_ptrace_create_inferior, inf_ptrace_attach): Use
1016         target_unpush_up.
1017         * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
1018
1019 2018-03-27  Tom Tromey  <tom@tromey.com>
1020
1021         * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
1022
1023 2018-03-27  Pedro Alves  <palves@redhat.com>
1024             Tom Tromey  <tom@tromey.com>
1025
1026         * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
1027         destructor.  Now a class.
1028         (gdb_readline_wrapper_cleanup): Remove function.
1029         (gdb_readline_wrapper): Remove cleanups.
1030
1031 2018-03-27  Tom Tromey  <tom@tromey.com>
1032
1033         * typeprint.h (struct type_print_options) <local_typedefs,
1034         global_typedefs>: Remove "struct" keyword.
1035         (class typedef_hash_table): New class.
1036         (recursively_update_typedef_hash, add_template_parameters)
1037         (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
1038         (find_typedef_in_hash): Don't declare.
1039         * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
1040         (typedef_hash_table::recursively_update): Rename from
1041         recursively_update_typedef_hash.  Now a member.
1042         (typedef_hash_table::add_template_parameters): Rename from
1043         add_template_parameters.  Now a member.
1044         (typedef_hash_table::typedef_hash_table): Now a constructor;
1045         rename from create_typedef_hash.
1046         (typedef_hash_table::~typedef_hash_table): Now a destructor;
1047         rename from free_typedef_hash.
1048         (do_free_typedef_hash, make_cleanup_free_typedef_hash)
1049         (do_free_global_table): Remove.
1050         (typedef_hash_table::typedef_hash_table): New constructor; renamed
1051         from copy_type_recursive.
1052         (create_global_typedef_table): Remove.
1053         (typedef_hash_table::find_global_typedef): Now a member of
1054         typedef_hash_table.
1055         (typedef_hash_table::find_typedef): Rename from
1056         find_typedef_in_hash; now a member.
1057         (whatis_exp): Update.
1058         * extension.h (struct ext_lang_type_printers): Add constructor and
1059         destructor.
1060         (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
1061         declare.
1062         * extension.c (ext_lang_type_printers::ext_lang_type_printers):
1063         Now a constructor; rename from start_ext_lang_type_printers.
1064         (ext_lang_type_printers): Now a destructor; rename from
1065         free_ext_lang_type_printers.
1066         * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
1067         Update.
1068         (c_type_print_base_struct_union): Update.  Remove cleanups.
1069
1070 2018-03-27  Tom Tromey  <tom@tromey.com>
1071
1072         * dwarf-index-write.c: Include <cmath>.
1073
1074 2018-03-27  Joel Brobecker  <brobecker@adacore.com>
1075
1076         * NEWS: Add entry describing new "set|show varsize-limit" command.
1077         * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
1078         command.
1079         * printcmd.c (_initialize_printcmd): Add "set var" alias of
1080         "set variable".
1081
1082 2018-03-27  Simon Marchi  <simon.marchi@ericsson.com>
1083
1084         * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
1085         dwarf-index-write.c
1086         (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
1087         * dwarf-index-common.c: New file.
1088         * dwarf-index-common.h: New file.
1089         * dwarf-index-write.c: New file.
1090         * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
1091         (struct dwarf2_section_info): Move from here.
1092         (dwarf2_section_info_def): Likewise.
1093         (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
1094         (offset_type): Likewise.
1095         (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
1096         (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
1097         (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
1098         (byte_swap): Likewise.
1099         (MAYBE_SWAP): Likewise.
1100         (dwarf2_per_cu_ptr): Likewise.
1101         (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
1102         (struct tu_stats): Likewise.
1103         (struct dwarf2_per_objfile): Likewise.
1104         (struct dwarf2_per_cu_data): Likewise.
1105         (struct signatured_type): Likewise.
1106         (sig_type_ptr): Likewise.
1107         (DEF_VEC_P (sig_type_ptr)): Likewise.
1108         (INDEX4_SUFFIX): Likewise.
1109         (INDEX5_SUFFIX): Likewise.
1110         (DEBUG_STR_SUFFIX): Likewise.
1111         (dwarf2_read_section): Make non-static.
1112         (mapped_index_string_hash): Move from here.
1113         (dwarf5_djb_hash): Likewise.
1114         (file_write): Likewise.
1115         (class data_buf): Likewise.
1116         (struct symtab_index_entry): Likewise.
1117         (struct mapped_symtab): Likewise.
1118         (find_slot): Likewise.
1119         (hash_expand): Likewise.
1120         (add_index_entry): Likewise.
1121         (uniquify_cu_indices): Likewise.
1122         (class c_str_view): Likewise.
1123         (class c_str_view_hasher): Likewise.
1124         (class vector_hasher): Likewise.
1125         (write_hash_table): Likewise.
1126         (psym_index_map): Likewise.
1127         (struct addrmap_index_data): Likewise.
1128         (add_address_entry): Likewise.
1129         (add_address_entry_worker): Likewise.
1130         (write_address_map): Likewise.
1131         (symbol_kind): Likewise.
1132         (write_psymbols): Likewise.
1133         (struct signatured_type_index_data): Likewise.
1134         (write_one_signatured_type): Likewise.
1135         (recursively_count_psymbols): Likewise.
1136         (recursively_write_psymbols): Likewise.
1137         (class debug_names): Likewise.
1138         (check_dwarf64_offsets): Likewise.
1139         (psyms_seen_size): Likewise.
1140         (write_gdbindex): Likewise.
1141         (write_debug_names): Likewise.
1142         (assert_file_size): Likewise.
1143         (write_psymtabs_to_index): Likewise.
1144         (save_gdb_index_command): Likewise.
1145         (_initialize_dwarf2_read): Don't register the "save gdb-index"
1146         command.
1147         * dwarf2read.h: New file.
1148
1149 2018-03-27  Joel Brobecker  <brobecker@adacore.com>
1150
1151         PR gdb/22670
1152         * dwarf2read.c (dwarf2_physname): Do not return the demangled
1153         symbol name if the CU's language stores symbol names in linkage
1154         format.
1155         * language.h (struct language_defn)
1156         <la_store_sym_names_in_linkage_form_p>: New field.  Adjust
1157         all instances of this struct.
1158
1159 2018-03-26  Tom Tromey  <tom@tromey.com>
1160
1161         * stack.c (backtrace_command_1): Remove verbose code.
1162
1163 2018-03-26  Tom Tromey  <tom@tromey.com>
1164
1165         * python/py-framefilter.c (py_print_type): Don't catch
1166         exceptions.  Return void.
1167         (py_print_value): Likewise.
1168         (py_print_single_arg): Likewise.
1169         (enumerate_args): Don't catch exceptions.
1170         (py_print_args): Likewise.
1171         (py_print_frame): Likewise.
1172         (gdbpy_apply_frame_filter): Catch exceptions here.
1173
1174 2018-03-26  Tom Tromey  <tom@tromey.com>
1175
1176         * stack.c (_initialize_stack): Remove trailing newlines from help
1177         text.  Add "Usage" line to "backtrace" help.
1178
1179 2018-03-26  Tom Tromey  <tom@tromey.com>
1180
1181         PR python/16486:
1182         * python/py-framefilter.c (py_print_args): Call wrap_hint.
1183
1184 2018-03-26  Tom Tromey  <tom@tromey.com>
1185
1186         * python/py-framefilter.c (py_print_single_arg): Return
1187         EXT_LANG_BT_ERROR from catch.
1188
1189 2018-03-26  Tom Tromey  <tom@tromey.com>
1190
1191         PR backtrace/15584:
1192         * stack.c (backtrace_command_1): Move some code into no-filters
1193         "if".
1194
1195 2018-03-26  Tom Tromey  <tom@tromey.com>
1196
1197         * python/py-framefilter.c (throw_quit_or_print_exception): New
1198         function.
1199         (gdbpy_apply_frame_filter): Use it.
1200
1201 2018-03-26  Tom Tromey  <tom@tromey.com>
1202
1203         PR cli/17716:
1204         * python/py-framefilter.c (py_print_type, py_print_value)
1205         (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
1206         RETURN_MASK_ERROR.
1207
1208 2018-03-26  Tom Tromey  <tom@tromey.com>
1209
1210         * python/py-framefilter.c (enumerate_args): Use
1211         gdb::unique_xmalloc_ptr.
1212
1213 2018-03-26  Tom Tromey  <tom@tromey.com>
1214
1215         * python/py-framefilter.c (py_print_frame): Return
1216         EXT_LANG_BT_OK.
1217         (gdbpy_apply_frame_filter): Update comment.
1218         * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
1219         Remove.
1220         <EXT_LANG_BT_NO_FILTERS>: Change value.
1221
1222 2018-03-26  Tom Tromey  <tom@tromey.com>
1223
1224         PR backtrace/15582:
1225         * stack.c (backtrace_command): Parse "hide" argument.
1226         * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
1227         * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
1228         constant.
1229
1230 2018-03-26  Tom Tromey  <tom@tromey.com>
1231
1232         * stack.c (backtrace_command_1): Remove "show_locals" parameter,
1233         add "flags".
1234         (backtrace_command): Remove "fulltrace", add "flags".
1235
1236 2018-03-26  Tom Tromey  <tom@tromey.com>
1237
1238         * stack.c (backtrace_command): Rewrite command line parsing.
1239
1240 2018-03-26  Simon Marchi  <simon.marchi@ericsson.com>
1241
1242         * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
1243
1244 2018-03-26  Simon Marchi  <simon.marchi@ericsson.com>
1245
1246         * filename-seen-cache.h: Add include guard.
1247
1248 2018-03-26  Keith Seitz  <keiths@redhat.com>
1249
1250         * symfile.c (place_section): Remove "struct" from section_addr_info
1251         in comment.
1252         * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
1253         "struct" keyword from section_addr_info.
1254
1255 2018-03-26  Alan Hayward  <alan.hayward@arm.com>
1256
1257         * regformats/regdef.h (reg): Add constructors.
1258
1259 2018-03-25  Pedro Alves  <palves@redhat.com>
1260
1261         * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
1262         if then/else bodies in var_func_name extraction.
1263
1264 2018-03-23  Weimin Pan  <weimin.pan@oracle.com>
1265
1266         * minsyms.c (lookup_minimal_symbol_and_objfile): Use
1267         lookup_minimal_symbol() to find symbol entry.
1268         * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
1269
1270 2018-03-23  Keith Seitz  <keiths@redhat.com>
1271
1272         PR c++/22968
1273         * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
1274         nested type definitions for C++, too.
1275
1276 2018-03-23  Tom Tromey  <tom@tromey.com>
1277
1278         * machoread.c (struct oso_el): Add a constructor.  Don't define as
1279         a typedef.
1280         (macho_register_oso): Remove.
1281         (macho_symtab_read): Take a std::vector.
1282         (oso_el_compare_name): Now a std::sort comparator.
1283         (macho_symfile_read_all_oso): Take a std::vector.
1284         (macho_symfile_read): Use std::vector.  Remove cleanups.
1285
1286 2018-03-22  Tom Tromey  <tom@tromey.com>
1287
1288         * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
1289         (record_full_goto_bookmark): Use std::string.
1290
1291 2018-03-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
1292
1293         PR tdep/18295
1294         * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
1295         a single mask.
1296
1297 2018-03-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
1298
1299         * rs6000-tdep.c (store_insn_p): New function.
1300         (skip_prologue): New variable alloca_reg_offset. Set lr_reg
1301         and cr_reg to their unshifted values. Use store_insn_p to
1302         match LR saves using either R1 or fdata->alloca_reg. Use
1303         store_insn_p to match CR saves. Set alloca_reg_offset
1304         when alloca_reg and framep are set. Remove lr_reg shift
1305         when assigning to fdata->lr_register.
1306
1307 2018-03-22  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1308
1309         * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
1310         command line args instead of emitting a warning.
1311
1312 2018-03-22  Simon Marchi  <simon.marchi@polymtl.ca>
1313
1314         * tracepoint.h (struct static_tracepoint_marker): Initialize
1315         fields, define default constructor, move constructor and move
1316         assignment, disable the rest.
1317         <str_id, extra>: Make std::string.
1318         (release_static_tracepoint_marker): Remove.
1319         (free_current_marker): Remove.
1320         * tracepoint.c (free_current_marker): Remove.
1321         (parse_static_tracepoint_marker_definition): Adjust to
1322         std::string, use new hex2str overload.
1323         (release_static_tracepoint_marker): Remove.
1324         (print_one_static_tracepoint_marker): Get marker by reference
1325         and adjust to std::string.
1326         (info_static_tracepoint_markers_command): Adjust to std::vector
1327         changes
1328         * target.h (static_tracepoint_marker_p): Remove typedef.
1329         (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
1330         (struct target_ops) <to_static_tracepoint_marker_at>: Return
1331         bool.
1332         <to_static_tracepoint_markers_by_strid>: Return std::vector.
1333         * target-debug.h
1334         (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
1335         (target_debug_print_std_vector_static_tracepoint_marker): New.
1336         (target_debug_print_struct_static_tracepoint_marker_p): Rename
1337         to...
1338         (target_debug_print_static_tracepoint_marker_p): ... this.
1339         * target-delegates.c: Re-generate.
1340         * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
1341         Make std::string.
1342         * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
1343         (decode_static_tracepoint_spec): Adjust to std::vector.
1344         (tracepoint_print_one_detail): Adjust to std::string.
1345         (strace_marker_decode_location): Adjust to std::string.
1346         (update_static_tracepoint): Adjust to std::string, remove call
1347         to release_static_tracepoint_marker.
1348         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
1349         Adjust to std::vector.
1350         * remote.c (remote_static_tracepoint_marker_at): Return bool.
1351         (remote_static_tracepoint_markers_by_strid): Adjust to
1352         std::vector.
1353         * common/rsp-low.h (hex2str): New overload with explicit count
1354         of bytes.
1355         * common/rsp-low.c (hex2str): New overload with explicit count
1356         of bytes.
1357         * unittests/rsp-low-selftests.c (test_hex2str): New function.
1358         (_initialize_rsp_low_selftests): Add test_hex2str test.
1359         * unittests/tracepoint-selftests.c
1360         (test_parse_static_tracepoint_marker_definition): Adjust to
1361         std::string.
1362
1363 2018-03-22  Simon Marchi  <simon.marchi@polymtl.ca>
1364
1365         * tracepoint.c (parse_static_tracepoint_marker_definition):
1366         Consider case where the definition is followed by more
1367         definitions.
1368         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1369         tracepoint-selftests.c.
1370         * unittests/tracepoint-selftests.c: New.
1371
1372 2018-03-21  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
1373
1374         * MAINTAINERS (Write After Approval): Add Pedro Franco de
1375         Carvalho.
1376
1377 2018-03-20  Stephen Roberts  <stephen.roberts@arm.com>
1378
1379         * symtab.c (find_pc_sect_line): fixed indentation.
1380
1381 2018-03-20  Stephen Roberts  <stephen.roberts@arm.com>
1382
1383         * symtab.c (find_pc_sect_line): now uses binary search.
1384
1385 2018-03-19  Tom Tromey  <tom@tromey.com>
1386
1387         * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
1388         "IDENT" production.
1389
1390 2018-03-19  Pedro Alves  <palves@redhat.com>
1391             Tom Tromey  <tom@tromey.com>
1392
1393         * unittests/observable-selftests.c: New file.
1394         * common/observable.h: New file.
1395         * observable.h: New file.
1396         * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
1397         arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
1398         breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
1399         corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
1400         extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
1401         infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
1402         linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
1403         mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
1404         ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
1405         python/py-breakpoint.c, python/py-finishbreakpoint.c,
1406         python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
1407         record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
1408         riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
1409         spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
1410         symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
1411         tui/tui-interp.c, valops.c: Update all users.
1412         * tui/tui-hooks.c (tui_bp_created_observer)
1413         (tui_bp_deleted_observer, tui_bp_modified_observer)
1414         (tui_inferior_exit_observer, tui_before_prompt_observer)
1415         (tui_normal_stop_observer, tui_register_changed_observer):
1416         Remove.
1417         (tui_observers_token): New global.
1418         (attach_or_detach, tui_attach_detach_observers): New functions.
1419         (tui_install_hooks, tui_remove_hooks): Use
1420         tui_attach_detach_observers.
1421         * record-btrace.c (record_btrace_thread_observer): Remove.
1422         (record_btrace_thread_observer_token): New global.
1423         * observer.sh: Remove.
1424         * observer.c: Rename to observable.c.
1425         * observable.c (namespace gdb_observers): Define new objects.
1426         (observer_debug): Move into gdb_observers namespace.
1427         (struct observer, struct observer_list, xalloc_observer_list_node)
1428         (xfree_observer_list_node, generic_observer_attach)
1429         (generic_observer_detach, generic_observer_notify): Remove.
1430         (_initialize_observer): Update.
1431         Don't include observer.inc.
1432         * Makefile.in (generated_files): Remove observer.h, observer.inc.
1433         (clean mostlyclean): Likewise.
1434         (observer.h, observer.inc): Remove targets.
1435         (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
1436         (COMMON_SFILES): Use observable.c, not observer.c.
1437         * .gitignore: Remove observer.h.
1438
1439 2018-03-18  Tom Tromey  <tom@tromey.com>
1440
1441         * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
1442         gdb::def_vector.
1443         (bfd_lookup_symbol_from_dyn_symtab): Likewise.
1444
1445 2018-03-17  Tom Tromey  <tom@tromey.com>
1446
1447         * auto-load.c (auto_load_objfile_script_1): Use std::string.
1448
1449 2018-03-17  Tom Tromey  <tom@tromey.com>
1450
1451         * target.c (class scoped_target_fd): New.
1452         (target_fileio_close_cleanup): Remove.
1453         (target_fileio_read_alloc_1): Use scoped_target_fd.
1454
1455 2018-03-16  Simon Marchi  <simon.marchi@polymtl.ca>
1456
1457         * silent-rules.mk: New.
1458         * Makefile.in: Include silent-rules.mk
1459         (srcdir, VPATH, top_srcdir): Move up.
1460         (COMPILE): Add ECHO_CXX.
1461         (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
1462         (init.c): Add ECHO_INIT_C.
1463         (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
1464         (version.c): Add ECHO_GEN.
1465         (printcmd.o): Add ECHO_CXX.
1466         (target-float.o): Add ECHO_CXX.
1467         (ada-exp.o): Add ECHO_CXX.
1468         (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
1469         (insight$(EXEEXT)): Add ECHO_CXXLD.
1470         * gnulib/configure.ac: Add AM_SILENT_RULES.
1471         * gnulib/aclocal.m4: Re-generate.
1472         * gnulib/configure: Re-generate.
1473         * gnulib/import/Makefile.in: Re-generate.
1474
1475 2018-03-16  Tom Tromey  <tom@tromey.com>
1476
1477         * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
1478         * utils.h (make_cleanup_free_section_addr_info): Don't declare.
1479         * utils.c (do_free_section_addr_info)
1480         (make_cleanup_free_section_addr_info): Remove.
1481         * symfile.h (struct other_sections): Add constructor.
1482         (struct section_addr_info): Remove.
1483         (section_addr_info): New typedef.
1484         (struct sym_fns) <sym_offsets>: Change type of parameter.
1485         (build_section_addr_info_from_objfile)
1486         (relative_addr_info_to_section_offsets, addr_info_make_relative)
1487         (default_symfile_offsets, symbol_file_add)
1488         (symbol_file_add_from_bfd)
1489         (build_section_addr_info_from_section_table): Update.
1490         (alloc_section_addr_info, free_section_addr_info): Don't declare.
1491         * symfile.c (alloc_section_addr_info): Remove.
1492         (build_section_addr_info_from_section_table): Change return type.
1493         Update.
1494         (build_section_addr_info_from_bfd)
1495         (build_section_addr_info_from_objfile): Likewise.
1496         (free_section_addr_info): Remove.
1497         (relative_addr_info_to_section_offsets): Change type of "addrs".
1498         (addrs_section_compar): Now a std::sort comparator.
1499         (addrs_section_sort): Change return type.
1500         (addr_info_make_relative): Change type of "addrs".  Update.
1501         (default_symfile_offsets, syms_from_objfile_1)
1502         (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
1503         (symbol_file_add_separate): Update.
1504         (symbol_file_add): Change type of "addrs".  Update.
1505         (add_symbol_file_command): Update.  Remove cleanups.
1506         * symfile-mem.c (symbol_file_add_from_memory): Update.  Remove
1507         cleanups.
1508         * symfile-debug.c (debug_sym_offsets): Change type of "info".
1509         * solib.c (solib_read_symbols): Update.
1510         * objfiles.c (objfile_relocate): Update.  Remove cleanups.
1511         * machoread.c (macho_symfile_offsets): Update.
1512         * jit.c (jit_bfd_try_read_symtab): Update.
1513
1514 2018-03-15  Simon Marchi  <simon.marchi@polymtl.ca>
1515
1516         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1517         unittests/utils-selftests.c.
1518         * unittests/utils-selftests.c: New file.
1519
1520 2018-03-14  Tom Tromey  <tom@tromey.com>
1521
1522         PR cli/14977:
1523         * printcmd.c (printf_c_string, printf_wide_c_string): Special case
1524         for NULL.
1525
1526 2018-03-14  Tom Tromey  <tom@tromey.com>
1527
1528         PR cli/19918:
1529         * printcmd.c (printf_pointer): Allow "-" in format.
1530
1531 2018-03-14  Tom Tromey  <tom@tromey.com>
1532
1533         * printcmd.c (_initialize_printcmd): Add usage to printf.
1534
1535 2018-03-14  Yao Qi  <qiyao@sourceware.org>
1536
1537         * MAINTAINERS: Update my email address.
1538
1539 2018-03-13  Tom Tromey  <tom@tromey.com>
1540
1541         * machoread.c (macho_check_dsym): Change filenamep to a
1542         std::string*.
1543         (macho_symfile_read): Update.
1544         * symfile.c (load_command): Use std::string.
1545
1546 2018-03-12  Andrew Burgess  <andrew.burgess@embecosm.com>
1547
1548         * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
1549         to error message string.
1550         (riscv_register_name): Use xsnprintf instead of sprintf.
1551         (riscv_insn::fetch_instruction): Use gdb_assert instead of
1552         internal_error.
1553         (riscv_print_arg_location): Use gdb_assert_not_reached instead of
1554         error.
1555         (riscv_push_dummy_call): Likewise.
1556
1557 2018-03-12  Tom Tromey  <tom@tromey.com>
1558
1559         * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
1560         Use gdb::byte_vector.
1561         * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
1562
1563 2018-03-12  Yao Qi  <yao.qi@linaro.org>
1564
1565         * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
1566         parameter type to readable_regcache.
1567         * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
1568         the declaration.
1569
1570 2018-03-11  Tom Tromey  <tom@tromey.com>
1571
1572         * dwarf2read.c (struct nextfield): Add initializers.
1573         (struct nextfnfield): Remove.
1574         (struct fnfieldlist): Add initializers.  Remove "length" and
1575         "head", use std::vector.
1576         (struct decl_field_list): Remove.
1577         (struct field_info): Add initializers.
1578         <fields, baseclasses>: Now std::vector.
1579         <nbaseclasses, nfnfields, typedef_field_list_count,
1580         nested_types_list_count>: Remove.
1581         (dwarf2_add_field, dwarf2_add_type_defn)
1582         (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
1583         (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
1584         (process_structure_scope): Update.
1585
1586 2018-03-11  Tom Tromey  <tom@tromey.com>
1587
1588         * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
1589         for use by std::sort.
1590         (build_type_psymtabs_1): Use std::vector.
1591
1592 2018-03-09  Eli Zaretskii  <eliz@gnu.org>
1593
1594         * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
1595         and LIBMPFR in the printed configuration.
1596
1597 2018-03-08  Tom Tromey  <tom@tromey.com>
1598
1599         * source.c (get_filename_and_charpos): Use scoped_fd.
1600         * nto-procfs.c (procfs_open_1): Use scoped_fd.
1601         (procfs_pidlist): Likewise.
1602         * procfs.c (proc_get_LDT_entry): Use scoped_fd.
1603         (iterate_over_mappings): Likewise.
1604
1605 2018-03-08  Tom Tromey  <tom@tromey.com>
1606
1607         * infcall.c (struct call_return_meta_info)
1608         <stack_temporaries_enabled>: Remove.
1609         (get_call_return_value, call_function_by_hand_dummy): Update.
1610         * thread.c (disable_thread_stack_temporaries): Remove.
1611         (enable_thread_stack_temporaries): Remove.
1612         (thread_stack_temporaries_enabled_p): Return bool.
1613         (push_thread_stack_temporary, value_in_thread_stack_temporaries)
1614         (get_last_thread_stack_temporary): Update.
1615         * eval.c (evaluate_subexp): Update.
1616         * gdbthread.h (class enable_thread_stack_temporaries): Now a
1617         class, not a function.
1618         (value_ptr, value_vec): Remove typedefs.
1619         (class thread_info) <stack_temporaries_enabled>: Now bool.
1620         <stack_temporaries>: Now a std::vector.
1621         (thread_stack_temporaries_enabled_p)
1622         (value_in_thread_stack_temporaries): Return bool.
1623
1624 2018-03-08  Simon Marchi  <simon.marchi@ericsson.com>
1625
1626         * remote.c (putpkt_binary): Fix omitted bytes reporting.
1627         (getpkt_or_notif_sane_1): Likewise.
1628
1629 2018-03-08  Simon Marchi  <simon.marchi@polymtl.ca>
1630
1631         * build-id.c (build_id_to_debug_bfd): Use std::string.
1632
1633 2018-03-08  Simon Marchi  <simon.marchi@polymtl.ca>
1634
1635         * build-id.c (find_separate_debug_file_by_buildid): Return
1636         std::string.
1637         * build-id.h (find_separate_debug_file_by_buildid): Return
1638         std::string.
1639         * coffread.c (coff_symfile_read): Adjust to std::string.
1640         * elfread.c (elf_symfile_read): Adjust to std::string.
1641         * symfile.c (separate_debug_file_exists): Change parameter to
1642         std::string.
1643         (find_separate_debug_file): Return std::string.
1644         (find_separate_debug_file_by_debuglink): Return std::string.
1645         * symfile.h (find_separate_debug_file_by_debuglink): Return
1646         std::string.
1647
1648 2018-03-08  Simon Marchi  <simon.marchi@polymtl.ca>
1649
1650         * common/xml-utils.c (xml_escape_text): Move code to...
1651         (xml_escape_text_append): ... this new function.
1652         * common/xml-utils.h (xml_escape_text_append): New declaration.
1653         * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
1654         New function.
1655         (_initialize_xml_utils): register test_xml_escape_text_append as
1656         a selftest.
1657
1658 2018-03-07  Alan Hayward  <alan.hayward@arm.com>
1659
1660         * defs.h: Remove MAX_REGISTER_SIZE.
1661         * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
1662         asserts.
1663         * python/py-unwind.c (pyuw_sniffer): Likewise.
1664
1665 2018-03-07  Tom Tromey  <tom@tromey.com>
1666
1667         * linux-tdep.c (linux_info_proc): Update.
1668         * target.h (struct target_ops) <to_fileio_readlink>: Return
1669         optional<string>.
1670         (target_fileio_readlink): Return optional<string>.
1671         * remote.c (remote_hostio_readlink): Return optional<string>.
1672         * inf-child.c (inf_child_fileio_readlink): Return
1673         optional<string>.
1674         * target.c (target_fileio_readlink): Return optional<string>.
1675
1676 2018-03-07  Andrew Burgess  <andrew.burgess@embecosm.com>
1677
1678         * regcache.c (cooked_read_test): Add riscv to the list of
1679         architectures that have a save_reggroup.
1680
1681 2018-03-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1682
1683         * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
1684         value is not a dynamic class object.
1685
1686 2018-03-06  Tom Tromey  <tom@tromey.com>
1687
1688         * rust-exp.y: Formatting fixes.
1689
1690 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
1691
1692         * riscv-tdep.c (riscv_register_name): Remove target description
1693         support.
1694         (riscv_gdbarch_init): Remove target description check.
1695
1696 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
1697
1698         * riscv-tdep.c: Remove 'Contributed by ...' lines from header
1699         comment.
1700         * riscv-tdep.h: Likewise.
1701
1702 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
1703
1704         * riscv-tdep.c (riscv_pseudo_register_read): Delete.
1705         (riscv_pseudo_register_write): Delete.
1706         (riscv_gdbarch_init): Remove all use of pseudo registers.
1707
1708 2018-03-06  Simon Marchi  <simon.marchi@polymtl.ca>
1709
1710         * record-btrace.c (btrace_print_lines): Replace cleanup
1711         parameter with RAII equivalents.
1712         (btrace_insn_history): Replace cleanup with RAII equivalents.
1713         * ui-out.h (make_cleanup_ui_out_list_begin_end,
1714         make_cleanup_ui_out_tuple_begin_end): Remove.
1715         * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
1716         make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
1717         make_cleanup_ui_out_list_begin_end): Remove.
1718
1719 2018-03-06  Simon Marchi  <simon.marchi@polymtl.ca>
1720
1721         * record-btrace.c (record_btrace_maybe_mark_async_event): Change
1722         parameter types to std::vector.  Use bool.
1723         (record_btrace_wait): Replace VEC(tp_t) with
1724         std::vector<thread_info *>.
1725         * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
1726
1727 2018-03-06  Simon Marchi  <simon.marchi@polymtl.ca>
1728
1729         * record-btrace.c (record_btrace_disable_callback): Remove.
1730         (struct scoped_btrace_disable): New.
1731         (record_btrace_open): Use scoped_btrace_disable.
1732
1733 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
1734
1735         * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
1736         reading values from registers.
1737
1738 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
1739
1740         * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
1741         where appropriate.
1742
1743 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
1744
1745         * riscv-tdep.c (riscv_print_arg_location): Add header comment,
1746         change parameter type.  Use GDB's print functions, and use
1747         core_addr_to_string where appropriate.
1748         (riscv_push_dummy_call): Use core_addr_to_string where
1749         appropriate, update call to riscv_print_arg_location, and reindent
1750         a few lines.
1751         (riscv_return_value): Update call to riscv_print_arg_location.
1752
1753 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
1754             Tim Newsome <tim@sifive.com>
1755             Albert Ou <a0u@eecs.berkeley.edu>
1756             Darius Rad <darius@bluespec.com>
1757
1758         * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
1759         (HFILES_NO_SRCDIR): Add riscv-tdep.h.
1760         (ALLDEPFILES): Add riscv-tdep.c
1761         * configure.tgt: Add riscv support.
1762         * riscv-tdep.c: New file.
1763         * riscv-tdep.h: New file.
1764         * NEWS: Mention new target.
1765         * MAINTAINERS: Add entry for riscv.
1766
1767 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
1768
1769         * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
1770         fields within aggregates.
1771
1772 2018-03-04  Simon Marchi  <simon.marchi@polymtl.ca>
1773
1774         * record-btrace.c (btrace_print_lines): Change type of flags to
1775         gdb_disassembly_flags.
1776
1777 2018-03-04  John Baldwin  <jhb@FreeBSD.org>
1778
1779         * fbsd-nat.c: Include "inf-ptrace.h".
1780         (USE_SIGTRAP_SIGINFO): Conditionally define.
1781         [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
1782         (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
1783         [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
1784         function.
1785         [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
1786         Likewise.
1787         [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
1788         Likewise.
1789         (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
1790         "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
1791         "supports_stopped_by_hw_breakpoint" target methods.
1792
1793 2018-03-04  John Baldwin  <jhb@FreeBSD.org>
1794
1795         * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
1796         * fbsd-nat.c (debug_fbsd_nat): New variable.
1797         (show_fbsd_nat_debug): New function.
1798         (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
1799         (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
1800
1801 2018-03-04  John Baldwin  <jhb@FreeBSD.org>
1802
1803         * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
1804         * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
1805         prototype.
1806         * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
1807         (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
1808         method.
1809
1810 2018-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
1811
1812         * common/gdb_vecs.c (free_char_ptr_vec): Remove.
1813         * common/gdb_vecs.h (free_char_ptr_vec): Remove.
1814
1815 2018-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
1816
1817         * charset.c (struct charset_vector): New.
1818         (charsets): Change type to charset_vector.
1819         (find_charset_names): Adjust.
1820         (add_one): Adjust.
1821         (_initialize_charset): Adjust.
1822
1823 2018-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
1824
1825         * progspace.h (struct program_space) <deleted_solibs>: Change
1826         type to std::vector<std::string>.
1827         * progspace.c (clear_program_space_solib_cache): Adjust.
1828         * breakpoint.c (print_solib_event): Adjust.
1829         (check_status_catch_solib): Adjust.
1830         * solib.c (update_solib_list): Adjust.
1831         * ui-out.h (class ui_out) <field_string>: New overload.
1832         * ui-out.c (ui_out::field_string): New overload.
1833
1834 2018-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
1835
1836         * progspace.h (struct program_space): Add constructor and
1837         destructor, initialize fields.
1838         (add_program_space): Remove.
1839         * progspace.c (add_program_space): Rename to...
1840         (program_space::program_space): ... this.
1841         (release_program_space): Rename to...
1842         (program_space::~program_space): ... this.
1843         (delete_program_space): Use delete to delete program_space.
1844         (initialize_progspace): Use new to allocate program_space.
1845         * inferior.c (add_inferior_with_spaces): Likewise.
1846         (clone_inferior_command): Likewise.
1847         * infrun.c (follow_fork_inferior): Likewise.
1848         (handle_vfork_child_exec_or_exit): Likewise.
1849
1850 2018-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
1851
1852         * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
1853         (delim_string_to_char_ptr_vec): Return std::vector of
1854         gdb::unique_xmalloc_ptr.
1855         (dirnames_to_char_ptr_vec_append): Take std::vector of
1856         gdb::unique_xmalloc_ptr.
1857         (dirnames_to_char_ptr_vec): Return std::vector of
1858         gdb::unique_xmalloc_ptr.
1859         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
1860         Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
1861         (delim_string_to_char_ptr_vec): Return an std::vector of
1862         gdb::unique_xmalloc_ptr, adjust the code.
1863         (dirnames_to_char_ptr_vec_append): Take an std::vector of
1864         gdb::unique_xmalloc_ptr, adjust the code.
1865         (dirnames_to_char_ptr_vec): Return an std::vector of
1866         gdb::unique_xmalloc_ptr, adjust the code.
1867         * auto-load.c (auto_load_safe_path_vec): Change type to
1868         std::vector of gdb::unique_xmalloc_ptr.
1869         (auto_load_expand_dir_vars): Return an std::vector of
1870         gdb::unique_xmalloc_ptr, adjust the code.
1871         (auto_load_safe_path_vec_update): Adjust.
1872         (filename_is_in_auto_load_safe_path_vec): Adjust.
1873         (auto_load_objfile_script_1): Adjust.
1874         * build-id.c (build_id_to_debug_bfd): Adjust.
1875         * linux-thread-db.c (thread_db_load_search): Adjust.
1876         * source.c (add_path): Adjust.
1877         (openp): Adjust.
1878         * symfile.c (find_separate_debug_file): Adjust.
1879         * utils.c (do_free_char_ptr_vec): Remove.
1880         (make_cleanup_free_char_ptr_vec): Remove.
1881
1882 2018-03-01  Sergio Durigan Junior  <sergiodj@redhat.com>
1883
1884         PR gdb/22907
1885         * common/pathstuff.c: Conditionally include "<windows.h>".
1886
1887 2018-03-01  Georg Sauthoff  <mail@georg.so>
1888
1889         PR gdb/22888
1890         * gcore.in: Quote variables and switch interpreter to bash.
1891
1892 2018-03-01  Tom Tromey  <tom@tromey.com>
1893
1894         * dwarf2read.c (alloc_discriminant_info): Fix default_index
1895         assertion.  Add assertion for discriminant_index.
1896         (quirk_rust_enum): Use correct base type name in univariant case.
1897
1898 2018-03-01  Simon Marchi  <simon.marchi@ericsson.com>
1899
1900         * record.c (get_call_history_modifiers): Return a
1901         record_print_flags.
1902         (cmd_record_call_history): Adjust.
1903         * record-btrace.c (record_btrace_call_history): Adjust.
1904         (record_btrace_call_history_range): Adjust.
1905         (record_btrace_call_history_from): Adjust.
1906         * target-debug.h (target_debug_print_record_print_flags): New.
1907         * target-delegates.c: Re-generate.
1908         * target.c (target_call_history): Change flags type.
1909         (target_call_history_from): Likewise.
1910         (target_call_history_range): Likewise.
1911         * target.h (struct target_ops) <target_call_history>: Likewise.
1912         (target_call_history_from): Likewise.
1913         (target_call_history_range): Likewise.
1914
1915 2018-02-28  Sergio Durigan Junior  <sergiodj@redhat.com>
1916             Simon Marchi  <simon.marchi@polymtl.ca>
1917
1918         * common/common-utils.c: Include "sys/stat.h".
1919         (is_regular_file): Move here from "source.c"; change return
1920         type to "bool".
1921         * common/common-utils.h (is_regular_file): New prototype.
1922         * common/pathstuff.c (contains_dir_separator): New function.
1923         * common/pathstuff.h (contains_dir_separator): New prototype.
1924         * source.c: Don't include "sys/stat.h".
1925         (is_regular_file): Move to "common/common-utils.c".
1926
1927 2018-02-28  Sergio Durigan Junior  <sergiodj@redhat.com>
1928
1929         * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
1930         (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
1931         * auto-load.c: Include "common/pathstuff.h".
1932         * common/common-def.h (current_directory): Move here.
1933         * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
1934         function.
1935         * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
1936         prototype.
1937         * common/pathstuff.c: New file.
1938         * common/pathstuff.h: New file.
1939         * compile/compile.c: Include "common/pathstuff.h".
1940         * defs.h (current_directory): Move to "common/common-defs.h".
1941         * dwarf2read.c: Include "common/pathstuff.h".
1942         * exec.c: Likewise.
1943         * guile/scm-safe-call.c: Likewise.
1944         * linux-thread-db.c: Likewise.
1945         * main.c: Likewise.
1946         * nto-tdep.c: Likewise.
1947         * objfiles.c: Likewise.
1948         * source.c: Likewise.
1949         * symtab.c: Likewise.
1950         * utils.c: Include "common/pathstuff.h".
1951         (gdb_realpath): Move to "common/pathstuff.c".
1952         (gdb_realpath_keepfile): Likewise.
1953         (gdb_abspath): Likewise.
1954         * utils.h (gdb_realpath): Move to "common/pathstuff.h".
1955         (gdb_realpath_keepfile): Likewise.
1956         (gdb_abspath): Likewise.
1957
1958 2018-02-28  John Baldwin  <jhb@FreeBSD.org>
1959
1960         * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
1961         wildcard process pid for super_resume for kernels with a
1962         specific bug.
1963
1964 2018-02-27  Phil Muldoon  <pmuldoon@redhat.com>
1965
1966         * compile/compile.c (get_args): Add additional comments
1967         explaining function.
1968
1969 2018-02-27  Simon Marchi  <simon.marchi@polymtl.ca>
1970             Tom Tromey  <tom@tromey.com>
1971
1972         * target.h (memory_write_request_s): Remove typedef.  Don't define
1973         VEC.
1974         (target_write_memory_blocks): Change argument to std::vector.
1975         (struct memory_write_request): Add constructor.
1976         * target-memory.c (compare_block_starting_address): Return bool.
1977         Change argument types.
1978         (claim_memory): Change arguments to use std::vector.
1979         (split_regular_and_flash_blocks, blocks_to_erase)
1980         (compute_garbled_blocks): Likewise.
1981         (cleanup_request_data, cleanup_write_requests_vector): Remove.
1982         (target_write_memory_blocks): Change argument to std::vector.
1983         * symfile.c (struct load_section_data): Add constructor and
1984         destructor.  Use std::vector for "requests".
1985         (struct load_progress_data): Add initializers.
1986         (load_section_callback): Update.  Use "new".
1987         (clear_memory_write_data): Remove.
1988         (generic_load): Update.
1989
1990 2018-02-27  Alan Hayward  <alan.hayward@arm.com>
1991
1992         * arch/aarch64.h: Use common/tdesc.h.
1993
1994 2018-02-26  Maciej W. Rozycki  <macro@mips.com>
1995
1996         * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
1997         architecture with a 64-bit ABI.
1998
1999 2018-02-26  Maciej W. Rozycki  <macro@mips.com>
2000
2001         * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
2002         ahead of target description loading.
2003
2004 2018-02-26  Tom Tromey  <tom@tromey.com>
2005
2006         * stack.c (backtrace_command_1): Update.
2007         * python/python-internal.h (gdbpy_apply_frame_filter): Change type
2008         of "flags".
2009         * python/py-framefilter.c (py_print_frame)
2010         (gdbpy_apply_frame_filter): Change type of "flags".
2011         * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
2012         of "flags".
2013         (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
2014         (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
2015         * extension.h (enum frame_filter_flag): Rename from
2016         frame_filter_flags.
2017         (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
2018         (apply_ext_lang_frame_filter): Change type of "flags".
2019         * extension.c (apply_ext_lang_frame_filter): Change type of
2020         "flags".
2021         * extension-priv.h (struct extension_language_ops)
2022         <apply_frame_filter>: Change type of "flags".
2023
2024 2018-02-26  Tom Tromey  <tom@tromey.com>
2025
2026         PR python/16497:
2027         * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag.  Fix
2028         off-by-one in py_end computation.
2029         * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
2030         PRINT_MORE_FRAMES.
2031         * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
2032         constant.
2033
2034 2018-02-26  Tom Tromey  <tom@tromey.com>
2035
2036         * dwarf2read.c (struct variant_field): New.
2037         (struct nextfield) <variant>: New field.
2038         (dwarf2_add_field): Handle DW_TAG_variant_part.
2039         (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
2040         discriminated union.
2041         (read_structure_type): Handle DW_TAG_variant_part.
2042         (handle_struct_member_die): New function, extracted from
2043         process_structure_scope.  Handle DW_TAG_variant.
2044         (process_structure_scope): Handle discriminated unions.  Call
2045         handle_struct_member_die.
2046
2047 2018-02-26  Tom Tromey  <tom@tromey.com>
2048
2049         * rust-lang.h (rust_last_path_segment): Declare.
2050         * rust-lang.c (rust_last_path_segment): Now public.  Change
2051         contract.
2052         (struct disr_info): Remove.
2053         (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
2054         (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
2055         (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
2056         (rust_enum_p, rust_enum_variant): New function.
2057         (rust_underscore_fields): Remove "offset" parameter.
2058         (rust_print_enum): New function.
2059         (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
2060         <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
2061         (rust_print_struct_def): Add "for_rust_enum" parameter.  Handle
2062         enums.
2063         (rust_internal_print_type): New function, from rust_print_type.
2064         Remove enum code.
2065         (rust_print_type): Call rust_internal_print_type.
2066         (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
2067         Update enum handling.
2068         * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
2069         (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
2070         (rust_union_quirks): New functions.
2071         (process_full_comp_unit, process_full_type_unit): Call
2072         rust_union_quirks.
2073         (process_structure_scope): Update rust_unions if necessary.
2074
2075 2018-02-26  Tom Tromey  <tom@tromey.com>
2076
2077         * value.h (value_union_variant): Declare.
2078         * valops.c (value_union_variant): New function.
2079         * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
2080         (struct discriminant_info): New.
2081         (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
2082         enumerator.
2083         (struct main_type) <flag_discriminated_union>: New field.
2084
2085 2018-02-26  Tom Tromey  <tom@tromey.com>
2086
2087         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2088         unittests/unpack-selftests.c.
2089         * unittests/unpack-selftests.c: New file.
2090         * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
2091
2092 2018-02-26  Yao Qi  <yao.qi@linaro.org>
2093
2094         * dwarf2read.c (struct partial_die_info) <read>: New method.
2095         (read_partial_die): Remove the declaration.
2096         (load_partial_dies): Update.
2097         (partial_die_info::partial_die_info):
2098         (read_partial_die): Change it to partial_die_info::read.
2099
2100 2018-02-26  Yao Qi  <yao.qi@linaro.org>
2101
2102         * dwarf2read.c (struct partial_die_info) <fixup>: New method.
2103         (fixup_partial_die): Remove declaration.
2104         (scan_partial_symbols): Update.
2105         (partial_die_parent_scope): Likewise.
2106         (partial_die_full_name): Likewise.
2107         (fixup_partial_die): Change it to partial_die_info::fixup.
2108
2109 2018-02-26  Yao Qi  <yao.qi@linaro.org>
2110
2111         * dwarf2read.c (read_partial_die): Update the declaration.
2112         (load_partial_dies): Caller update.
2113         (read_partial_die): Remove one argument abbrev_len.
2114
2115 2018-02-26  Yao Qi  <yao.qi@linaro.org>
2116
2117         * dwarf2read.c (struct partial_die_info): Add ctor, delete
2118         assignment operator.
2119         (load_partial_dies): Use ctor and copy ctor.
2120         (read_partial_die): Update.
2121         (dwarf2_cu::find_partial_die): Use ctor.
2122
2123 2018-02-26  Yao Qi  <yao.qi@linaro.org>
2124
2125         * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
2126         (find_partial_die_in_comp_unit): Change it to
2127         dwarf2_cu::find_partial_die.
2128         (find_partial_die): Update.
2129
2130 2018-02-26  Yao Qi  <yao.qi@linaro.org>
2131
2132         * dwarf2read.c (read_partial_die): Remove the code checking abbrev
2133         is NULL.
2134
2135 2018-02-26  Yao Qi  <yao.qi@linaro.org>
2136
2137         * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
2138
2139 2018-02-26  Alan Hayward  <alan.hayward@arm.com>
2140
2141         * arch/amd64.h: Use common/tdesc.h.
2142         * arch/i386.c: Likewise.
2143         * arch/i386.h: Likewise.
2144         * arch/tic6x.c: Likewise.
2145         * arch/tdesc.h: Move file from here...
2146         * common/tdesc.h: ...to here.
2147         * features/aarch64-core.c: Regenerate.
2148         * features/aarch64-fpu.c: Regenerate.
2149         * features/i386/32bit-avx.c: Regenerate.
2150         * features/i386/32bit-avx512.c: Regenerate.
2151         * features/i386/32bit-core.c: Regenerate.
2152         * features/i386/32bit-linux.c: Regenerate.
2153         * features/i386/32bit-mpx.c: Regenerate.
2154         * features/i386/32bit-pkeys.c: Regenerate.
2155         * features/i386/32bit-sse.c: Regenerate.
2156         * features/i386/64bit-avx.c: Regenerate.
2157         * features/i386/64bit-avx512.c: Regenerate.
2158         * features/i386/64bit-core.c: Regenerate.
2159         * features/i386/64bit-linux.c: Regenerate.
2160         * features/i386/64bit-mpx.c: Regenerate.
2161         * features/i386/64bit-pkeys.c: Regenerate.
2162         * features/i386/64bit-segments.c: Regenerate.
2163         * features/i386/64bit-sse.c: Regenerate.
2164         * features/i386/x32-core.c: Regenerate.
2165         * features/tic6x-c6xp.c: Regenerate.
2166         * features/tic6x-core.c: Regenerate.
2167         * features/tic6x-gp.c: Regenerate.
2168         * target-descriptions.c: Use common/tdesc.h.
2169         * target-descriptions.h: Likewise.
2170
2171 2018-02-24  Tom Tromey  <tom@tromey.com>
2172
2173         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
2174         (try_thread_db_load_from_dir, thread_db_load_search): Use
2175         std::string.
2176         (info_auto_load_libthread_db_compare): Return bool.  Change
2177         argument types.
2178         (info_auto_load_libthread_db): Use std::vector, std::string.
2179         Remove cleanups.
2180
2181 2018-02-24  Tom Tromey  <tom@tromey.com>
2182
2183         * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
2184         std::string.
2185         * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
2186         std::string*.
2187         * gdbarch.c: Rebuild.
2188         * gdbarch.h: Rebuild.
2189         * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
2190         * arch-utils.h (default_fast_tracepoint_valid_at): Update.
2191         * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
2192         std::string*.
2193
2194 2018-02-23  Simon Marchi  <simon.marchi@polymtl.ca>
2195
2196         * gdbtypes.h (sect_offset): Change type to uint64_t.
2197         (sect_offset_str): New function.
2198         * dwarf2read.c (create_addrmap_from_aranges): Use
2199         sect_offset_str.
2200         (error_check_comp_unit_head): Likewise.
2201         (create_debug_type_hash_table): Likewise.
2202         (read_cutu_die_from_dwo): Likewise.
2203         (init_cutu_and_read_dies): Likewise.
2204         (init_cutu_and_read_dies_no_follow): Likewise.
2205         (process_psymtab_comp_unit_reader): Likewise.
2206         (partial_die_parent_scope): Likewise.
2207         (peek_die_abbrev): Likewise.
2208         (process_queue): Likewise.
2209         (dwarf2_physname): Likewise.
2210         (read_namespace_alias): Likewise.
2211         (read_import_statement): Likewise.
2212         (create_dwo_cu_reader): Likewise.
2213         (create_cus_hash_table): Likewise.
2214         (lookup_dwo_cutu): Likewise.
2215         (inherit_abstract_dies): Likewise.
2216         (read_func_scope): Likewise.
2217         (read_call_site_scope): Likewise.
2218         (dwarf2_add_member_fn): Likewise.
2219         (read_common_block): Likewise.
2220         (read_module_type): Likewise.
2221         (read_typedef): Likewise.
2222         (read_subrange_type): Likewise.
2223         (load_partial_dies): Likewise.
2224         (read_partial_die): Likewise.
2225         (find_partial_die): Likewise.
2226         (read_str_index): Likewise.
2227         (dwarf2_string_attr): Likewise.
2228         (build_error_marker_type): Likewise.
2229         (lookup_die_type): Likewise.
2230         (dump_die_shallow): Likewise.
2231         (follow_die_ref): Likewise.
2232         (dwarf2_fetch_die_loc_sect_off): Likewise.
2233         (dwarf2_fetch_constant_bytes): Likewise.
2234         (follow_die_sig): Likewise.
2235         (get_signatured_type): Likewise.
2236         (get_DW_AT_signature_type): Likewise.
2237         (dwarf2_find_containing_comp_unit): Likewise.
2238         (set_die_type): Likewise.
2239
2240 2018-02-21  John Baldwin  <jhb@FreeBSD.org>
2241
2242         * arch/aarch64.c: Include "common-defs.h".
2243         * arch/amd64.c: Likewise.
2244         * arch/i386.c: Likewise.
2245
2246 2018-02-21  Tom Tromey  <tom@tromey.com>
2247
2248         * value.h: (extract_field_op): Update.
2249         * eval.c (extract_field_op): Return a const char *.
2250         * expression.h (parse_expression_for_completion): Update.
2251         * completer.c (complete_expression): Update.
2252         (add_struct_fields): Make fieldname const.
2253         * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
2254         (mark_completion_tag, parse_exp_in_context_1): Update.
2255         (parse_expression_for_completion): Change "name" to
2256         unique_xmalloc_ptr*.
2257
2258 2018-02-21  Tom Tromey  <tom@tromey.com>
2259
2260         * infcall.c (call_function_by_hand_dummy): Use std::vector.
2261
2262 2018-02-21  Yao Qi  <yao.qi@linaro.org>
2263
2264         * avr-tdep.c (avr_read_pc): Change parameter type to
2265         readable_regcache.
2266         * gdbarch.sh (read_pc): Likewise.
2267         * gdbarch.c: Re-generated.
2268         * gdbarch.h: Re-generated.
2269         * hppa-tdep.c (hppa_read_pc): Change parameter type to
2270         readable_regcache.
2271         * ia64-tdep.c (ia64_read_pc): Likewise.
2272         * mips-tdep.c (mips_read_pc): Likewise.
2273         * spu-tdep.c (spu_read_pc): Likewise.
2274
2275 2018-02-21  Yao Qi  <yao.qi@linaro.org>
2276
2277         * Makefile.in (COMMON_SFILES): Add regcache-dump.c
2278         * regcache-dump.c: New file.
2279         * regcache.c: Move register_dump to regcache-dump.c.
2280         (maintenance_print_registers): Likewise.
2281         (maintenance_print_raw_registers): Likewise.
2282         (maintenance_print_cooked_registers): Likewise.
2283         (maintenance_print_register_groups): Likewise.
2284         (maintenance_print_remote_registers): Likewise.
2285         (_initialize_regcache): Likewise.
2286         * regcache.h (register_dump): Moved from regcache.c.
2287
2288 2018-02-21  Yao Qi  <yao.qi@linaro.org>
2289
2290         * regcache.c (regcache::regcache): Update.
2291         (regcache::invalidate): Move it to detached_regcache::invalidate.
2292         (get_thread_arch_aspace_regcache): Update.
2293         (regcache::raw_update): Update.
2294         (regcache::cooked_read): Remove some code.
2295         (regcache::cooked_read_value): Likewise.
2296         (regcache::raw_write): Remove assert on m_readonly_p.
2297         (regcache::raw_supply_integer): Move it to
2298         detached_regcache::raw_supply_integer.
2299         (regcache::raw_supply_zeroed): Likewise.
2300         * regcache.h (detached_regcache) <raw_supply_integer>: New
2301         declaration.
2302         <raw_supply_zeroed, invalidate>: Likewise.
2303         (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
2304         <invalidate>: Likewise.
2305         <m_readonly_p>: Removed.
2306
2307 2018-02-21  Yao Qi  <yao.qi@linaro.org>
2308
2309         * infcmd.c (get_return_value): Let stop_regs point to
2310         get_current_regcache.
2311         * regcache.c (regcache::regcache): Remove.
2312         (register_dump_reg_buffer): New class.
2313         (regcache_print): Adjust.
2314         * regcache.h (regcache): Remove constructors.
2315
2316 2018-02-21  Yao Qi  <yao.qi@linaro.org>
2317
2318         * regcache.c (class register_dump): New class.
2319         (register_dump_regcache, register_dump_none): New class.
2320         (register_dump_remote, register_dump_groups): New class.
2321         (regcache_print): Update.
2322         * regcache.h (regcache_dump_what): Move it to regcache.c.
2323         (regcache) <dump>: Remove.
2324
2325 2018-02-21  Yao Qi  <yao.qi@linaro.org>
2326
2327         * jit.c (struct jit_unwind_private) <regcache>: Change its type to
2328          reg_buffer_rw *.
2329         (jit_unwind_reg_set_impl): Call raw_supply.
2330         (jit_frame_sniffer): Use reg_buffer_rw.
2331         * record-full.c (record_full_core_regbuf): Change its type.
2332         (record_full_core_open_1): Use reg_buffer_rw.
2333         (record_full_close): Likewise.
2334         (record_full_core_fetch_registers): Use regcache->raw_supply.
2335         (record_full_core_store_registers): Likewise.
2336         * regcache.c (regcache::get_register_status): Move it to
2337         reg_buffer.
2338         (regcache_raw_set_cached_value): Remove.
2339         (regcache::raw_set_cached_value): Remove.
2340         (regcache::raw_write): Call raw_supply.
2341         (regcache::raw_supply): Move it to reg_buffer_rw.
2342         * regcache.h (regcache_raw_set_cached_value): Remove.
2343         (reg_buffer_rw): New class.
2344
2345 2018-02-21  Yao Qi  <yao.qi@linaro.org>
2346
2347         * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
2348         readonly_detached_regcache.
2349         (dummy_frame_prev_register): Use regcache->cooked_read.
2350         * frame.c (frame_save_as_regcache): Change return type.
2351         (frame_pop): Update.
2352         * frame.h (frame_save_as_regcache): Update declaration.
2353         * inferior.h (get_infcall_suspend_state_regcache): Update
2354         declaration.
2355         * infrun.c (infcall_suspend_state) <registers>: use
2356         readonly_detached_regcache.
2357         (save_infcall_suspend_state): Don't use regcache_dup.
2358         (get_infcall_suspend_state_regcache): Change return type.
2359         * linux-fork.c (struct fork_info) <savedregs>: Change to
2360         readonly_detached_regcache.
2361         <pc>: New field.
2362         (fork_save_infrun_state): Don't use regcache_dup.
2363         (info_checkpoints_command): Adjust.
2364         * mi/mi-main.c (register_changed_p): Update declaration.
2365         (mi_cmd_data_list_changed_registers): Use
2366         readonly_detached_regcache.
2367         (register_changed_p): Change parameter type to
2368         readonly_detached_regcache.
2369         * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
2370         readonly_detached_regcache.
2371         (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
2372         * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
2373         New.
2374         (regcache::save): Move it to reg_buffer.
2375         (regcache::restore): Change parameter type.
2376         (regcache_dup): Remove.
2377         * regcache.h (reg_buffer) <save>: New method.
2378         (readonly_detached_regcache): New class.
2379         * spu-tdep.c (spu2ppu_cache) <regcache>: Use
2380         readonly_detached_regcache.
2381         (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
2382
2383 2018-02-21  Yao Qi  <yao.qi@linaro.org>
2384
2385         * frame.c (frame_save_as_regcache): Use regcache method save.
2386         (frame_pop): Use regcache method restore.
2387         * infrun.c (restore_infcall_suspend_state): Likewise.
2388         * linux-fork.c (fork_load_infrun_state): Likewise.
2389         * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
2390         save.
2391         * regcache.c (regcache_save): Remove.
2392         (regcache::restore): More asserts.
2393         (regcache_cpy): Remove.
2394         * regcache.h (regcache_save): Remove the declaration.
2395         (regcache::restore): Move from private to public.
2396         Remove the friend declaration of regcache_cpy.
2397         (regcache_cpy): Remove declaration.
2398
2399 2018-02-21  Yao Qi  <yao.qi@linaro.org>
2400
2401         * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
2402         parameter type to 'readable_regcache *'.
2403         * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
2404         * arm-tdep.c (arm_neon_quad_read): Likewise.
2405         (arm_pseudo_read): Likewise.
2406         * avr-tdep.c (avr_pseudo_register_read): Likewise.
2407         * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
2408         * frv-tdep.c (frv_pseudo_register_read): Likewise.
2409         * gdbarch.c: Re-generated.
2410         * gdbarch.h: Re-generated.
2411         * gdbarch.sh (pseudo_register_read): Change parameter type to
2412         'readable_regcache *'.
2413         (pseudo_register_read_value): Likewise.
2414         * h8300-tdep.c (pseudo_from_raw_register): Likewise.
2415         (h8300_pseudo_register_read): Likewise.
2416         * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
2417         * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
2418         (i386_pseudo_register_read_into_value): Likewise.
2419         (i386_pseudo_register_read_value): Likewise.
2420         * i386-tdep.h (i386_pseudo_register_read_into_value): Update
2421         declaration.
2422         * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
2423         * m32c-tdep.c (m32c_raw_read): Likewise.
2424         (m32c_read_flg): Likewise.
2425         (m32c_banked_register): Likewise.
2426         (m32c_banked_read): Likewise.
2427         (m32c_sb_read): Likewise.
2428         (m32c_part_read): Likewise.
2429         (m32c_cat_read): Likewise.
2430         (m32c_r3r2r1r0_read): Likewise.
2431         (m32c_pseudo_register_read): Likewise.
2432         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
2433         * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
2434         (mep_pseudo_cr64_read): Likewise.
2435         (mep_pseudo_register_read): Likewise.
2436         * mips-tdep.c (mips_pseudo_register_read): Likewise.
2437         * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
2438         * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
2439         * regcache.c (regcache::raw_read): Move it to readable_regcache.
2440         (regcache::cooked_read): Likewise.
2441         (regcache::cooked_read_value): Likewise.
2442         (regcache_cooked_read_signed):
2443         (regcache::cooked_read): Likewise.
2444         * regcache.h (readable_regcache): New class.
2445         (regcache): Inherit readable_regcache.  Move some methods to
2446         readable_regcache.
2447         * rl78-tdep.c (rl78_pseudo_register_read): Change
2448         parameter type to 'readable_regcache *'.
2449         * rs6000-tdep.c (do_regcache_raw_read): Remove.
2450         (e500_pseudo_register_read): Change parameter type to
2451         'readable_regcache *'.
2452         (dfp_pseudo_register_read): Likewise.
2453         (vsx_pseudo_register_read): Likewise.
2454         (efpr_pseudo_register_read): Likewise.
2455         * s390-tdep.c (s390_pseudo_register_read): Likewise.
2456         * sh-tdep.c (sh_pseudo_register_read): Likewise.
2457         * sh64-tdep.c (pseudo_register_read_portions): Likewise.
2458         (sh64_pseudo_register_read): Likewise.
2459         * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
2460         * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
2461         * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
2462         (spu_pseudo_register_read): Likewise.
2463         * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
2464         (xtensa_pseudo_register_read): Likewise.
2465
2466 2018-02-21  Yao Qi  <yao.qi@linaro.org>
2467
2468         * regcache.c (regcache::regcache): Call reg_buffer ctor.
2469         (regcache::arch): Move it to reg_buffer::arch.
2470         (regcache::register_buffer): Likewise.
2471         (regcache::assert_regnum): Likewise.
2472         (regcache::num_raw_registers): Likewise.
2473         * regcache.h (reg_buffer): New class.
2474         (regcache): Inherit reg_buffer.
2475
2476 2018-02-20  Simon Marchi  <simon.marchi@ericsson.com>
2477
2478         * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
2479         gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
2480
2481 2018-02-20  Markus Metzger  <markus.t.metzger@intel.com>
2482
2483         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
2484
2485 2018-02-19  Alan Hayward  <alan.hayward@arm.com>
2486
2487         * Makefile.in: (COMMON_SFILES): Add common/*.c files.
2488         (SFILES): Remove common/*.c files.
2489         (COMMON_OBS): Remove some *.o files built from common/*.c files.
2490         * common/common.host: Add common reference.
2491         * configure.ac: Likewise.
2492         * configure: Regenerate.
2493
2494 2018-02-16  Yao Qi  <yao.qi@linaro.org>
2495
2496         * block.c (block_namespace_info): Inherit allocate_on_obstack.
2497         (block_initialize_namespace): Use new.
2498         * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
2499         (dwarf2_free_objfile): Use delete.
2500         * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
2501         (copy_type_recursive): Use new.
2502         * gdb_obstack.h (allocate_on_obstack): New.
2503
2504 2018-02-15  Yao Qi  <yao.qi@linaro.org>
2505
2506         PR gdb/22849
2507         * inferior.c (exit_inferior_1): Reset inf->control.
2508
2509 2018-02-15  Joel Brobecker  <brobecker@adacore.com>
2510
2511         * ada-lang.c (ada_to_fixed_value_create): Delete advance
2512         declaration.
2513
2514 2018-02-14  Pedro Alves  <palves@redhat.com>
2515
2516         * frame-unwind.c (frame_unwind_try_unwinder): Always call
2517         frame_cleanup_after_sniffer on exception.
2518
2519 2018-02-14  Tom Tromey  <tom@tromey.com>
2520
2521         * solist.h (struct target_so_ops) <bfd_open>: Make pathname
2522         const.
2523         (solib_bfd_open): Make pathname const.
2524         * solib.c (solib_bfd_open): Make pathname const.
2525         * solib-spu.c (spu_bfd_fopen): Make name const.
2526         (spu_bfd_open): Make pathname const.
2527         * solib-darwin.c (darwin_bfd_open): Make pathname const.
2528         * solib-aix.c (solib_aix_bfd_open): Make pathname const.
2529
2530 2018-02-14  Tom Tromey  <tom@tromey.com>
2531
2532         * symfile.c (symfile_bfd_open): Update.
2533         * source.h (openp, source_full_path_of, find_and_open_source):
2534         Change argument type to unique_xmalloc_ptr.
2535         * source.c (openp): Take a unique_xmalloc_ptr.
2536         (source_full_path_of, find_and_open_source): Likewise.
2537         (open_source_file, symtab_to_fullname): Update.
2538         * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
2539         unique_xmalloc_ptr.
2540         * solib.c (solib_find_1): Use unique_xmalloc_ptr.
2541         (exec_file_find): Update.
2542         * psymtab.c (psymtab_to_fullname): Update.
2543         * nto-tdep.h (nto_find_and_open_solib): Update.
2544         * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
2545         unique_xmalloc_ptr.
2546         * exec.c (exec_file_attach): Update.
2547         * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
2548         * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
2549
2550 2018-02-14  Tom Tromey  <tom@tromey.com>
2551
2552         * solib.c: Include source.h.
2553         * nto-tdep.c: Include source.h.
2554         * mi/mi-cmd-env.c: Include source.h.
2555         * infcmd.c: Include source.h.
2556         * exec.c: Include source.h.
2557         * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
2558         (add_path, directory_switch, source_path, init_source_path): Move
2559         declarations...
2560         * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
2561         (add_path, directory_switch, source_path, init_source_path):
2562         ...here.
2563
2564 2018-02-14  Tom Tromey  <tom@tromey.com>
2565
2566         * solist.h (exec_file_find, solib_find): Return
2567         unique_xmalloc_ptr.
2568         (solib_bfd_fopen): Take a const char *.
2569         * solib.c (solib_find_1): Return unique_xmalloc_ptr.
2570         (exec_file_find, solib_find): Likewise.
2571         (solib_bfd_fopen): Do not take ownership of "pathname".
2572         (solib_bfd_open): Use unique_xmalloc_ptr.
2573         * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
2574         * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
2575         * infrun.c (follow_exec): Use unique_xmalloc_ptr.
2576         * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
2577
2578 2018-02-14  Joel Brobecker  <brobecker@adacore.com>
2579
2580         * ada-lang.c (name_match_type_from_name): Remove reference to
2581         ada_name_for_lookup in function's documentation.
2582         * ada-lang.h (ada_name_for_lookup): Delete declaration.
2583
2584 2018-02-13  Simon Marchi  <simon.marchi@polymtl.ca>
2585
2586         * defs.h (enum openp_flags): New enum.
2587         (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
2588         Move to enum openp_flags.
2589         (openp_flags): New enum flags.
2590         (openp): Change parameter type to openp_flags.
2591         * source.c (openp): Change parameter type to openp_flags.
2592         * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
2593         * dwarf2read.c (try_open_dwop_file): Use openp_flags.
2594
2595 2018-02-13  Simon Marchi  <simon.marchi@polymtl.ca>
2596
2597         * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
2598         per-command.
2599
2600 2018-02-12  Andrew Burgess  <andrew.burgess@embecosm.com>
2601
2602         * dwarf2read.c (dwarf2_release_queue): Delete function, move body
2603         into...
2604         (class dwarf2_queue_guard): ...the destructor of this new class.
2605         (dw2_do_instantiate_symtab): Create instance of the new class
2606         dwarf2_queue_guard, remove cleanup.
2607
2608 2018-02-09  Tom Tromey  <tom@tromey.com>
2609
2610         * source.c (find_source_lines): Don't reference past the end of
2611         the vector.
2612
2613 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
2614
2615         * remote.c (remote_btrace_maybe_reopen): Change error message.
2616         * btrace.c (btrace_enable): Likewise.
2617         (parse_xml_btrace): Likewise.
2618         (parse_xml_btrace_conf): Likewise.
2619
2620 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
2621
2622         * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
2623         (linux_enable_pt, linux_enable_bts): Call
2624         diagnose_perf_event_open_fail.
2625
2626 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
2627
2628         * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
2629         Remove parameter and change return type.  Update callers.  Move it.
2630         (linux_enable_bts, linux_enable_pt): Improve error message.
2631         (linux_enable_pt): Remove zero buffer size check.
2632         (linux_enable_btrace): Improve error messages.  Remove NULL return
2633         check.
2634
2635 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
2636
2637         * btrace.c (btrace_enable): Remove target_supports_btrace call.
2638         * nat/linux-btrace.c (perf_event_pt_event_type): Move.
2639         (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
2640         (linux_supports_pt, linux_supports_btrace): Remove.
2641         (linux_enable_bts): Call cpu_supports_bts.
2642         * nat/linux-btrace.h (linux_supports_btrace): Remove.
2643         * remote.c (remote_supports_btrace): Remove.
2644         (init_remote_ops): Remove remote_supports_btrace.
2645         * target-delegates.c: Regenerated.
2646         * target.c (target_supports_btrace): Remove.
2647         * target.h (target_ops) <to_supports_btrace>: Remove
2648         (target_supports_btrace): Remove.
2649         * x86-linux-nat.c (x86_linux_create_target): Remove
2650         linux_supports_btrace.
2651
2652 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
2653
2654         * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
2655         btrace failed.
2656         * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
2657         exception and use message in own exception.
2658
2659 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
2660
2661         * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
2662         (perf_event_pt_event_type): Use gdb_file_up.
2663         (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
2664         scoped_fd, and scoped_mmap.
2665
2666 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
2667
2668         * common/scoped_mmap.h: New.
2669         * unittests/scoped_mmap-selftest.c: New.
2670         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2671         unittests/scoped_mmap-selftest.c.
2672
2673 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
2674
2675         * common/scoped_fd.h: New.
2676         * unittests/scoped_fd-selftest.c: New.
2677         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2678         unittests/scoped_fd-selftest.c.
2679
2680 2018-02-09  Tom Tromey  <tom@tromey.com>
2681
2682         * auto-load.c (auto_load_section_scripts): Use
2683         gdb::unique_xmalloc_ptr.
2684
2685 2018-02-09  Tom Tromey  <tom@tromey.com>
2686
2687         * auto-load.c (execute_script_contents): Use std::string.
2688
2689 2018-02-09  Joel Brobecker  <brobecker@adacore.com>
2690
2691         * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
2692         Python function, rather than a new command.
2693
2694 2018-02-08  Tom Tromey  <tom@tromey.com>
2695
2696         * solib.c (solib_find_1): Use std::string.
2697         (solib_bfd_fopen): Use unique_xmalloc_ptr.
2698
2699 2018-02-08  Tom Tromey  <tom@tromey.com>
2700
2701         * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
2702
2703 2018-02-08  Tom Tromey  <tom@tromey.com>
2704
2705         * source.c (find_source_lines): Use gdb::def_vector.
2706
2707 2018-02-08  Tom Tromey  <tom@tromey.com>
2708
2709         * macrocmd.c (struct temporary_macro_definition): New.
2710         (macro_define_command): Use temporary_macro_definition.  Remove
2711         cleanups.
2712         (free_macro_definition_ptr): Remove.
2713
2714 2018-02-08  Tom Tromey  <tom@tromey.com>
2715
2716         * macroexp.c (maybe_expand): Use std::string.
2717
2718 2018-02-08  Tom Tromey  <tom@tromey.com>
2719
2720         * macroexp.c (struct macro_buffer): Add initializers for some
2721         members.
2722         (init_buffer, init_shared_buffer, free_buffer)
2723         (free_buffer_return_text): Remove.
2724         (macro_buffer): New constructors.
2725         (~macro_buffer): New destructor.
2726         (macro_buffer::set_shared): New method.
2727         (macro_buffer::resize_buffer, macro_buffer::appendc)
2728         (macro_buffer::appendmem): Now methods, not free functions.
2729         (set_token, append_tokens_without_splicing, stringify)
2730         (macro_stringify): Update.
2731         (gather_arguments): Change return type.  Remove argc_p argument,
2732         add args_ptr argument.  Use std::vector.
2733         (substitute_args): Remove argc argument.  Accept std::vector.
2734         (expand): Update.  Use std::vector.
2735         (scan, macro_expand, macro_expand_next): Update.
2736
2737 2018-02-08  Tom Tromey  <tom@tromey.com>
2738
2739         * symtab.c (default_collect_symbol_completion_matches_break_on):
2740         Use unique_xmalloc_ptr.
2741         * macroscope.h: (sal_macro_scope, user_macro_scope)
2742         (default_macro_scope): Return unique_xmalloc_ptr.
2743         * macroscope.c (sal_macro_scope, user_macro_scope)
2744         (default_macro_scope): Return unique_xmalloc_ptr.
2745         * macroexp.h (macro_expand, macro_expand_once): Return
2746         unique_xmalloc_ptr.
2747         * macroexp.c (macro_expand, macro_expand_once): Return
2748         unique_xmalloc_ptr.
2749         * macrocmd.c (macro_expand_command, macro_expand_once_command)
2750         (info_macro_command, info_macros_command): Use
2751         unique_xmalloc_ptr.
2752         * compile/compile-c-support.c (write_macro_definitions): Use
2753         unique_xmalloc_ptr.
2754         * c-exp.y (c_parse): Use unique_xmalloc_ptr.
2755
2756 2018-02-07  Simon Marchi  <simon.marchi@ericsson.com>
2757
2758         * value.c (value_static_field): Assign field type instead of
2759         containing type when returning an optimized out value.
2760
2761 2018-02-06  Yao Qi  <yao.qi@linaro.org>
2762
2763         * ft32-tdep.c (ft32_read_pc): Remove.
2764         (ft32_write_pc): Remove.
2765         (ft32_gdbarch_init): Update.
2766         * m32r-tdep.c (m32r_read_pc): Remove.
2767         (m32r_gdbarch_init): Update.
2768         * mep-tdep.c (mep_read_pc): Remove.
2769         (mep_gdbarch_init): Update.
2770         * microblaze-tdep.c (microblaze_write_pc): Remove.
2771         (microblaze_gdbarch_init): Update.
2772         * mn10300-tdep.c (mn10300_read_pc): Remove.
2773         (mn10300_write_pc): Remove.
2774         (mn10300_gdbarch_init): Update.
2775         * moxie-tdep.c (moxie_read_pc): Remove.
2776         (moxie_write_pc): Remove.
2777         (moxie_gdbarch_init): Update.
2778
2779 2018-02-06  Yao Qi  <yao.qi@linaro.org>
2780
2781         * expprint.c (print_subexp_standard): Handle
2782         OP_F77_UNDETERMINED_ARGLIST.
2783         (dump_subexp_body_standard): Likewise.
2784
2785 2018-02-05  Alan Hayward  <alan.hayward@arm.com>
2786
2787         * target-descriptions.c (tdesc_element_visitor) Add empty
2788         implementations.
2789         (tdesc_type): Move make_gdb_type from here.
2790         (tdesc_type_builtin): Likewise.
2791         (tdesc_type_vector): Likewise.
2792         (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
2793         (make_gdb_type_struct): Move from tdesc_type_with_fields.
2794         (make_gdb_type_union): Likewise.
2795         (make_gdb_type_flags): Likewise.
2796         (make_gdb_type_enum): Likewise.
2797         (make_gdb_type): New function.
2798         (tdesc_register_type): Use static make_gdb_type.
2799
2800 2018-02-05  Ruslan Kabatsayev <b7.10110111@gmail.com>
2801
2802         * infcmd.c (default_print_one_register_info): Align natural-format
2803         column values consistently one under another.
2804         (pad_to_column): New function.
2805
2806 2018-02-05  Joel Brobecker  <brobecker@adacore.com>
2807
2808         * dwarf2read.c (dwarf2_physname): Move commment.
2809
2810 2018-02-01  Leszek Swirski  <leszeks@google.com>
2811
2812         * varobj.c (varobj_formatted_print_options): Allow recursive
2813         pretty printing if pretty printing is enabled.
2814
2815 2018-02-01  Leszek Swirski  <leszeks@google.com>
2816
2817         * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
2818         names after a structop as a filename.
2819
2820 2018-02-01  Yao Qi  <yao.qi@linaro.org>
2821
2822         * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
2823         (arm_record_coproc_data_proc): Likewise.
2824
2825 2018-02-01  Yao Qi  <yao.qi@linaro.org>
2826
2827         * arm-tdep.c (arm_record_extension_space): Change ret to signed.
2828
2829 2018-01-31  Nikola Prica  <nikola.prica@rt-rk.com>
2830
2831         * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
2832         assign shifted lr_reg to fdata->lr_register when lr_reg is set.
2833
2834 2018-01-31  Pedro Alves  <palves@redhat.com>
2835
2836         * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
2837         * inflow.c (child_terminal_save_inferior): Wrap reference to
2838         tcgetpgrp in HAVE_TERMIOS_H.
2839         (child_interrupt, child_pass_ctrlc): Wrap references to signal in
2840         _WIN32.
2841         * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
2842         always iterate over all inferiors.
2843         (gdbsim_cntrl_c): Adjust.
2844         * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
2845
2846 2018-01-31  Joel Brobecker  <brobecker@adacore.com>
2847
2848         * gdbtypes.c (lookup_array_range_type): Make sure the array's
2849         index type is objfile-owned if the element type is as well.
2850
2851 2018-01-31  Joel Brobecker  <brobecker@adacore.com>
2852
2853         GDB 8.1 released.
2854
2855 2018-01-30  Philipp Rudo  <prudo@linux.vnet.ibm.com>
2856
2857         * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
2858         "features/s390x-linux64.c".
2859         (_initialize_s390_linux_tdep): Remove initialization of tdescs
2860         s390_linux32 and s390x_linux64.
2861         (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
2862         default tdesc.
2863         * s390-tdep.c: Include "features/s390-linux32.c" and
2864         "features/s390x-linux64.c".
2865         (s390_tdesc_valid): Add check for tdesc_has_registers.
2866         (s390_gdbarch_init): Make sure there is always a valid tdesc.
2867         (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
2868         tdesc_s390x_linux64.
2869         * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
2870         tdesc_s390x_linux64 to...
2871         * s390-tdep.h: ...here.
2872
2873 2018-01-30  Pedro Alves  <palves@redhat.com>
2874
2875         PR gdb/13211
2876         * config.in, configure: Regenerate.
2877         * configure.ac: Check for getpgid.
2878         * go32-nat.c (go32_pass_ctrlc): New.
2879         (go32_target): Install it.
2880         * inf-child.c (inf_child_target): Install
2881         child_terminal_save_inferior, child_pass_ctrlc and
2882         child_interrupt.
2883         * inf-ptrace.c (inf_ptrace_interrupt): Delete.
2884         (inf_ptrace_target): No longer install it.
2885         * infcmd.c (interrupt_target_1): Adjust.
2886         * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
2887         (child_interrupt): Declare.
2888         (inferior::terminal_state): New.
2889         * inflow.c (struct terminal_info): Update comments.
2890         (inferior_process_group): Delete.
2891         (terminal_is_ours): Delete.
2892         (gdb_tty_state): New.
2893         (child_terminal_init): Adjust.
2894         (is_gdb_terminal, sharing_input_terminal_1)
2895         (sharing_input_terminal): New functions.
2896         (child_terminal_inferior): Adjust.  Use sharing_input_terminal.
2897         Set the process's actual process group in the foreground if
2898         possible.  Handle is_ours_for_output/is_ours distinction.  Don't
2899         mark terminal as the inferior's if not sharing GDB's terminal.
2900         Don't check attach_flag.
2901         (child_terminal_ours_for_output, child_terminal_ours): Adjust to
2902         pass down a target_terminal_state.
2903         (child_terminal_save_inferior): New, factored out from ...
2904         (child_terminal_ours_1): ... this.  Handle
2905         target_terminal_state::is_ours_for_output.
2906         (child_interrupt, child_pass_ctrlc): New.
2907         (inflow_inferior_exit): Clear the inferior's terminal_state.
2908         (copy_terminal_info): Copy the inferior's terminal state.
2909         (_initialize_inflow): Remove reference to terminal_is_ours.
2910         * inflow.h (inferior_process_group): Delete.
2911         * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
2912         * procfs.c (procfs_target): Don't install procfs_interrupt.
2913         (procfs_interrupt): Delete.
2914         * remote.c (remote_serial_quit_handler): Adjust.
2915         (remote_interrupt): Remove ptid parameter.  Adjust.
2916         * target-delegates.c: Regenerate.
2917         * target.c: Include "terminal.h".
2918         (target_terminal::terminal_state): Rename to ...
2919         (target_terminal::m_terminal_state): ... this.
2920         (target_terminal::init): Adjust.
2921         (target_terminal::inferior): Adjust to per-inferior
2922         terminal_state.
2923         (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
2924         (target_terminal::ours, target_terminal::ours_for_output): Use
2925         target_terminal_is_ours_kind.
2926         (target_interrupt): Remove ptid parameter.  Adjust.
2927         (default_target_pass_ctrlc): Adjust.
2928         * target.h (target_ops::to_terminal_save_inferior): New field.
2929         (target_ops::to_interrupt): Remove ptid_t parameter.
2930         (target_interrupt): Remove ptid_t parameter.  Update comment.
2931         (target_pass_ctrlc): Update comment.
2932         * target/target.h (target_terminal_state): New scoped enum,
2933         factored out of ...
2934         (target_terminal::terminal_state): ... here.
2935         (target_terminal::inferior): Update comments.
2936         (target_terminal::restore_inferior): New.
2937         (target_terminal::is_inferior, target_terminal::is_ours)
2938         (target_terminal::is_ours_for_output): Adjust.
2939         (target_terminal::scoped_restore_terminal_state): Adjust to
2940         rename, and call restore_inferior() instead of inferior().
2941         (target_terminal::scoped_restore_terminal_state::m_state): Change
2942         type.
2943         (target_terminal::terminal_state): Rename to ...
2944         (target_terminal::m_terminal_state): ... this and change type.
2945
2946 2018-01-30  Pedro Alves  <palves@redhat.com>
2947
2948         * linux-nat.c (wait_for_signal): New function.
2949         (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
2950         directly.
2951         (async_terminal_is_ours)
2952         (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
2953         (linux_nat_add_target): Don't override
2954         to_terminal_inferior/to_terminal_ours.
2955
2956 2018-01-29  Sergio Durigan Junior  <sergiodj@redhat.com>
2957
2958         * remote.c (remote_follow_fork): Don't call "detach_inferior".
2959
2960 2018-01-28  Simon Marchi  <simon.marchi@ericsson.com>
2961
2962         * dwarf2read.c (free_dwo_files): Add forward-declaration.
2963         (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
2964         dwarf2_per_objfile_free here.
2965         (dwarf2_per_objfile_free): Remove.
2966         (_initialize_dwarf2_read): Don't register
2967         dwarf2_per_objfile_free as a registry cleanup.
2968
2969 2018-01-27  Eli Zaretskii  <eliz@gnu.org>
2970
2971         Avoid compilation errors in MinGW native builds
2972
2973         The error is triggered by including python-internal.h, and the
2974         error message is:
2975
2976              In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
2977                       from build-gnulib/import/math.h:27,
2978                       from d:/usr/Python26/include/pyport.h:235,
2979                       from d:/usr/Python26/include/Python.h:58,
2980                       from python/python-internal.h:94,
2981                       from python/py-arch.c:24:
2982              d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
2983         using ::hypot;
2984                 ^~~~~
2985
2986         This happens because Python headers define 'hypot' to expand t
2987         '_hypot' in the Windows builds.
2988         * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
2989         'hypoth'.  This avoids a compilation error.
2990
2991 2018-01-26  Alan Hayward  <alan.hayward@arm.com>
2992
2993         * MAINTAINERS (Write After Approval): Fix ordering.
2994
2995 2018-01-26  Alan Hayward  <alan.hayward@arm.com>
2996
2997         * MAINTAINERS (Write After Approval): Add Alan Hayward.
2998
2999 2018-01-26  Alan Modra  <amodra@gmail.com>
3000
3001         * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
3002         (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
3003         Remove nop.  Make const.  Comment.
3004         (powerpc32_plt_stub_so_2): New.
3005         (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
3006         Correct count.  Update uses.
3007         (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
3008         Move common code reading PLT entry word.  Correct
3009         powerpc32_plt_stub PLT address calculation.
3010         * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
3011         (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
3012         (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
3013         (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
3014         (ppc64_standard_linkage8): Likewise.
3015         * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
3016         Correct insns description.
3017         * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
3018
3019 2018-01-24  Pedro Alves  <palves@redhat.com>
3020
3021         GCC PR libstdc++/83906
3022         * gdbtypes.c (operator==(const dynamic_prop &,
3023         const dynamic_prop &)): New.
3024         (operator==(const range_bounds &, const range_bounds &)): New.
3025         (check_types_equal): Use them instead of memcmp.
3026         * gdbtypes.h (operator==(const dynamic_prop &,
3027         const dynamic_prop &)): Declare.
3028         (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
3029         (operator==(const range_bounds &, const range_bounds &)): Declare.
3030         (operator!=(const range_bounds &, const range_bounds &)): Declare.
3031
3032 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
3033
3034         * s390-linux-tdep.c (s390_record_address_mask)
3035         (s390_record_calc_disp_common, s390_record_calc_disp)
3036         (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
3037         (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
3038         (s390_process_record): Move to s390-tdep.c.
3039         (s390_linux_init_abi_any): Adjust.
3040         * s390-tdep.c (s390_record_address_mask)
3041         (s390_record_calc_disp_common, s390_record_calc_disp)
3042         (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
3043         (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
3044         (s390_process_record): Moved from s390-linux-tdep.c
3045         (s390_gdbarch_init): Adjust.
3046
3047 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
3048
3049         * s390-linux-nat.c (s390-tdep.h): New include.
3050         * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
3051         (HFILES_NO_SRCDIR): Add s390-tdep.h.
3052         (ALLDEPFILES): Add s390-tdep.c.
3053         * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
3054         * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
3055         * s390-tdep.h: ...this.  New file.
3056         * s390-linux-tdep.c (s390-tdep.h): New include.
3057         (_initialize_s390_tdep): Rename to...
3058         (_initialize_s390_linux_tdep): ...this and adjust.
3059         (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
3060         (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
3061         s390-tdep.h.
3062         (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
3063         (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
3064         (s390_is_partial_instruction, s390_software_single_step)
3065         (is_non_branch_ril, s390_displaced_step_copy_insn)
3066         (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
3067         (s390_prologue_data, s390_addr, s390_store, s390_load)
3068         (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
3069         (s390_register_call_saved, s390_guess_tracepoint_registers)
3070         (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
3071         (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
3072         (s390_pseudo_register_name, s390_pseudo_register_type)
3073         (s390_pseudo_register_read, s390_pseudo_register_write)
3074         (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
3075         (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
3076         (s390_addr_bits_remove, s390_address_class_type_flags)
3077         (s390_address_class_type_flags_to_name)
3078         (s390_address_class_name_to_type_flags, s390_effective_inner_type)
3079         (s390_function_arg_float, s390_function_arg_vector)
3080         (is_power_of_two, s390_function_arg_integer, s390_arg_state)
3081         (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
3082         (s390_frame_align, s390_register_return_value, s390_return_value)
3083         (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
3084         (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
3085         (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
3086         (s390_trad_frame_prev_register, s390_unwind_cache)
3087         (s390_prologue_frame_unwind_cache)
3088         (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
3089         (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
3090         (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
3091         (s390_stub_frame_this_id, s390_stub_frame_prev_register)
3092         (s390_stub_frame_sniffer, s390_stub_frame_unwind)
3093         (s390_frame_base_address, s390_local_base_address)
3094         (s390_frame_base, s390_gcc_target_options)
3095         (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
3096         (s390_validate_reg_range, s390_tdesc_valid)
3097         (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
3098         * s390-tdep.c: ...this.  New file.
3099
3100 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
3101
3102         * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
3103         (s390_process_record, s390_gdbarch_tdep_alloc)
3104         (s390_linux_init_abi_any): Use/set new hook.
3105
3106 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
3107
3108         * s390-linux-tdep.c (osabi.h): New include.
3109         (s390_linux_init_abi_31, s390_linux_init_abi_64)
3110         (s390_linux_init_abi_any): New functions.
3111         (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
3112
3113 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
3114
3115         * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
3116         tdesc_has_registers check
3117
3118 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
3119
3120         * s390-linux-tdep.c (s390_tdesc_valid): New function.
3121         (s390_validate_reg_range): New macro.
3122         (s390_gdbarch_init): Adjust.
3123
3124 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
3125
3126         * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
3127         (s390_gdbarch_tdep_alloc): Adjust.
3128         (s390_gdbarch_init): Adjust.
3129
3130 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
3131
3132         * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
3133         <have_tdb>: Change type to bool.
3134         (s390_gdbarch_tdep_alloc): Adjust.
3135         (s390_gdbarch_init): Adjust.
3136
3137 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
3138
3139         * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
3140         (gdbarch_tdep) <have_upper, have_vx>: New fields.
3141         (s390_gdbarch_tdep_alloc): New function.
3142         (s390_gdbarch_init): Allocate tdep at start and use its fields
3143         instead of separate variables.
3144
3145 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
3146
3147         * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
3148         when looking for cached gdbarch and add comment for remaining.
3149
3150 2018-01-22  Pedro Alves  <palves@redhat.com>
3151             Sergio Durigan Junior  <sergiodj@redhat.com>
3152
3153         * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
3154         case.
3155
3156 2018-01-22  Maciej W. Rozycki  <macro@mips.com>
3157
3158         * MAINTAINERS: Update my company e-mail address.
3159
3160 2018-01-22  Yao Qi  <yao.qi@linaro.org>
3161
3162         * regcache.c (cooked_write_test): New function.
3163         (_initialize_regcache): Register the test.
3164
3165 2018-01-22  Yao Qi  <yao.qi@linaro.org>
3166
3167         * ia64-tdep.c (ia64_pseudo_register_read): Call
3168         regcache->cooked_read instead of regcache_cooked_read_unsigned.
3169         * m32c-tdep.c (m32c_cat_read): Likewise.
3170         (m32c_r3r2r1r0_read): Likewise.
3171         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
3172         * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
3173
3174 2018-01-22  Yao Qi  <yao.qi@linaro.org>
3175
3176         * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
3177         method raw_read instead of regcache_raw_read.
3178         * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
3179         * arm-tdep.c (arm_neon_quad_read): Likewise.
3180         * avr-tdep.c (avr_pseudo_register_read): Likewise.
3181         * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
3182         * frv-tdep.c (frv_pseudo_register_read): Likewise.
3183         * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
3184         * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
3185         (i386_pseudo_register_read_into_value): Likewise.
3186         * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
3187         * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
3188         * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
3189         * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
3190         * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
3191         * sparc-tdep.c (sparc32_pseudo_register_read):  Likewise.
3192         * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
3193         * spu-tdep.c (spu_pseudo_register_read_spu):  Likewise.
3194         * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
3195
3196 2018-01-22  Yao Qi  <yao.qi@linaro.org>
3197
3198         * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
3199         * configure.tgt: Remove target mt.
3200         * mt-tdep.c: Remove.
3201         * regcache.c (cooked_read_test): Remove the check for mt.
3202
3203 2018-01-22  Yao Qi  <yao.qi@linaro.org>
3204
3205         * jit.c (jit_frame_prev_register): Call regcache::cooked_read
3206         instead of gdbarch_pseudo_register_read_value.
3207
3208 2018-01-22  Joel Brobecker  <brobecker@adacore.com>
3209
3210         * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
3211         language is Ada.
3212
3213 2018-01-22  Joel Brobecker  <brobecker@adacore.com>
3214
3215         * linespec.c (create_sals_line_offset): Remove code that preserved
3216         the symtab_and_line's line number.
3217
3218 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
3219
3220         * varobj.c (varobj_create): Don't set valid_block when creating a
3221         floating varobj.
3222
3223 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
3224
3225         * varobj.c (varobj_create): Remove out of date comment.
3226
3227 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
3228
3229         PR mi/20395
3230         * ada-exp.y (write_var_from_sym): Pass extra parameter when
3231         updating innermost block.
3232         * parse.c (innermost_block_tracker::update): Take extra type
3233         parameter, and check types match before updating innermost block.
3234         (write_dollar_variable): Update innermost block for registers.
3235         * parser-defs.h (enum innermost_block_tracker_type): New enum.
3236         (innermost_block_tracker::innermost_block_tracker): Initialise
3237         m_types member.
3238         (innermost_block_tracker::reset): Take type parameter.
3239         (innermost_block_tracker::update): Take type parameter, and pass
3240         type through as needed.
3241         (innermost_block_tracker::m_types): New member.
3242         * varobj.c (varobj_create): Pass type when reseting innermost
3243         block.
3244
3245 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
3246
3247         * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
3248         * ada-lang.c (resolve_subexp): Likewise.
3249         * breakpoint.c (set_breakpoint_condition) Likewise.
3250         (watch_command_1) Likewise.
3251         * c-exp.y (variable): Likewise.
3252         * d-exp.y (PrimaryExpression): Likewise.
3253         * f-exp.y (variable): Likewise.
3254         * go-exp.y (variable): Likewise.
3255         * m2-exp.y (variable): Likewise.
3256         * objfiles.c (objfile::~objfile): Likewise.
3257         * p-exp.y (variable): Likewise.
3258         * parse.c (innermost_block): Change type.
3259         * parser-defs.h (class innermost_block_tracker): New.
3260         (innermost_block): Change to innermost_block_tracker.
3261         * printcmd.c (display_command): Switch to innermost_block API.
3262         (do_one_display): Likewise.
3263         * rust-exp.y (do_one_display): Likewise.
3264         * symfile.c (clear_symtab_users): Likewise.
3265         * varobj.c (varobj_create): Switch to innermost_block API, replace
3266         use of innermost_block with block stored on varobj object.
3267
3268 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
3269
3270         * expression.h (innermost_block): Remove declaration.
3271         * varobj.c: Add 'parser-defs.h' include.
3272
3273 2018-01-19  Tom Tromey  <tom@tromey.com>
3274
3275         * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
3276         symbols in the static and global blocks.
3277
3278 2018-01-19  James Clarke  <jrtc27@jrtc27.com>
3279
3280         * nat/linux-ptrace.c: Remove unnecessary reinclusion of
3281         gdb_ptrace.h, and move including gdb_wait.h ...
3282         * nat/linux-ptrace.h: ... to here.
3283
3284 2018-01-19  Simon Marchi  <simon.marchi@ericsson.com>
3285
3286         * inf-ptrace.c (inf_ptrace_detach): Adjust call to
3287         inf_ptrace_detach_success.
3288         (inf_ptrace_detach_success): Add inferior parameter, use it
3289         instead of inferior_ptid, pass it to detach_inferior.
3290         * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
3291         parameter.
3292         * inferior.c (detach_inferior): Add overload that takes an
3293         inferior object.
3294         * inferior.h (detach_inferior): Likewise.
3295         * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
3296         use inferior_ptid, adjust call to inf_ptrace_detach_success.
3297         * linux-thread-db.c (thread_db_detach): Use inf parameter.
3298
3299 2018-01-19  Simon Marchi  <simon.marchi@ericsson.com>
3300
3301         * target.h (struct target_ops) <to_detach>: Add inferior
3302         parameter.
3303         (target_detach): Likewise.
3304         * target.c (dispose_inferior): Pass inferior down.
3305         (target_detach): Pass inferior down.  Assert that it is equal to
3306         the current inferior.
3307         * aix-thread.c (aix_thread_detach): Pass inferior down.
3308         * corefile.c (core_file_command): Pass current_inferior() down.
3309         * corelow.c (core_detach): Add inferior parameter.
3310         * darwin-nat.c (darwin_detach): Likewise.
3311         * gnu-nat.c (gnu_detach): Likewise.
3312         * inf-ptrace.c (inf_ptrace_detach): Likewise.
3313         * infcmd.c (detach_command): Pass current_inferior() down to
3314         target_detach.
3315         * infrun.c (follow_fork_inferior): Pass parent_inf to
3316         target_detach.
3317         (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
3318         target_detach.
3319         * linux-nat.c (linux_nat_detach): Add inferior parameter.
3320         * linux-thread-db.c (thread_db_detach): Likewise.
3321         * nto-procfs.c (procfs_detach): Likewise.
3322         * procfs.c (procfs_detach): Likewise.
3323         * record.c (record_detach): Likewise.
3324         * record.h (struct inferior): Forward-declare.
3325         (record_detach): Add inferior parameter.
3326         * remote-sim.c (gdbsim_detach): Likewise.
3327         * remote.c (remote_detach_1): Likewise.
3328         (remote_detach): Likewise.
3329         (extended_remote_detach): Likewise.
3330         * sol-thread.c (sol_thread_detach): Likewise.
3331         * target-debug.h (target_debug_print_inferior_p): New macro.
3332         * target-delegates.c: Re-generate.
3333         * top.c (kill_or_detach): Pass inferior down to target_detach.
3334         * windows-nat.c (windows_detach): Add inferior parameter.
3335
3336 2018-01-19  Simon Marchi  <simon.marchi@ericsson.com>
3337
3338         * target.h (struct target_ops) <to_detach>: Remove args
3339         parameter.
3340         (target_detach): Likewise.
3341         * target.c (dispose_inferior): Adjust.
3342         (target_detach): Remove args parameter, adjust.
3343         * aix-thread.c (aix_thread_detach): Adjust.
3344         * corefile.c (core_file_command): Adjust.
3345         * corelow.c (core_detach): Adjust.
3346         * darwin-nat.c (darwin_detach): Adjust.
3347         * gnu-nat.c (gnu_detach): Adjust.
3348         * inf-ptrace.c (inf_ptrace_detach): Adjust.
3349         * infcmd.c (detach_command): Adjust
3350         * infrun.c (follow_fork_inferior): Adjust.
3351         (handle_vfork_child_exec_or_exit): Adjust.
3352         * linux-fork.c (linux_fork_detach): Remove args parameter.
3353         * linux-fork.h (linux_fork_detach): Likewise.
3354         * linux-nat.c (linux_nat_detach): Likewise, and adjust.
3355         * linux-thread-db.c (thread_db_detach): Likewise.
3356         * nto-procfs.c (procfs_detach): Likewise.
3357         * procfs.c (procfs_detach): Likewise.
3358         (do_detach): Remove signo parameter.
3359         * record.c (record_detach): Remove args parameter.
3360         * record.h (record_detach): Likewise.
3361         * remote-sim.c (gdbsim_detach): Likewise.
3362         * remote.c (remote_detach_1): Likewise.
3363         (remote_detach): Likewise.
3364         (extended_remote_detach): Likewise.
3365         * sol-thread.c (sol_thread_detach): Likewise.
3366         * target-delegates.c: Re-generate.
3367         * top.c (struct qt_args) <args>: Remove field.
3368         (kill_or_detach): Don't pass args.
3369         (quit_force): Don't set args.
3370         * windows-nat.c (windows_detach): Remove args parameter.
3371
3372 2018-01-19  Yao Qi  <yao.qi@linaro.org>
3373
3374         * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
3375         (arm_linux_init_abi): Install it.
3376
3377 2018-01-19  Yao Qi  <yao.qi@linaro.org>
3378
3379         * osabi.c (gdb_osabi_names): Extend the regexp for
3380         arm-linux-gnueabihf.
3381
3382 2018-01-18  Yao Qi  <yao.qi@linaro.org>
3383
3384         * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
3385         m_abbrevs.
3386         (abbrev_table::add_abbrev): Update.
3387         (abbrev_table::lookup_abbrev): Update.
3388
3389 2018-01-18  Yao Qi  <yao.qi@linaro.org>
3390
3391         * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
3392
3393 2018-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
3394
3395         * compile/compile.c (compile_to_object): Convert "triplet_rx"
3396         to "std::string".
3397
3398 2018-01-17  Tom Tromey  <tom@tromey.com>
3399
3400         * dwarf2read.c (symbolp): Remove typedef.  Don't instantiate VEC.
3401
3402 2018-01-17  Tom Tromey  <tom@tromey.com>
3403
3404         * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
3405         * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
3406         (create_array_type_with_stride): Update.
3407         * dwarf2read.c (set_die_type): Update.
3408
3409 2018-01-17  Tom Tromey  <tom@tromey.com>
3410
3411         * dwarf2read.c (delayed_method_info): Remove typedef.
3412         (dwarf2_cu::method_info): Now a std::vector.
3413         (add_to_method_list): Update.
3414         (free_delayed_list): Remove.
3415         (compute_delayed_physnames): Update.
3416         (process_full_comp_unit, process_full_type_unit): Clear the method
3417         list.  Remove cleanups.
3418         (psymtab_include_file_name): Add name_holder parameter.  Use
3419         unique_xmalloc_ptr.
3420         (dwarf_decode_lines): Update.
3421
3422 2018-01-17  Tom Tromey  <tom@tromey.com>
3423             Simon Marchi  <simon.marchi@ericsson.com>
3424
3425         * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
3426         (dwarf2_per_objfile::free_cached_comp_units)
3427         (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
3428         (init_cutu_and_read_dies_no_follow): Update.
3429         (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
3430         (dwarf2_cu::~dwarf2_cu): New.
3431         (free_heap_comp_unit, free_stack_comp_unit): Remove.
3432         (age_cached_comp_units, free_one_cached_comp_unit): Update.
3433
3434 2018-01-17  Tom Tromey  <tom@tromey.com>
3435             Simon Marchi  <simon.marchi@ericsson.com>
3436
3437         * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
3438         (struct die_reader_specs) <abbrev_table>: New member.
3439         (struct abbrev_table): Add constructor.
3440         <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
3441         <abbrev_obstack>: Now an auto_obstack.
3442         (abbrev_table_up): New typedef.
3443         (init_cu_die_reader): Add abbrev_table parameter.
3444         (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
3445         Add result_dwo_abbrev_table.
3446         (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
3447         (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
3448         Update.
3449         (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
3450         parameter.
3451         (skip_children): Update.
3452         (abbrev_table::alloc_abbrev): Rename from
3453         abbrev_table_alloc_abbrev.
3454         (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
3455         (abbrev_table::lookup_abbrev): Rename from
3456         abbrev_table_lookup_abbrev.
3457         (abbrev_table_read_table): Return abbrev_table_up.
3458         (abbrev_table_free, abbrev_table_free_cleanup)
3459         (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
3460         (load_partial_dies): Update.
3461
3462 2018-01-17  Tom Tromey  <tom@tromey.com>
3463
3464         * dwarf2read.c (dwarf2_compute_name): Update comment.
3465         (read_func_scope, read_variable): Update.
3466         (new_symbol): Remove.
3467         (new_symbol_full): Rename to new_symbol.
3468
3469 2018-01-17  Mike Gulick  <mgulick@mathworks.com>
3470
3471         PR gdb/16577
3472         * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
3473         a warning instead of throwing an error, set section size to 0 and return
3474         NULL.
3475         * gdb_bfd.h (gdb_bfd_map_section): Update description.
3476
3477 2018-01-17  Simon Marchi  <simon.marchi@ericsson.com>
3478
3479         * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
3480         std::string.
3481         (linux_ptrace_attach_fail_reason_string): Likewise.
3482         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
3483         Likewise.
3484         (linux_ptrace_attach_fail_reason_string): Likewise.
3485         * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
3486
3487 2018-01-17  Simon Marchi  <simon.marchi@ericsson.com>
3488
3489         * linux-nat.c (linux_nat_attach): Remove xstrdup.
3490
3491 2018-01-17  Eldar Abusalimov  <eldar.abusalimov@jetbrains.com>
3492
3493         PR gdb/21559
3494         * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
3495         checking for fs_base/gs_base fields in struct user_regs_struct.
3496         * configure: Regenerate.
3497
3498 2018-01-17  Yao Qi  <yao.qi@linaro.org>
3499
3500         * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
3501         function.
3502         (aarch64_linux_init_abi): Install it to gdbarch hook
3503         gcc_target_options.
3504
3505 2018-01-15  Pedro Alves  <palves@redhat.com>
3506
3507         * common/signals-state-save-restore.c
3508         (save_original_signals_state): Fix typos.
3509
3510 2017-01-12  Tom Tromey  <tom@tromey.com>
3511             Sergio Durigan Junior  <sergiodj@redhat.com>
3512
3513         * Makefile.in (install-only): Install gdb-add-index.
3514
3515 2018-01-12  John Baldwin  <jhb@FreeBSD.org>
3516
3517         * fbsd-tdep.c (KVE_PROTECTION): Correct value.
3518
3519 2018-01-12  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3520
3521         * infrun.c (keep_going_pass_signal): Clear step-over info when
3522         insert_breakpoints fails.
3523
3524 2018-01-11  Pedro Alves  <palves@redhat.com>
3525
3526         PR gdb/22583
3527         * infrun.c (resume): Rename to ...
3528         (resume_1): ... this.
3529         (resume): Reimplement as wrapper around resume_1.
3530
3531 2018-01-11  Pedro Alves  <palves@redhat.com>
3532
3533         PR remote/22597
3534         * remote.c (remote_parse_stop_reply): Default to the last-set
3535         general thread instead of to 'magic_null_ptid'.
3536
3537 2018-01-10  Pedro Alves  <palves@redhat.com>
3538
3539         * language.h (language_get_symbol_name_matcher): Rename ...
3540         (get_symbol_name_matcher): ... this.
3541         * language.c (language_get_symbol_name_matcher): Ditto.
3542         * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
3543         callers adjusted.
3544
3545 2018-01-10  Pedro Alves  <palves@redhat.com>
3546
3547         PR gdb/22670
3548         * dwarf2read.c
3549         (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
3550         Adjust to use language_get_symbol_name_matcher instead of
3551         language_defn::la_get_symbol_name_matcher.
3552         * language.c (language_get_symbol_name_matcher): If in Ada mode
3553         and the lookup name is a verbatim match, return Ada's matcher.
3554         * language.h (language_get_symbol_name_matcher): Adjust comment.
3555         (ada_lookup_name_info::verbatim_p):: New method.
3556
3557 2018-01-10  Pedro Alves  <palves@redhat.com>
3558
3559         PR gdb/22670
3560         * ada-lang.c (ada_collect_symbol_completion_matches): If the
3561         minsym's language is language_auto or language_cplus, pass down
3562         language_ada instead.
3563         * symtab.c (compare_symbol_name): Don't frob symbol language here.
3564
3565 2018-01-10  Pedro Alves  <palves@redhat.com>
3566
3567         PR gdb/22670
3568         * minsyms.c (linkage_name_str): New function.
3569         (iterate_over_minimal_symbols): Use it.
3570
3571 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
3572
3573         * NEWS: Document that 'info proc' now works on FreeBSD.
3574
3575 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
3576
3577         * configure.ac: Check for kinfo_getfile in libutil.
3578         * configure: Regenerate.
3579         * config.in: Regenerate.
3580         * fbsd-nat.c: Include "fbsd-tdep.h".
3581         (fbsd_fetch_cmdline): New.
3582         (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
3583         rather than calling error.
3584         (fbsd_info_proc): New.
3585         (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
3586         (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
3587         (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
3588
3589 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
3590
3591         * fbsd-nat.c (struct free_deleter): Remove.
3592         (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
3593
3594 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
3595
3596         * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
3597         NULL for an empty pathname.
3598
3599 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
3600
3601         * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
3602         (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
3603         (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
3604         (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
3605         (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
3606         (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
3607         (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
3608         (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
3609         (kinfo_proc_layout_32, kinfo_proc_layout_i386)
3610         (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
3611         (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
3612         (fbsd_core_fetch_timeval, fbsd_print_sigset)
3613         (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
3614         (fbsd_init_abi):  Install gdbarch "core_info_proc" method.
3615         * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
3616
3617 2018-01-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3618
3619         * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
3620         (gnu_xfer_auxv): New function.
3621         (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
3622         TARGET_OBJECT_AUXV.
3623
3624 2018-01-08  Yao Qi  <yao.qi@linaro.org>
3625             Simon Marchi  <simon.marchi@ericsson.com>
3626
3627         * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
3628         common/selftest.c.
3629         (COMMON_OBS): Remove selftest.o.
3630         * configure.ac: Append selftest-arch.c and common/selftest.c to
3631         CONFIG_SRCS.  Append selftest-arch.o and selftest.o to COMMON_OBS.
3632         * configure: Re-generated.
3633         * maint.c (maintenance_selftest): Wrap selftests::run_tests with
3634         GDB_SELF_TEST.
3635         (maintenance_info_selftests): Likewise.
3636
3637 2018-01-08  Xavier Roirand  <roirand@adacore.com>
3638
3639         * ada-valprint.c (val_print_packed_array_elements): Use
3640         proper number of elements when printing an array indexed
3641         by an enumeration type.
3642
3643 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
3644
3645         * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
3646         (dw2_get_file_names_reader): Adjust.
3647         (lookup_dwo_signatured_type): Adjust.
3648         (lookup_dwp_signatured_type): Adjust.
3649         (lookup_signatured_type): Adjust.
3650         (create_type_unit_group): Adjust.
3651         (get_type_unit_group): Adjust.
3652         (process_psymtab_comp_unit_reader): Adjust.
3653         (build_type_psymtabs_reader): Adjust.
3654         (scan_partial_symbols): Adjust.
3655         (add_partial_symbol): Adjust.
3656         (add_partial_subprogram): Adjust.
3657         (peek_die_abbrev): Adjust.
3658         (fixup_go_packaging): Adjust.
3659         (process_imported_unit_die): Adjust.
3660         (dwarf2_compute_name): Adjust.
3661         (dwarf2_physname): Adjust.
3662         (read_import_statement): Adjust.
3663         (handle_DW_AT_stmt_list): Adjust.
3664         (read_file_scope): Adjust.
3665         (read_func_scope): Adjust.
3666         (read_lexical_block_scope): Adjust.
3667         (read_call_site_scope): Adjust.
3668         (read_variable): Adjust.
3669         (dwarf2_rnglists_process): Adjust.
3670         (dwarf2_ranges_process): Adjust.
3671         (dwarf2_ranges_read): Adjust.
3672         (dwarf2_get_pc_bounds): Adjust.
3673         (dwarf2_record_block_ranges): Adjust.
3674         (dwarf2_add_field): Adjust.
3675         (dwarf2_add_member_fn): Adjust.
3676         (read_structure_type): Adjust.
3677         (process_structure_scope): Adjust.
3678         (read_enumeration_type): Adjust.
3679         (read_array_type): Adjust.
3680         (mark_common_block_symbol_computed): Adjust.
3681         (read_common_block): Adjust.
3682         (read_namespace_type): Adjust.
3683         (read_namespace): Adjust.
3684         (read_module_type): Adjust.
3685         (read_tag_pointer_type): Adjust.
3686         (read_tag_ptr_to_member_type): Adjust.
3687         (read_tag_string_type): Adjust.
3688         (read_subroutine_type): Adjust.
3689         (read_typedef): Adjust.
3690         (read_base_type): Adjust.
3691         (attr_to_dynamic_prop): Adjust.
3692         (read_subrange_type): Adjust.
3693         (read_unspecified_type): Adjust.
3694         (dwarf2_read_abbrevs): Adjust.
3695         (load_partial_dies): Adjust.
3696         (read_partial_die): Adjust.
3697         (find_partial_die): Adjust.
3698         (guess_partial_die_structure_name): Adjust.
3699         (fixup_partial_die): Adjust.
3700         (read_attribute_value): Adjust.
3701         (read_addr_index): Adjust.
3702         (read_addr_index_from_leb128): Adjust.
3703         (read_str_index): Adjust.
3704         (dwarf2_string_attr): Adjust.
3705         (get_debug_line_section): Adjust.
3706         (dwarf_decode_line_header): Adjust.
3707         (lnp_state_machine::check_line_address): Adjust.
3708         (dwarf_decode_lines_1): Adjust.
3709         (dwarf_decode_lines): Adjust.
3710         (dwarf2_start_symtab): Adjust.
3711         (var_decode_location): Adjust.
3712         (new_symbol_full): Adjust.
3713         (dwarf2_const_value_data): Adjust.
3714         (dwarf2_const_value_attr): Adjust.
3715         (dwarf2_const_value): Adjust.
3716         (die_type): Adjust.
3717         (die_containing_type): Adjust.
3718         (build_error_marker_type): Adjust.
3719         (lookup_die_type): Adjust.
3720         (guess_full_die_structure_name): Adjust.
3721         (anonymous_struct_prefix): Adjust.
3722         (determine_prefix): Adjust.
3723         (dwarf2_name): Adjust.
3724         (follow_die_ref_or_sig): Adjust.
3725         (follow_die_offset): Adjust.
3726         (follow_die_ref): Adjust.
3727         (follow_die_sig_1): Adjust.
3728         (follow_die_sig): Adjust.
3729         (get_signatured_type): Adjust.
3730         (get_DW_AT_signature_type): Adjust.
3731         (decode_locdesc): Adjust.
3732         (dwarf_decode_macros): Adjust.
3733         (cu_debug_loc_section): Adjust.
3734         (fill_in_loclist_baton): Adjust.
3735         (dwarf2_symbol_mark_computed): Adjust.
3736         (init_one_comp_unit): Don't assign
3737         dwarf2_cu::dwarf2_per_objfile.
3738         (set_die_type): Adjust.
3739
3740 2018-01-07  Simon Marchi  <simon.marchi@ericsson.com>
3741
3742         * dwarf2read.c (struct mapped_debug_names): Add constructor.
3743         <dwarf2_per_objfile>: New field.
3744         (dwarf2_per_objfile): Remove global.
3745         (get_dwarf2_per_objfile): New function.
3746         (set_dwarf2_per_objfile): New function.
3747         (dwarf2_build_psymtabs_hard): Change objfile parameter to
3748         dwarf2_per_objfile.
3749         (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
3750         (read_abbrev_offset): Likewise.
3751         (read_indirect_string): Likewise.
3752         (read_indirect_line_string): Likewise.
3753         (read_indirect_string_at_offset): Likewise.
3754         (read_indirect_string_from_dwz): Likewise.
3755         (dwarf2_find_containing_comp_unit): Change objfile parameter to
3756         dwarf2_per_objfile.
3757         (age_cached_comp_units): Add dwarf2_per_objfile parameter.
3758         (create_all_comp_units): Change objfile parameter to
3759         dwarf2_per_objfile.
3760         (create_all_type_units): Likewise.
3761         (process_queue): Add dwarf2_per_objfile parameter.
3762         (read_and_check_comp_unit_head): Likewise.
3763         (lookup_dwo_unit_in_dwp): Likewise.
3764         (get_dwp_file): Likewise.
3765         (process_cu_includes): Likewise.
3766         (struct free_dwo_file_cleanup_data): New struct.
3767         (dwarf2_has_info): Use get_dwarf2_per_objfile and
3768         set_dwarf2_per_objfile.
3769         (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
3770         (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
3771         context, adjust calls.
3772         (dw2_instantiate_symtab): Likewise.
3773         (dw2_get_cutu): Add dwarf2_per_objfile parameter.
3774         (dw2_get_cu): Likewise.
3775         (create_cu_from_index_list): Change objfile parameter to
3776         dwarf2_per_objfile.
3777         (create_cus_from_index_list): Get dwarf2_per_objfile from
3778         context, adjust calls.
3779         (create_cus_from_index): Likewise.
3780         (create_signatured_type_table_from_index): Change objfile
3781         parameter to dwarf2_per_objfile.
3782         (create_signatured_type_table_from_debug_names): Change objfile
3783         parameter to dwarf2_per_objfile.
3784         (create_addrmap_from_index): Likewise.
3785         (create_addrmap_from_aranges): Likewise.
3786         (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
3787         (dw2_setup): Remove.
3788         (dw2_get_file_names_reader): Get dwarf2_per_objfile from
3789         context.
3790         (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
3791         get_dwarf2_per_objfile.
3792         (dw2_forget_cached_source_info): Likewise.
3793         (dw2_map_symtabs_matching_filename): Likewise.
3794         (struct dw2_symtab_iterator) <index>: Remove.
3795         <dwarf2_per_objfile>: New field.
3796         (dw2_symtab_iter_init): Replace index parameter with
3797         dwarf2_per_objfile.
3798         (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
3799         (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
3800         (dw2_print_stats): Likewise.
3801         (dw2_dump): Likewise.
3802         (dw2_expand_symtabs_for_function): Likewise.
3803         (dw2_expand_all_symtabs): Likewise.
3804         (dw2_expand_symtabs_with_fullname): Likewise.
3805         (dw2_expand_marked_cus): Replace index and objfile parameters
3806         with dwarf2_per_objfile.
3807         (dw_expand_symtabs_matching_file_matcher): Add
3808         dwarf2_per_objfile parameter and adjust calls.
3809         (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
3810         adjust calls.
3811         (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
3812         (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
3813         adjust calls.
3814         (create_cus_from_debug_names_list): Replace objfile parameter
3815         with dwarf2_per_objfile and adjust calls.
3816         (create_cus_from_debug_names): Likewise.
3817         (dwarf2_read_debug_names): Likewise.
3818         (mapped_debug_names::namei_to_name): Adjust call.
3819         (dw2_debug_names_iterator::next): Likewise.
3820         (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3821         (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
3822         (dw2_debug_names_dump): Likewise.
3823         (dw2_debug_names_expand_symtabs_for_function): Likewise.
3824         (dw2_debug_names_expand_symtabs_matching): Likewise.
3825         (dwarf2_initialize_objfile): Likewise.
3826         (dwarf2_build_psymtabs): Likewise.
3827         (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
3828         this_cu.
3829         (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
3830         (read_and_check_comp_unit_head): Likewise.
3831         (read_abbrev_offset): Likewise.
3832         (create_debug_type_hash_table): Likewise.
3833         (create_debug_types_hash_table): Likewise.
3834         (create_all_type_units): Replace objfile parameter with
3835         dwarf2_per_objfile.
3836         (add_type_unit): Add dwarf2_per_objfile parameter.
3837         (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
3838         with dwarf2_per_objfile.
3839         (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
3840         (lookup_dwp_signatured_type): Likewise.
3841         (lookup_signatured_type): Likewise.
3842         (read_cutu_die_from_dwo): Likewise.
3843         (init_tu_and_read_dwo_dies): Likewise.
3844         (init_cutu_and_read_dies): Likewise.
3845         (init_cutu_and_read_dies_no_follow): Likewise.
3846         (allocate_type_unit_groups_table): Add objfile parameter.
3847         (create_type_unit_group): Use dwarf2_per_objfile from cu.
3848         (get_type_unit_group): Likewise.
3849         (process_psymtab_comp_unit): Update call.
3850         (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
3851         (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
3852         (print_tu_stats): Likewise.
3853         (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
3854         in void* parameter.
3855         (build_type_psymtabs): Change objfile parameter to
3856         dwarf2_per_objfile.
3857         (process_skeletonless_type_unit): Use dwarf2_per_objfile
3858         passed in void* parameter.
3859         (process_skeletonless_type_units): Change objfile parameter to
3860         dwarf2_per_objfile.
3861         (set_partial_user): Likewise.
3862         (dwarf2_build_psymtabs_hard): Likewise.
3863         (read_comp_units_from_section): Likewise.
3864         (create_all_comp_units): Likewise.
3865         (scan_partial_symbols): Update calls.
3866         (add_partial_symbol): Likewise.
3867         (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
3868         (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
3869         (process_queue): Add dwarf2_per_objfile parameter.
3870         (get_compunit_symtab): Use dwarf2_per_objfile from cu.
3871         (compute_compunit_symtab_includes): Likewise.
3872         (process_cu_includes): Add dwarf2_per_objfile parameter.
3873         (process_full_comp_unit): Use dwarf2_per_objfile from cu.
3874         (process_full_type_unit): Likewise.
3875         (process_imported_unit_die): Update call.
3876         (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
3877         (read_file_scope): Likewise.
3878         (allocate_dwo_file_hash_table): Add objfile parameter.
3879         (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
3880         (create_cus_hash_table): Likewise.
3881         (create_dwp_hash_table): Likewise.
3882         (create_dwo_unit_in_dwp_v1): Likewise.
3883         (create_dwp_v2_section): Likewise.
3884         (create_dwo_unit_in_dwp_v2): Likewise.
3885         (lookup_dwo_unit_in_dwp): Likewise.
3886         (try_open_dwop_file): Likewise.
3887         (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
3888         (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
3889         cleanup to include a reference to dwarf2_per_objfile.
3890         (open_dwp_file): Add dwarf2_per_objfile parameter.
3891         (open_and_init_dwp_file): Likewise.
3892         (get_dwp_file): Likewise.
3893         (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
3894         (queue_and_load_all_dwo_tus): Update call.
3895         (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
3896         data.
3897         (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
3898         (dwarf2_ranges_process): Likewise.
3899         (dwarf2_get_pc_bounds): Likewise.
3900         (mark_common_block_symbol_computed): Likewise.
3901         (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
3902         (dwarf2_read_abbrevs): Update call.
3903         (read_partial_die): Use dwarf2_per_objfile from cu.
3904         (find_partial_die): Likewise.
3905         (fixup_partial_die): Likewise.
3906         (read_attribute_value): Likewise.
3907         (read_indirect_string_at_offset_from): Add objfile parameter.
3908         (read_indirect_string_at_offset): Add dwarf2_per_objfile
3909         parameter.
3910         (read_indirect_string_from_dwz): Add objfile parameter.
3911         (read_indirect_string): Add objfile parameter.
3912         (read_addr_index_1): Add dwarf2_per_objfile parameter.
3913         (read_addr_index): Use dwarf2_per_objfile from cu.
3914         (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
3915         call dw2_setup.
3916         (read_str_index): Use dwarf2_per_objfile from cu.
3917         (get_debug_line_section): Likewise.
3918         (read_formatted_entries): Add dwarf2_per_objfile parameter.
3919         (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
3920         (new_symbol_full): Use dwarf2_per_objfile from cu.
3921         (build_error_marker_type): Likewise.
3922         (lookup_die_type): Likewise.
3923         (determine_prefix): Likewise.
3924         (follow_die_offset): Likewise.
3925         (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
3926         (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
3927         (dwarf2_fetch_die_type_sect_off): Likewise.
3928         (dwarf2_get_die_type): Likewise.
3929         (follow_die_sig_1): Use dwarf2_per_objfile from cu.
3930         (get_signatured_type): Likewise.
3931         (get_DW_AT_signature_type): Likewise.
3932         (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
3933         (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
3934         (cu_debug_loc_section): Likewise.
3935         (fill_in_loclist_baton): Likewise.
3936         (dwarf2_symbol_mark_computed): Likewise.
3937         (dwarf2_find_containing_comp_unit): Change objfile parameter to
3938         dwarf2_per_objfile.
3939         (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
3940         parameter.
3941         (age_cached_comp_units): Add dwarf2_per_objfile parameter.
3942         (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
3943         (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
3944         (set_die_type): Use dwarf2_free_objfile from cu.
3945         (get_die_type_at_offset): Likewise.
3946         (dwarf2_per_objfile_free): Don't assign global variable.
3947         (debug_names) <constructor>: Add dwarf2_per_objfile
3948         parameter, update m_debugstrlookup construction.
3949         (debug_names::debug_str_lookup): Add dwarf2_per_objfile
3950         parameter.
3951         <m_dwarf2_per_objfile>: New field.
3952         <lookup>: Use m_dwarf2_per_objfile.
3953         (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
3954         (psyms_seen_size): Likewise.
3955         (write_gdbindex): Replace objfile parameter with
3956         dwarf2_per_objfile.
3957         (write_debug_names): Likewise.
3958         (write_psymtabs_to_index): Likewise.
3959         (save_gdb_index_command): Use get_dwarf2_per_objfile, update
3960         calls.
3961
3962 2018-01-07  Simon Marchi  <simon.marchi@ericsson.com>
3963
3964         * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
3965         <dwarf2_per_objfile>: New field.
3966         (struct dwarf2_per_cu_data) <objfile>: Remove.
3967         <dwarf2_per_objfile>: New field.
3968         (create_cu_from_index_list): Assign dwarf2_per_objfile instead
3969         of objfile.
3970         (create_signatured_type_table_from_index): Likewise.
3971         (create_debug_type_hash_table): Likewise.
3972         (fill_in_sig_entry_from_dwo_entry): Likewise.
3973         (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
3974         (create_type_unit_group): Assign dwarf2_per_objfile instead of
3975         objfile.
3976         (create_partial_symtab): Access objfile through
3977         dwarf2_per_objfile.
3978         (process_psymtab_comp_unit_reader): Likewise.
3979         (read_comp_units_from_section): Likewise.
3980         (scan_partial_symbols): Likewise.
3981         (add_partial_symbol): Likewise.
3982         (add_partial_subprogram): Likewise.
3983         (peek_die_abbrev): Likewise.
3984         (fixup_go_packaging): Likewise.
3985         (process_full_comp_unit): Likewise.
3986         (process_full_type_unit): Likewise.
3987         (process_imported_unit_die): Likewise.
3988         (dwarf2_compute_name): Likewise.
3989         (dwarf2_physname): Likewise.
3990         (read_import_statement): Likewise.
3991         (create_cus_hash_table): Assign dwarf2_physname instead of
3992         objfile.
3993         (read_func_scope): Access objfile through dwarf2_per_objfile.
3994         (read_lexical_block_scope): Likewise.
3995         (read_call_site_scope): Likewise.
3996         (read_variable): Likewise.
3997         (dwarf2_rnglists_process): Likewise.
3998         (dwarf2_ranges_process): Likewise.
3999         (dwarf2_ranges_read): Likewise.
4000         (dwarf2_record_block_ranges): Likewise.
4001         (dwarf2_add_field): Likewise.
4002         (dwarf2_add_member_fn): Likewise.
4003         (read_structure_type): Likewise.
4004         (process_structure_scope): Likewise.
4005         (read_enumeration_type): Likewise.
4006         (read_array_type): Likewise.
4007         (read_common_block): Likewise.
4008         (read_namespace_type): Likewise.
4009         (read_namespace): Likewise.
4010         (read_module_type): Likewise.
4011         (read_tag_pointer_type): Likewise.
4012         (read_tag_ptr_to_member_type): Likewise.
4013         (read_tag_string_type): Likewise.
4014         (read_subroutine_type): Likewise.
4015         (read_typedef): Likewise.
4016         (read_base_type): Likewise.
4017         (attr_to_dynamic_prop): Likewise.
4018         (read_subrange_type): Likewise.
4019         (read_unspecified_type): Likewise.
4020         (load_partial_dies): Likewise.
4021         (read_partial_die): Likewise.
4022         (find_partial_die): Likewise.
4023         (guess_partial_die_structure_name): Likewise.
4024         (fixup_partial_die): Likewise.
4025         (read_attribute_value): Likewise.
4026         (read_addr_index_from_leb128): Likewise.
4027         (dwarf2_read_addr_index): Likewise.
4028         (dwarf2_string_attr): Likewise.
4029         (lnp_state_machine::check_line_address): Likewise.
4030         (dwarf_decode_lines_1): Likewise.
4031         (dwarf_decode_lines): Likewise.
4032         (dwarf2_start_symtab): Likewise.
4033         (var_decode_location): Likewise.
4034         (new_symbol_full): Likewise.
4035         (dwarf2_const_value_data): Likewise.
4036         (dwarf2_const_value_attr): Likewise.
4037         (dwarf2_const_value): Likewise.
4038         (die_type): Likewise.
4039         (die_containing_type): Likewise.
4040         (lookup_die_type): Likewise.
4041         (guess_full_die_structure_name): Likewise.
4042         (anonymous_struct_prefix): Likewise.
4043         (dwarf2_name): Likewise.
4044         (follow_die_ref_or_sig): Likewise.
4045         (follow_die_offset): Likewise.
4046         (follow_die_ref): Likewise.
4047         (dwarf2_fetch_die_loc_sect_off): Likewise.
4048         (dwarf2_fetch_constant_bytes): Likewise.
4049         (dwarf2_fetch_die_type_sect_off): Likewise.
4050         (dwarf2_get_die_type): Likewise.
4051         (follow_die_sig): Likewise.
4052         (decode_locdesc): Likewise.
4053         (dwarf2_per_cu_objfile): Likewise.
4054         (dwarf2_per_cu_text_offset): Likewise.
4055         (init_one_comp_unit): Assign dwarf2_per_objfile instead of
4056         objfile.
4057         (set_die_type): Access objfile through
4058         dwarf2_per_objfile.
4059
4060 2018-01-07  Simon Marchi  <simon.marchi@ericsson.com>
4061
4062         * valprint.c (converted_character_d): Remove typedef.
4063         (DEF_VEC_O (converted_character_d)): Remove.
4064         (count_next_character): Use std::vector.
4065         (print_converted_chars_to_obstack): Likewise.
4066         (generic_printstr): Likewise.
4067
4068 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
4069
4070         * xml-support.h (struct gdb_xml_value): Add constructor.
4071         <value>: Change type to unique_xmalloc_ptr.
4072         (gdb_xml_value_s): Remove typedef.
4073         (DEF_VEC_O (gdb_xml_value_s)): Remove.
4074         (gdb_xml_element_start_handler): Change parameter type to
4075         std::vector.
4076         (xml_find_attribute): Likewise.
4077         * xml-support.c (xml_find_attribute): Change parameter type to
4078         std::vector and adjust.
4079         (gdb_xml_values_cleanup): Remove.
4080         (gdb_xml_parser::start_element): Adjust to std::vector.
4081         (xinclude_start_include): Change paraeter type to std::vector
4082         and adjust.
4083         * btrace.c (check_xml_btrace_version): Likewise.
4084         (parse_xml_btrace_block): Likewise.
4085         (parse_xml_btrace_pt_config_cpu): Likewise.
4086         (parse_xml_btrace_pt): Likewise.
4087         (parse_xml_btrace_conf_bts): Likewise.
4088         (parse_xml_btrace_conf_pt): Likewise.
4089         * memory-map.c (memory_map_start_memory): Likewise.
4090         (memory_map_start_property): Likewise.
4091         * osdata.c (osdata_start_osdata): Likewise.
4092         (osdata_start_item): Likewise.
4093         (osdata_start_column): Likewise.
4094         * remote.c (start_thread): Likewise.
4095         * solib-aix.c (library_list_start_library): Likewise.
4096         (library_list_start_list): Likewise.
4097         * solib-svr4.c (library_list_start_library): Likewise.
4098         (svr4_library_list_start_list): Likewise.
4099         * solib-target.c (library_list_start_segment): Likewise.
4100         (library_list_start_section): Likewise.
4101         (library_list_start_library): Likewise.
4102         (library_list_start_list): Likewise.
4103         * tracepoint.c (traceframe_info_start_memory): Likewise.
4104         (traceframe_info_start_tvar): Likewise.
4105         * xml-syscall.c (syscall_start_syscall): Likewise.
4106         * xml-tdesc.c (tdesc_start_target): Likewise.
4107         (tdesc_start_feature): Likewise.
4108         (tdesc_start_reg): Likewise.
4109         (tdesc_start_union): Likewise.
4110         (tdesc_start_struct): Likewise.
4111         (tdesc_start_flags): Likewise.
4112         (tdesc_start_enum): Likewise.
4113         (tdesc_start_field): Likewise.
4114         (tdesc_start_enum_value): Likewise.
4115         (tdesc_start_vector): Likewise.
4116
4117 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
4118
4119         * extension.h (struct xmethod_worker) <clone>: Remove.
4120         * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
4121         Remove.
4122         (python_xmethod_worker::clone): Remove.
4123         * valops.c (find_overload_match): Use std::move instead of
4124         clone.
4125
4126 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
4127
4128         * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
4129         (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
4130         <free_xmethod_worker_data>: Remove.
4131         <get_matching_xmethod_workers>: Chance VEC to std::vector.
4132         <get_xmethod_arg_types>: Remove.
4133         <get_xmethod_result_type>: Remove.
4134         <invoke_xmethod>: Remove.
4135         * extension.c (new_xmethod_worker): Remove.
4136         (clone_xmethod_worker): Remove.
4137         (get_matching_xmethod_workers): Return void, pass std::vector by
4138         pointer.
4139         (get_xmethod_arg_types): Rename to...
4140         (xmethod_worker::get_arg_types): ... this, and adjust.
4141         (get_xmethod_result_type): Rename to...
4142         (xmethod_worker::get_result_type): ... this, and adjust.
4143         (invoke_xmethod): Remove.
4144         (free_xmethod_worker): Remove.
4145         (free_xmethod_worker_vec): Remove.
4146         * extension.h (enum ext_lang_rc): Move here from
4147         extension-priv.h.
4148         (struct xmethod_worker): Add constructor and destructor.
4149         <data>: Remove.
4150         <value>: Remove.
4151         <invoke, clone, do_get_result_type, do_get_arg_types>: New
4152         virtual pure methods.
4153         <get_arg_types, get_result_type>: New methods.
4154         (xmethod_worker_ptr): Remove typedef.
4155         (DEF_VEC_P (xmethod_worker_ptr)): Remove.
4156         (xmethod_worker_vec): Remove typedef.
4157         (xmethod_worker_up): New typedef.
4158         (invoke_xmethod): Remove.
4159         (clone_xmethod_worker): Remove.
4160         (free_xmethod_worker): Remove.
4161         (free_xmethod_worker_vec): Remove.
4162         (get_xmethod_arg_types): Remove.
4163         (get_xmethod_result_type): Remove.
4164         * valops.c (find_method_list): Use std::vector, don't use
4165         intermediate vector.
4166         (value_find_oload_method_list): Use std::vector.
4167         (find_overload_match): Use std::vector.
4168         (find_oload_champ): Use std::vector.
4169         * value.c (value_free): Use operator delete.
4170         (value_of_xmethod): Rename to...
4171         (value_from_xmethod): ... this.  Don't assign
4172         xmethod_worker::value, take rvalue-reference.
4173         (result_type_of_xmethod): Adjust.
4174         (call_xmethod): Adjust.
4175         * value.h: Include extension.h.
4176         (struct xmethod_worker): Don't forward-declare.
4177         (value_of_xmethod): Rename to...
4178         (value_from_xmethod): ... this, take rvalue-reference.
4179         * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
4180         (struct python_xmethod_worker): ... this, add constructor and
4181         destructor.
4182         <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
4183         (gdbpy_free_xmethod_worker_data): Rename to...
4184         (python_xmethod_worker::~python_xmethod_worker): ... this and
4185         adjust.
4186         (gdbpy_clone_xmethod_worker_data): Rename to...
4187         (python_xmethod_worker::clone): ... this and adjust.
4188         (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
4189         temporary vector.
4190         (gdbpy_get_xmethod_arg_types): Rename to...
4191         (python_xmethod_worker::do_get_arg_types): ... this and adjust.
4192         (gdbpy_get_xmethod_result_type): Rename to...
4193         (python_xmethod_worker::do_get_result_type): ... this and
4194         adjust.
4195         (gdbpy_invoke_xmethod): Rename to...
4196         (python_xmethod_worker::invoke): ... this and adjust.
4197         (new_python_xmethod_worker): Rename to...
4198         (python_xmethod_worker::python_xmethod_worker): ... this and
4199         adjust.
4200         * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
4201         Remove.
4202         (gdbpy_free_xmethod_worker_data): Remove.
4203         (gdbpy_get_matching_xmethod_workers): Use std::vector.
4204         (gdbpy_get_xmethod_arg_types): Remove.
4205         (gdbpy_get_xmethod_result_type): Remove.
4206         (gdbpy_invoke_xmethod): Remove.
4207         * python/python.c (python_extension_ops): Remove obsolete
4208         callbacks.
4209
4210 2018-01-05  Pedro Alves  <palves@redhat.com>
4211
4212         PR gdb/18653
4213         * common/signals-state-save-restore.c
4214         (save_original_signals_state): New parameter 'quiet'.  Warn if we
4215         find a custom handler preinstalled, instead of internal erroring.
4216         But only warn if !quiet.
4217         * common/signals-state-save-restore.h
4218         (save_original_signals_state): New parameter 'quiet'.
4219         * main.c (captured_main_1): Move save_original_signals_state call
4220         after option handling, and pass QUIET.
4221
4222 2018-01-05  Pedro Alves  <palves@redhat.com>
4223
4224         * spu-tdep.c (spu_catch_start): Pass
4225         symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
4226
4227 2018-01-05  Pedro Alves  <palves@redhat.com>
4228
4229         PR gdb/22670
4230         * ada-lang.c (literal_symbol_name_matcher): New function.
4231         (ada_get_symbol_name_matcher): Use it for
4232         symbol_name_match_type::SEARCH_NAME.
4233         * block.c (block_lookup_symbol): New parameter 'match_type'.  Pass
4234         it down instead of assuming symbol_name_match_type::FULL.
4235         * block.h (block_lookup_symbol): New parameter 'match_type'.
4236         * c-valprint.c (print_unpacked_pointer): Use
4237         lookup_symbol_search_name instead of lookup_symbol.
4238         * compile/compile-object-load.c (get_out_value_type): Pass down
4239         symbol_name_match_type::SEARCH_NAME.
4240         * cp-namespace.c (cp_basic_lookup_symbol): Pass down
4241         symbol_name_match_type::FULL.
4242         * cp-support.c (cp_get_symbol_name_matcher): Handle
4243         symbol_name_match_type::SEARCH_NAME.
4244         * infrun.c (insert_exception_resume_breakpoint): Use
4245         lookup_symbol_search_name.
4246         * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
4247         * psymtab.c (maintenance_check_psymtabs): Use
4248         symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
4249         * stack.c (print_frame_args): Use lookup_symbol_search_name and
4250         SYMBOL_SEARCH_NAME.
4251         * symtab.c (lookup_local_symbol): Don't demangle the lookup name
4252         if symbol_name_match_type::SEARCH_NAME.
4253         (lookup_symbol_in_language): Pass down
4254         symbol_name_match_type::FULL.
4255         (lookup_symbol_search_name): New.
4256         (lookup_language_this): Pass down
4257         symbol_name_match_type::SEARCH_NAME.
4258         (lookup_symbol_aux, lookup_local_symbol): New parameter
4259         'match_type'.  Pass it down.
4260         * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
4261         (lookup_symbol_search_name): New declaration.
4262         (lookup_symbol_in_block): New 'match_type' parameter.
4263
4264 2018-01-05  Pedro Alves  <palves@redhat.com>
4265
4266         PR gdb/22670
4267         * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
4268         ada_lookup_symbol.
4269         (ada_lookup_symbol): Reimplement in terms of
4270         ada_lookup_symbol_list, bits factored out from
4271         ada_lookup_encoded_symbol.
4272
4273 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
4274
4275         * ada-exp.y (write_object_renaming): When subscripting an array
4276         using a symbol as the index, pass the block in call to
4277         ada_lookup_encoded_symbol when looking that symbol up.
4278
4279 2018-01-05  Jerome Guitton  <guitton@adacore.com>
4280
4281         * ada-lang.c (ada_array_length): Use ada_index_type instead of
4282         TYPE_INDEX_TYPE.
4283
4284 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
4285
4286         * ada-lang.c (ada_to_fixed_value_create): Add handling of
4287         the case where VALUE_LVAL (val0) is not lval_memory.
4288
4289 2018-01-05  Xavier Roirand  <roirand@adacore.com>
4290
4291         * ada-valprint.c (print_optional_low_bound): Handle
4292         character-indexed array printing like boolean-indexed array
4293         printing.
4294
4295 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
4296
4297         * NEWS: Create a new section for the next release branch.
4298         Rename the section of the current branch, now that it has
4299         been cut.
4300
4301 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
4302
4303         GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
4304         * version.in: Bump version to 8.1.50.DATE-git.
4305
4306 2018-01-03  Xavier Roirand  <roirand@adacore.com>
4307
4308         * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
4309         Add field.
4310         * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
4311         Add field.
4312         (default_exception_support_info) <catch_handlers_sym>: Add field.
4313         (exception_support_info_fallback) <catch_handlers_sym>: Add field.
4314         (ada_exception_name_addr_1): Add "catch handlers" handling.
4315         (ada_exception_catchpoint_cond_string) <ex>: New parameter.
4316         Update all callers.
4317         (create_excep_cond_exprs) <ex>: Add parameter.
4318         (re_set_exception): Update create_excep_cond_exprs call.
4319         (print_it_exception, print_one_exception, print_mention_exception)
4320         (print_recreate_exception): Add "catch handler" handling.
4321         (allocate_location_catch_handlers, re_set_catch_handlers)
4322         (check_status_catch_handlers, print_it_catch_handlers)
4323         (print_one_catch_handlers, print_mention_catch_handlers)
4324         (print_recreate_catch_handlers): New function.
4325         (catch_handlers_breakpoint_ops): New variable.
4326         (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
4327         Add parameter.  Add "catch handler" handling.
4328         (ada_exception_sym_name, ada_exception_breakpoint_ops):
4329         Add "catch handler" handling.
4330         (ada_exception_catchpoint_cond_string): Add "catch handler"
4331         handling.
4332         (create_ada_exception_catchpoint): Update create_excep_cond_exprs
4333         call.
4334         (catch_ada_handlers_command): New function.
4335         (initialize_ada_catchpoint_ops): Initialize "catch handlers"
4336         operations structure.
4337         (_initialize_ada_language): Add "catch handlers" command entry.
4338         * NEWS: Document "catch handlers" feature.
4339
4340 2018-01-02  Joel Brobecker  <brobecker@adacore.com>
4341
4342         * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
4343         account when creating the array type of the slice.
4344         (ada_value_slice): Likewise.
4345
4346 2018-01-02  Joel Brobecker  <brobecker@adacore.com>
4347
4348         * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
4349         New enum value.
4350         (create_array_type_with_stride): Add byte_stride_prop parameter.
4351         * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
4352         New parameter.  Update all callers in this file.
4353         (array_type_has_dynamic_stride): New function.
4354         (is_dynamic_type_internal, resolve_dynamic_array): Add handling
4355         of arrays with dynamic byte strides.
4356         * dwarf2read.c (read_array_type): Add support for dynamic
4357         DW_AT_byte_stride attributes.
4358
4359 2018-01-02  Joel Brobecker  <brobecker@adacore.com>
4360
4361         * dwarf2read.c (read_unspecified_type): Treat
4362         DW_TAG_enumeration_type DIEs from Ada units as stubs.
4363
4364 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
4365
4366         Update copyright year range in all GDB files.
4367
4368 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
4369
4370         * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
4371         and gdb/testsuite/gdb.base/step-line.c.
4372
4373 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
4374
4375         * copyright.py (main): Dump the contents of
4376         MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
4377         even if BY_HAND is empty.
4378
4379 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
4380
4381         * top.c (print_gdb_version): Update Copyright year in version
4382         message.
4383
4384 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
4385
4386         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
4387
4388 For older changes see ChangeLog-2017.
4389 \f
4390 Local Variables:
4391 mode: change-log
4392 left-margin: 8
4393 fill-column: 74
4394 version-control: never
4395 coding: utf-8
4396 End: