Remove args from target detach
[external/binutils.git] / gdb / ChangeLog
1 2018-01-19  Simon Marchi  <simon.marchi@ericsson.com>
2
3         * target.h (struct target_ops) <to_detach>: Remove args
4         parameter.
5         (target_detach): Likewise.
6         * target.c (dispose_inferior): Adjust.
7         (target_detach): Remove args parameter, adjust.
8         * aix-thread.c (aix_thread_detach): Adjust.
9         * corefile.c (core_file_command): Adjust.
10         * corelow.c (core_detach): Adjust.
11         * darwin-nat.c (darwin_detach): Adjust.
12         * gnu-nat.c (gnu_detach): Adjust.
13         * inf-ptrace.c (inf_ptrace_detach): Adjust.
14         * infcmd.c (detach_command): Adjust
15         * infrun.c (follow_fork_inferior): Adjust.
16         (handle_vfork_child_exec_or_exit): Adjust.
17         * linux-fork.c (linux_fork_detach): Remove args parameter.
18         * linux-fork.h (linux_fork_detach): Likewise.
19         * linux-nat.c (linux_nat_detach): Likewise, and adjust.
20         * linux-thread-db.c (thread_db_detach): Likewise.
21         * nto-procfs.c (procfs_detach): Likewise.
22         * procfs.c (procfs_detach): Likewise.
23         (do_detach): Remove signo parameter.
24         * record.c (record_detach): Remove args parameter.
25         * record.h (record_detach): Likewise.
26         * remote-sim.c (gdbsim_detach): Likewise.
27         * remote.c (remote_detach_1): Likewise.
28         (remote_detach): Likewise.
29         (extended_remote_detach): Likewise.
30         * sol-thread.c (sol_thread_detach): Likewise.
31         * target-delegates.c: Re-generate.
32         * top.c (struct qt_args) <args>: Remove field.
33         (kill_or_detach): Don't pass args.
34         (quit_force): Don't set args.
35         * windows-nat.c (windows_detach): Remove args parameter.
36
37 2018-01-19  Yao Qi  <yao.qi@linaro.org>
38
39         * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
40         (arm_linux_init_abi): Install it.
41
42 2018-01-19  Yao Qi  <yao.qi@linaro.org>
43
44         * osabi.c (gdb_osabi_names): Extend the regexp for
45         arm-linux-gnueabihf.
46
47 2018-01-18  Yao Qi  <yao.qi@linaro.org>
48
49         * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
50         m_abbrevs.
51         (abbrev_table::add_abbrev): Update.
52         (abbrev_table::lookup_abbrev): Update.
53
54 2018-01-18  Yao Qi  <yao.qi@linaro.org>
55
56         * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
57
58 2018-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
59
60         * compile/compile.c (compile_to_object): Convert "triplet_rx"
61         to "std::string".
62
63 2018-01-17  Tom Tromey  <tom@tromey.com>
64
65         * dwarf2read.c (symbolp): Remove typedef.  Don't instantiate VEC.
66
67 2018-01-17  Tom Tromey  <tom@tromey.com>
68
69         * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
70         * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
71         (create_array_type_with_stride): Update.
72         * dwarf2read.c (set_die_type): Update.
73
74 2018-01-17  Tom Tromey  <tom@tromey.com>
75
76         * dwarf2read.c (delayed_method_info): Remove typedef.
77         (dwarf2_cu::method_info): Now a std::vector.
78         (add_to_method_list): Update.
79         (free_delayed_list): Remove.
80         (compute_delayed_physnames): Update.
81         (process_full_comp_unit, process_full_type_unit): Clear the method
82         list.  Remove cleanups.
83         (psymtab_include_file_name): Add name_holder parameter.  Use
84         unique_xmalloc_ptr.
85         (dwarf_decode_lines): Update.
86
87 2018-01-17  Tom Tromey  <tom@tromey.com>
88             Simon Marchi  <simon.marchi@ericsson.com>
89
90         * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
91         (dwarf2_per_objfile::free_cached_comp_units)
92         (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
93         (init_cutu_and_read_dies_no_follow): Update.
94         (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
95         (dwarf2_cu::~dwarf2_cu): New.
96         (free_heap_comp_unit, free_stack_comp_unit): Remove.
97         (age_cached_comp_units, free_one_cached_comp_unit): Update.
98
99 2018-01-17  Tom Tromey  <tom@tromey.com>
100             Simon Marchi  <simon.marchi@ericsson.com>
101
102         * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
103         (struct die_reader_specs) <abbrev_table>: New member.
104         (struct abbrev_table): Add constructor.
105         <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
106         <abbrev_obstack>: Now an auto_obstack.
107         (abbrev_table_up): New typedef.
108         (init_cu_die_reader): Add abbrev_table parameter.
109         (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
110         Add result_dwo_abbrev_table.
111         (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
112         (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
113         Update.
114         (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
115         parameter.
116         (skip_children): Update.
117         (abbrev_table::alloc_abbrev): Rename from
118         abbrev_table_alloc_abbrev.
119         (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
120         (abbrev_table::lookup_abbrev): Rename from
121         abbrev_table_lookup_abbrev.
122         (abbrev_table_read_table): Return abbrev_table_up.
123         (abbrev_table_free, abbrev_table_free_cleanup)
124         (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
125         (load_partial_dies): Update.
126
127 2018-01-17  Tom Tromey  <tom@tromey.com>
128
129         * dwarf2read.c (dwarf2_compute_name): Update comment.
130         (read_func_scope, read_variable): Update.
131         (new_symbol): Remove.
132         (new_symbol_full): Rename to new_symbol.
133
134 2018-01-17  Mike Gulick  <mgulick@mathworks.com>
135
136         PR gdb/16577
137         * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
138         a warning instead of throwing an error, set section size to 0 and return
139         NULL.
140         * gdb_bfd.h (gdb_bfd_map_section): Update description.
141
142 2018-01-17  Simon Marchi  <simon.marchi@ericsson.com>
143
144         * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
145         std::string.
146         (linux_ptrace_attach_fail_reason_string): Likewise.
147         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
148         Likewise.
149         (linux_ptrace_attach_fail_reason_string): Likewise.
150         * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
151
152 2018-01-17  Simon Marchi  <simon.marchi@ericsson.com>
153
154         * linux-nat.c (linux_nat_attach): Remove xstrdup.
155
156 2018-01-17  Eldar Abusalimov  <eldar.abusalimov@jetbrains.com>
157
158         PR gdb/21559
159         * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
160         checking for fs_base/gs_base fields in struct user_regs_struct.
161         * configure: Regenerate.
162
163 2018-01-17  Yao Qi  <yao.qi@linaro.org>
164
165         * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
166         function.
167         (aarch64_linux_init_abi): Install it to gdbarch hook
168         gcc_target_options.
169
170 2018-01-15  Pedro Alves  <palves@redhat.com>
171
172         * common/signals-state-save-restore.c
173         (save_original_signals_state): Fix typos.
174
175 2017-01-12  Tom Tromey  <tom@tromey.com>
176             Sergio Durigan Junior  <sergiodj@redhat.com>
177
178         * Makefile.in (install-only): Install gdb-add-index.
179
180 2018-01-12  John Baldwin  <jhb@FreeBSD.org>
181
182         * fbsd-tdep.c (KVE_PROTECTION): Correct value.
183
184 2018-01-12  Andreas Arnez  <arnez@linux.vnet.ibm.com>
185
186         * infrun.c (keep_going_pass_signal): Clear step-over info when
187         insert_breakpoints fails.
188
189 2018-01-11  Pedro Alves  <palves@redhat.com>
190
191         PR gdb/22583
192         * infrun.c (resume): Rename to ...
193         (resume_1): ... this.
194         (resume): Reimplement as wrapper around resume_1.
195
196 2018-01-11  Pedro Alves  <palves@redhat.com>
197
198         PR remote/22597
199         * remote.c (remote_parse_stop_reply): Default to the last-set
200         general thread instead of to 'magic_null_ptid'.
201
202 2018-01-10  Pedro Alves  <palves@redhat.com>
203
204         * language.h (language_get_symbol_name_matcher): Rename ...
205         (get_symbol_name_matcher): ... this.
206         * language.c (language_get_symbol_name_matcher): Ditto.
207         * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
208         callers adjusted.
209
210 2018-01-10  Pedro Alves  <palves@redhat.com>
211
212         PR gdb/22670
213         * dwarf2read.c
214         (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
215         Adjust to use language_get_symbol_name_matcher instead of
216         language_defn::la_get_symbol_name_matcher.
217         * language.c (language_get_symbol_name_matcher): If in Ada mode
218         and the lookup name is a verbatim match, return Ada's matcher.
219         * language.h (language_get_symbol_name_matcher): Adjust comment.
220         (ada_lookup_name_info::verbatim_p):: New method.
221
222 2018-01-10  Pedro Alves  <palves@redhat.com>
223
224         PR gdb/22670
225         * ada-lang.c (ada_collect_symbol_completion_matches): If the
226         minsym's language is language_auto or language_cplus, pass down
227         language_ada instead.
228         * symtab.c (compare_symbol_name): Don't frob symbol language here.
229
230 2018-01-10  Pedro Alves  <palves@redhat.com>
231
232         PR gdb/22670
233         * minsyms.c (linkage_name_str): New function.
234         (iterate_over_minimal_symbols): Use it.
235
236 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
237
238         * NEWS: Document that 'info proc' now works on FreeBSD.
239
240 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
241
242         * configure.ac: Check for kinfo_getfile in libutil.
243         * configure: Regenerate.
244         * config.in: Regenerate.
245         * fbsd-nat.c: Include "fbsd-tdep.h".
246         (fbsd_fetch_cmdline): New.
247         (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
248         rather than calling error.
249         (fbsd_info_proc): New.
250         (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
251         (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
252         (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
253
254 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
255
256         * fbsd-nat.c (struct free_deleter): Remove.
257         (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
258
259 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
260
261         * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
262         NULL for an empty pathname.
263
264 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
265
266         * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
267         (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
268         (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
269         (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
270         (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
271         (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
272         (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
273         (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
274         (kinfo_proc_layout_32, kinfo_proc_layout_i386)
275         (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
276         (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
277         (fbsd_core_fetch_timeval, fbsd_print_sigset)
278         (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
279         (fbsd_init_abi):  Install gdbarch "core_info_proc" method.
280         * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
281
282 2018-01-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
283
284         * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
285         (gnu_xfer_auxv): New function.
286         (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
287         TARGET_OBJECT_AUXV.
288
289 2018-01-08  Yao Qi  <yao.qi@linaro.org>
290             Simon Marchi  <simon.marchi@ericsson.com>
291
292         * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
293         common/selftest.c.
294         (COMMON_OBS): Remove selftest.o.
295         * configure.ac: Append selftest-arch.c and common/selftest.c to
296         CONFIG_SRCS.  Append selftest-arch.o and selftest.o to COMMON_OBS.
297         * configure: Re-generated.
298         * maint.c (maintenance_selftest): Wrap selftests::run_tests with
299         GDB_SELF_TEST.
300         (maintenance_info_selftests): Likewise.
301
302 2018-01-08  Xavier Roirand  <roirand@adacore.com>
303
304         * ada-valprint.c (val_print_packed_array_elements): Use
305         proper number of elements when printing an array indexed
306         by an enumeration type.
307
308 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
309
310         * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
311         (dw2_get_file_names_reader): Adjust.
312         (lookup_dwo_signatured_type): Adjust.
313         (lookup_dwp_signatured_type): Adjust.
314         (lookup_signatured_type): Adjust.
315         (create_type_unit_group): Adjust.
316         (get_type_unit_group): Adjust.
317         (process_psymtab_comp_unit_reader): Adjust.
318         (build_type_psymtabs_reader): Adjust.
319         (scan_partial_symbols): Adjust.
320         (add_partial_symbol): Adjust.
321         (add_partial_subprogram): Adjust.
322         (peek_die_abbrev): Adjust.
323         (fixup_go_packaging): Adjust.
324         (process_imported_unit_die): Adjust.
325         (dwarf2_compute_name): Adjust.
326         (dwarf2_physname): Adjust.
327         (read_import_statement): Adjust.
328         (handle_DW_AT_stmt_list): Adjust.
329         (read_file_scope): Adjust.
330         (read_func_scope): Adjust.
331         (read_lexical_block_scope): Adjust.
332         (read_call_site_scope): Adjust.
333         (read_variable): Adjust.
334         (dwarf2_rnglists_process): Adjust.
335         (dwarf2_ranges_process): Adjust.
336         (dwarf2_ranges_read): Adjust.
337         (dwarf2_get_pc_bounds): Adjust.
338         (dwarf2_record_block_ranges): Adjust.
339         (dwarf2_add_field): Adjust.
340         (dwarf2_add_member_fn): Adjust.
341         (read_structure_type): Adjust.
342         (process_structure_scope): Adjust.
343         (read_enumeration_type): Adjust.
344         (read_array_type): Adjust.
345         (mark_common_block_symbol_computed): Adjust.
346         (read_common_block): Adjust.
347         (read_namespace_type): Adjust.
348         (read_namespace): Adjust.
349         (read_module_type): Adjust.
350         (read_tag_pointer_type): Adjust.
351         (read_tag_ptr_to_member_type): Adjust.
352         (read_tag_string_type): Adjust.
353         (read_subroutine_type): Adjust.
354         (read_typedef): Adjust.
355         (read_base_type): Adjust.
356         (attr_to_dynamic_prop): Adjust.
357         (read_subrange_type): Adjust.
358         (read_unspecified_type): Adjust.
359         (dwarf2_read_abbrevs): Adjust.
360         (load_partial_dies): Adjust.
361         (read_partial_die): Adjust.
362         (find_partial_die): Adjust.
363         (guess_partial_die_structure_name): Adjust.
364         (fixup_partial_die): Adjust.
365         (read_attribute_value): Adjust.
366         (read_addr_index): Adjust.
367         (read_addr_index_from_leb128): Adjust.
368         (read_str_index): Adjust.
369         (dwarf2_string_attr): Adjust.
370         (get_debug_line_section): Adjust.
371         (dwarf_decode_line_header): Adjust.
372         (lnp_state_machine::check_line_address): Adjust.
373         (dwarf_decode_lines_1): Adjust.
374         (dwarf_decode_lines): Adjust.
375         (dwarf2_start_symtab): Adjust.
376         (var_decode_location): Adjust.
377         (new_symbol_full): Adjust.
378         (dwarf2_const_value_data): Adjust.
379         (dwarf2_const_value_attr): Adjust.
380         (dwarf2_const_value): Adjust.
381         (die_type): Adjust.
382         (die_containing_type): Adjust.
383         (build_error_marker_type): Adjust.
384         (lookup_die_type): Adjust.
385         (guess_full_die_structure_name): Adjust.
386         (anonymous_struct_prefix): Adjust.
387         (determine_prefix): Adjust.
388         (dwarf2_name): Adjust.
389         (follow_die_ref_or_sig): Adjust.
390         (follow_die_offset): Adjust.
391         (follow_die_ref): Adjust.
392         (follow_die_sig_1): Adjust.
393         (follow_die_sig): Adjust.
394         (get_signatured_type): Adjust.
395         (get_DW_AT_signature_type): Adjust.
396         (decode_locdesc): Adjust.
397         (dwarf_decode_macros): Adjust.
398         (cu_debug_loc_section): Adjust.
399         (fill_in_loclist_baton): Adjust.
400         (dwarf2_symbol_mark_computed): Adjust.
401         (init_one_comp_unit): Don't assign
402         dwarf2_cu::dwarf2_per_objfile.
403         (set_die_type): Adjust.
404
405 2018-01-07  Simon Marchi  <simon.marchi@ericsson.com>
406
407         * dwarf2read.c (struct mapped_debug_names): Add constructor.
408         <dwarf2_per_objfile>: New field.
409         (dwarf2_per_objfile): Remove global.
410         (get_dwarf2_per_objfile): New function.
411         (set_dwarf2_per_objfile): New function.
412         (dwarf2_build_psymtabs_hard): Change objfile parameter to
413         dwarf2_per_objfile.
414         (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
415         (read_abbrev_offset): Likewise.
416         (read_indirect_string): Likewise.
417         (read_indirect_line_string): Likewise.
418         (read_indirect_string_at_offset): Likewise.
419         (read_indirect_string_from_dwz): Likewise.
420         (dwarf2_find_containing_comp_unit): Change objfile parameter to
421         dwarf2_per_objfile.
422         (age_cached_comp_units): Add dwarf2_per_objfile parameter.
423         (create_all_comp_units): Change objfile parameter to
424         dwarf2_per_objfile.
425         (create_all_type_units): Likewise.
426         (process_queue): Add dwarf2_per_objfile parameter.
427         (read_and_check_comp_unit_head): Likewise.
428         (lookup_dwo_unit_in_dwp): Likewise.
429         (get_dwp_file): Likewise.
430         (process_cu_includes): Likewise.
431         (struct free_dwo_file_cleanup_data): New struct.
432         (dwarf2_has_info): Use get_dwarf2_per_objfile and
433         set_dwarf2_per_objfile.
434         (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
435         (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
436         context, adjust calls.
437         (dw2_instantiate_symtab): Likewise.
438         (dw2_get_cutu): Add dwarf2_per_objfile parameter.
439         (dw2_get_cu): Likewise.
440         (create_cu_from_index_list): Change objfile parameter to
441         dwarf2_per_objfile.
442         (create_cus_from_index_list): Get dwarf2_per_objfile from
443         context, adjust calls.
444         (create_cus_from_index): Likewise.
445         (create_signatured_type_table_from_index): Change objfile
446         parameter to dwarf2_per_objfile.
447         (create_signatured_type_table_from_debug_names): Change objfile
448         parameter to dwarf2_per_objfile.
449         (create_addrmap_from_index): Likewise.
450         (create_addrmap_from_aranges): Likewise.
451         (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
452         (dw2_setup): Remove.
453         (dw2_get_file_names_reader): Get dwarf2_per_objfile from
454         context.
455         (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
456         get_dwarf2_per_objfile.
457         (dw2_forget_cached_source_info): Likewise.
458         (dw2_map_symtabs_matching_filename): Likewise.
459         (struct dw2_symtab_iterator) <index>: Remove.
460         <dwarf2_per_objfile>: New field.
461         (dw2_symtab_iter_init): Replace index parameter with
462         dwarf2_per_objfile.
463         (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
464         (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
465         (dw2_print_stats): Likewise.
466         (dw2_dump): Likewise.
467         (dw2_expand_symtabs_for_function): Likewise.
468         (dw2_expand_all_symtabs): Likewise.
469         (dw2_expand_symtabs_with_fullname): Likewise.
470         (dw2_expand_marked_cus): Replace index and objfile parameters
471         with dwarf2_per_objfile.
472         (dw_expand_symtabs_matching_file_matcher): Add
473         dwarf2_per_objfile parameter and adjust calls.
474         (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
475         adjust calls.
476         (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
477         (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
478         adjust calls.
479         (create_cus_from_debug_names_list): Replace objfile parameter
480         with dwarf2_per_objfile and adjust calls.
481         (create_cus_from_debug_names): Likewise.
482         (dwarf2_read_debug_names): Likewise.
483         (mapped_debug_names::namei_to_name): Adjust call.
484         (dw2_debug_names_iterator::next): Likewise.
485         (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
486         (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
487         (dw2_debug_names_dump): Likewise.
488         (dw2_debug_names_expand_symtabs_for_function): Likewise.
489         (dw2_debug_names_expand_symtabs_matching): Likewise.
490         (dwarf2_initialize_objfile): Likewise.
491         (dwarf2_build_psymtabs): Likewise.
492         (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
493         this_cu.
494         (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
495         (read_and_check_comp_unit_head): Likewise.
496         (read_abbrev_offset): Likewise.
497         (create_debug_type_hash_table): Likewise.
498         (create_debug_types_hash_table): Likewise.
499         (create_all_type_units): Replace objfile parameter with
500         dwarf2_per_objfile.
501         (add_type_unit): Add dwarf2_per_objfile parameter.
502         (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
503         with dwarf2_per_objfile.
504         (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
505         (lookup_dwp_signatured_type): Likewise.
506         (lookup_signatured_type): Likewise.
507         (read_cutu_die_from_dwo): Likewise.
508         (init_tu_and_read_dwo_dies): Likewise.
509         (init_cutu_and_read_dies): Likewise.
510         (init_cutu_and_read_dies_no_follow): Likewise.
511         (allocate_type_unit_groups_table): Add objfile parameter.
512         (create_type_unit_group): Use dwarf2_per_objfile from cu.
513         (get_type_unit_group): Likewise.
514         (process_psymtab_comp_unit): Update call.
515         (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
516         (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
517         (print_tu_stats): Likewise.
518         (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
519         in void* parameter.
520         (build_type_psymtabs): Change objfile parameter to
521         dwarf2_per_objfile.
522         (process_skeletonless_type_unit): Use dwarf2_per_objfile
523         passed in void* parameter.
524         (process_skeletonless_type_units): Change objfile parameter to
525         dwarf2_per_objfile.
526         (set_partial_user): Likewise.
527         (dwarf2_build_psymtabs_hard): Likewise.
528         (read_comp_units_from_section): Likewise.
529         (create_all_comp_units): Likewise.
530         (scan_partial_symbols): Update calls.
531         (add_partial_symbol): Likewise.
532         (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
533         (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
534         (process_queue): Add dwarf2_per_objfile parameter.
535         (get_compunit_symtab): Use dwarf2_per_objfile from cu.
536         (compute_compunit_symtab_includes): Likewise.
537         (process_cu_includes): Add dwarf2_per_objfile parameter.
538         (process_full_comp_unit): Use dwarf2_per_objfile from cu.
539         (process_full_type_unit): Likewise.
540         (process_imported_unit_die): Update call.
541         (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
542         (read_file_scope): Likewise.
543         (allocate_dwo_file_hash_table): Add objfile parameter.
544         (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
545         (create_cus_hash_table): Likewise.
546         (create_dwp_hash_table): Likewise.
547         (create_dwo_unit_in_dwp_v1): Likewise.
548         (create_dwp_v2_section): Likewise.
549         (create_dwo_unit_in_dwp_v2): Likewise.
550         (lookup_dwo_unit_in_dwp): Likewise.
551         (try_open_dwop_file): Likewise.
552         (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
553         (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
554         cleanup to include a reference to dwarf2_per_objfile.
555         (open_dwp_file): Add dwarf2_per_objfile parameter.
556         (open_and_init_dwp_file): Likewise.
557         (get_dwp_file): Likewise.
558         (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
559         (queue_and_load_all_dwo_tus): Update call.
560         (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
561         data.
562         (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
563         (dwarf2_ranges_process): Likewise.
564         (dwarf2_get_pc_bounds): Likewise.
565         (mark_common_block_symbol_computed): Likewise.
566         (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
567         (dwarf2_read_abbrevs): Update call.
568         (read_partial_die): Use dwarf2_per_objfile from cu.
569         (find_partial_die): Likewise.
570         (fixup_partial_die): Likewise.
571         (read_attribute_value): Likewise.
572         (read_indirect_string_at_offset_from): Add objfile parameter.
573         (read_indirect_string_at_offset): Add dwarf2_per_objfile
574         parameter.
575         (read_indirect_string_from_dwz): Add objfile parameter.
576         (read_indirect_string): Add objfile parameter.
577         (read_addr_index_1): Add dwarf2_per_objfile parameter.
578         (read_addr_index): Use dwarf2_per_objfile from cu.
579         (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
580         call dw2_setup.
581         (read_str_index): Use dwarf2_per_objfile from cu.
582         (get_debug_line_section): Likewise.
583         (read_formatted_entries): Add dwarf2_per_objfile parameter.
584         (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
585         (new_symbol_full): Use dwarf2_per_objfile from cu.
586         (build_error_marker_type): Likewise.
587         (lookup_die_type): Likewise.
588         (determine_prefix): Likewise.
589         (follow_die_offset): Likewise.
590         (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
591         (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
592         (dwarf2_fetch_die_type_sect_off): Likewise.
593         (dwarf2_get_die_type): Likewise.
594         (follow_die_sig_1): Use dwarf2_per_objfile from cu.
595         (get_signatured_type): Likewise.
596         (get_DW_AT_signature_type): Likewise.
597         (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
598         (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
599         (cu_debug_loc_section): Likewise.
600         (fill_in_loclist_baton): Likewise.
601         (dwarf2_symbol_mark_computed): Likewise.
602         (dwarf2_find_containing_comp_unit): Change objfile parameter to
603         dwarf2_per_objfile.
604         (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
605         parameter.
606         (age_cached_comp_units): Add dwarf2_per_objfile parameter.
607         (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
608         (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
609         (set_die_type): Use dwarf2_free_objfile from cu.
610         (get_die_type_at_offset): Likewise.
611         (dwarf2_per_objfile_free): Don't assign global variable.
612         (debug_names) <constructor>: Add dwarf2_per_objfile
613         parameter, update m_debugstrlookup construction.
614         (debug_names::debug_str_lookup): Add dwarf2_per_objfile
615         parameter.
616         <m_dwarf2_per_objfile>: New field.
617         <lookup>: Use m_dwarf2_per_objfile.
618         (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
619         (psyms_seen_size): Likewise.
620         (write_gdbindex): Replace objfile parameter with
621         dwarf2_per_objfile.
622         (write_debug_names): Likewise.
623         (write_psymtabs_to_index): Likewise.
624         (save_gdb_index_command): Use get_dwarf2_per_objfile, update
625         calls.
626
627 2018-01-07  Simon Marchi  <simon.marchi@ericsson.com>
628
629         * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
630         <dwarf2_per_objfile>: New field.
631         (struct dwarf2_per_cu_data) <objfile>: Remove.
632         <dwarf2_per_objfile>: New field.
633         (create_cu_from_index_list): Assign dwarf2_per_objfile instead
634         of objfile.
635         (create_signatured_type_table_from_index): Likewise.
636         (create_debug_type_hash_table): Likewise.
637         (fill_in_sig_entry_from_dwo_entry): Likewise.
638         (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
639         (create_type_unit_group): Assign dwarf2_per_objfile instead of
640         objfile.
641         (create_partial_symtab): Access objfile through
642         dwarf2_per_objfile.
643         (process_psymtab_comp_unit_reader): Likewise.
644         (read_comp_units_from_section): Likewise.
645         (scan_partial_symbols): Likewise.
646         (add_partial_symbol): Likewise.
647         (add_partial_subprogram): Likewise.
648         (peek_die_abbrev): Likewise.
649         (fixup_go_packaging): Likewise.
650         (process_full_comp_unit): Likewise.
651         (process_full_type_unit): Likewise.
652         (process_imported_unit_die): Likewise.
653         (dwarf2_compute_name): Likewise.
654         (dwarf2_physname): Likewise.
655         (read_import_statement): Likewise.
656         (create_cus_hash_table): Assign dwarf2_physname instead of
657         objfile.
658         (read_func_scope): Access objfile through dwarf2_per_objfile.
659         (read_lexical_block_scope): Likewise.
660         (read_call_site_scope): Likewise.
661         (read_variable): Likewise.
662         (dwarf2_rnglists_process): Likewise.
663         (dwarf2_ranges_process): Likewise.
664         (dwarf2_ranges_read): Likewise.
665         (dwarf2_record_block_ranges): Likewise.
666         (dwarf2_add_field): Likewise.
667         (dwarf2_add_member_fn): Likewise.
668         (read_structure_type): Likewise.
669         (process_structure_scope): Likewise.
670         (read_enumeration_type): Likewise.
671         (read_array_type): Likewise.
672         (read_common_block): Likewise.
673         (read_namespace_type): Likewise.
674         (read_namespace): Likewise.
675         (read_module_type): Likewise.
676         (read_tag_pointer_type): Likewise.
677         (read_tag_ptr_to_member_type): Likewise.
678         (read_tag_string_type): Likewise.
679         (read_subroutine_type): Likewise.
680         (read_typedef): Likewise.
681         (read_base_type): Likewise.
682         (attr_to_dynamic_prop): Likewise.
683         (read_subrange_type): Likewise.
684         (read_unspecified_type): Likewise.
685         (load_partial_dies): Likewise.
686         (read_partial_die): Likewise.
687         (find_partial_die): Likewise.
688         (guess_partial_die_structure_name): Likewise.
689         (fixup_partial_die): Likewise.
690         (read_attribute_value): Likewise.
691         (read_addr_index_from_leb128): Likewise.
692         (dwarf2_read_addr_index): Likewise.
693         (dwarf2_string_attr): Likewise.
694         (lnp_state_machine::check_line_address): Likewise.
695         (dwarf_decode_lines_1): Likewise.
696         (dwarf_decode_lines): Likewise.
697         (dwarf2_start_symtab): Likewise.
698         (var_decode_location): Likewise.
699         (new_symbol_full): Likewise.
700         (dwarf2_const_value_data): Likewise.
701         (dwarf2_const_value_attr): Likewise.
702         (dwarf2_const_value): Likewise.
703         (die_type): Likewise.
704         (die_containing_type): Likewise.
705         (lookup_die_type): Likewise.
706         (guess_full_die_structure_name): Likewise.
707         (anonymous_struct_prefix): Likewise.
708         (dwarf2_name): Likewise.
709         (follow_die_ref_or_sig): Likewise.
710         (follow_die_offset): Likewise.
711         (follow_die_ref): Likewise.
712         (dwarf2_fetch_die_loc_sect_off): Likewise.
713         (dwarf2_fetch_constant_bytes): Likewise.
714         (dwarf2_fetch_die_type_sect_off): Likewise.
715         (dwarf2_get_die_type): Likewise.
716         (follow_die_sig): Likewise.
717         (decode_locdesc): Likewise.
718         (dwarf2_per_cu_objfile): Likewise.
719         (dwarf2_per_cu_text_offset): Likewise.
720         (init_one_comp_unit): Assign dwarf2_per_objfile instead of
721         objfile.
722         (set_die_type): Access objfile through
723         dwarf2_per_objfile.
724
725 2018-01-07  Simon Marchi  <simon.marchi@ericsson.com>
726
727         * valprint.c (converted_character_d): Remove typedef.
728         (DEF_VEC_O (converted_character_d)): Remove.
729         (count_next_character): Use std::vector.
730         (print_converted_chars_to_obstack): Likewise.
731         (generic_printstr): Likewise.
732
733 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
734
735         * xml-support.h (struct gdb_xml_value): Add constructor.
736         <value>: Change type to unique_xmalloc_ptr.
737         (gdb_xml_value_s): Remove typedef.
738         (DEF_VEC_O (gdb_xml_value_s)): Remove.
739         (gdb_xml_element_start_handler): Change parameter type to
740         std::vector.
741         (xml_find_attribute): Likewise.
742         * xml-support.c (xml_find_attribute): Change parameter type to
743         std::vector and adjust.
744         (gdb_xml_values_cleanup): Remove.
745         (gdb_xml_parser::start_element): Adjust to std::vector.
746         (xinclude_start_include): Change paraeter type to std::vector
747         and adjust.
748         * btrace.c (check_xml_btrace_version): Likewise.
749         (parse_xml_btrace_block): Likewise.
750         (parse_xml_btrace_pt_config_cpu): Likewise.
751         (parse_xml_btrace_pt): Likewise.
752         (parse_xml_btrace_conf_bts): Likewise.
753         (parse_xml_btrace_conf_pt): Likewise.
754         * memory-map.c (memory_map_start_memory): Likewise.
755         (memory_map_start_property): Likewise.
756         * osdata.c (osdata_start_osdata): Likewise.
757         (osdata_start_item): Likewise.
758         (osdata_start_column): Likewise.
759         * remote.c (start_thread): Likewise.
760         * solib-aix.c (library_list_start_library): Likewise.
761         (library_list_start_list): Likewise.
762         * solib-svr4.c (library_list_start_library): Likewise.
763         (svr4_library_list_start_list): Likewise.
764         * solib-target.c (library_list_start_segment): Likewise.
765         (library_list_start_section): Likewise.
766         (library_list_start_library): Likewise.
767         (library_list_start_list): Likewise.
768         * tracepoint.c (traceframe_info_start_memory): Likewise.
769         (traceframe_info_start_tvar): Likewise.
770         * xml-syscall.c (syscall_start_syscall): Likewise.
771         * xml-tdesc.c (tdesc_start_target): Likewise.
772         (tdesc_start_feature): Likewise.
773         (tdesc_start_reg): Likewise.
774         (tdesc_start_union): Likewise.
775         (tdesc_start_struct): Likewise.
776         (tdesc_start_flags): Likewise.
777         (tdesc_start_enum): Likewise.
778         (tdesc_start_field): Likewise.
779         (tdesc_start_enum_value): Likewise.
780         (tdesc_start_vector): Likewise.
781
782 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
783
784         * extension.h (struct xmethod_worker) <clone>: Remove.
785         * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
786         Remove.
787         (python_xmethod_worker::clone): Remove.
788         * valops.c (find_overload_match): Use std::move instead of
789         clone.
790
791 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
792
793         * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
794         (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
795         <free_xmethod_worker_data>: Remove.
796         <get_matching_xmethod_workers>: Chance VEC to std::vector.
797         <get_xmethod_arg_types>: Remove.
798         <get_xmethod_result_type>: Remove.
799         <invoke_xmethod>: Remove.
800         * extension.c (new_xmethod_worker): Remove.
801         (clone_xmethod_worker): Remove.
802         (get_matching_xmethod_workers): Return void, pass std::vector by
803         pointer.
804         (get_xmethod_arg_types): Rename to...
805         (xmethod_worker::get_arg_types): ... this, and adjust.
806         (get_xmethod_result_type): Rename to...
807         (xmethod_worker::get_result_type): ... this, and adjust.
808         (invoke_xmethod): Remove.
809         (free_xmethod_worker): Remove.
810         (free_xmethod_worker_vec): Remove.
811         * extension.h (enum ext_lang_rc): Move here from
812         extension-priv.h.
813         (struct xmethod_worker): Add constructor and destructor.
814         <data>: Remove.
815         <value>: Remove.
816         <invoke, clone, do_get_result_type, do_get_arg_types>: New
817         virtual pure methods.
818         <get_arg_types, get_result_type>: New methods.
819         (xmethod_worker_ptr): Remove typedef.
820         (DEF_VEC_P (xmethod_worker_ptr)): Remove.
821         (xmethod_worker_vec): Remove typedef.
822         (xmethod_worker_up): New typedef.
823         (invoke_xmethod): Remove.
824         (clone_xmethod_worker): Remove.
825         (free_xmethod_worker): Remove.
826         (free_xmethod_worker_vec): Remove.
827         (get_xmethod_arg_types): Remove.
828         (get_xmethod_result_type): Remove.
829         * valops.c (find_method_list): Use std::vector, don't use
830         intermediate vector.
831         (value_find_oload_method_list): Use std::vector.
832         (find_overload_match): Use std::vector.
833         (find_oload_champ): Use std::vector.
834         * value.c (value_free): Use operator delete.
835         (value_of_xmethod): Rename to...
836         (value_from_xmethod): ... this.  Don't assign
837         xmethod_worker::value, take rvalue-reference.
838         (result_type_of_xmethod): Adjust.
839         (call_xmethod): Adjust.
840         * value.h: Include extension.h.
841         (struct xmethod_worker): Don't forward-declare.
842         (value_of_xmethod): Rename to...
843         (value_from_xmethod): ... this, take rvalue-reference.
844         * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
845         (struct python_xmethod_worker): ... this, add constructor and
846         destructor.
847         <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
848         (gdbpy_free_xmethod_worker_data): Rename to...
849         (python_xmethod_worker::~python_xmethod_worker): ... this and
850         adjust.
851         (gdbpy_clone_xmethod_worker_data): Rename to...
852         (python_xmethod_worker::clone): ... this and adjust.
853         (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
854         temporary vector.
855         (gdbpy_get_xmethod_arg_types): Rename to...
856         (python_xmethod_worker::do_get_arg_types): ... this and adjust.
857         (gdbpy_get_xmethod_result_type): Rename to...
858         (python_xmethod_worker::do_get_result_type): ... this and
859         adjust.
860         (gdbpy_invoke_xmethod): Rename to...
861         (python_xmethod_worker::invoke): ... this and adjust.
862         (new_python_xmethod_worker): Rename to...
863         (python_xmethod_worker::python_xmethod_worker): ... this and
864         adjust.
865         * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
866         Remove.
867         (gdbpy_free_xmethod_worker_data): Remove.
868         (gdbpy_get_matching_xmethod_workers): Use std::vector.
869         (gdbpy_get_xmethod_arg_types): Remove.
870         (gdbpy_get_xmethod_result_type): Remove.
871         (gdbpy_invoke_xmethod): Remove.
872         * python/python.c (python_extension_ops): Remove obsolete
873         callbacks.
874
875 2018-01-05  Pedro Alves  <palves@redhat.com>
876
877         PR gdb/18653
878         * common/signals-state-save-restore.c
879         (save_original_signals_state): New parameter 'quiet'.  Warn if we
880         find a custom handler preinstalled, instead of internal erroring.
881         But only warn if !quiet.
882         * common/signals-state-save-restore.h
883         (save_original_signals_state): New parameter 'quiet'.
884         * main.c (captured_main_1): Move save_original_signals_state call
885         after option handling, and pass QUIET.
886
887 2018-01-05  Pedro Alves  <palves@redhat.com>
888
889         * spu-tdep.c (spu_catch_start): Pass
890         symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
891
892 2018-01-05  Pedro Alves  <palves@redhat.com>
893
894         PR gdb/22670
895         * ada-lang.c (literal_symbol_name_matcher): New function.
896         (ada_get_symbol_name_matcher): Use it for
897         symbol_name_match_type::SEARCH_NAME.
898         * block.c (block_lookup_symbol): New parameter 'match_type'.  Pass
899         it down instead of assuming symbol_name_match_type::FULL.
900         * block.h (block_lookup_symbol): New parameter 'match_type'.
901         * c-valprint.c (print_unpacked_pointer): Use
902         lookup_symbol_search_name instead of lookup_symbol.
903         * compile/compile-object-load.c (get_out_value_type): Pass down
904         symbol_name_match_type::SEARCH_NAME.
905         * cp-namespace.c (cp_basic_lookup_symbol): Pass down
906         symbol_name_match_type::FULL.
907         * cp-support.c (cp_get_symbol_name_matcher): Handle
908         symbol_name_match_type::SEARCH_NAME.
909         * infrun.c (insert_exception_resume_breakpoint): Use
910         lookup_symbol_search_name.
911         * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
912         * psymtab.c (maintenance_check_psymtabs): Use
913         symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
914         * stack.c (print_frame_args): Use lookup_symbol_search_name and
915         SYMBOL_SEARCH_NAME.
916         * symtab.c (lookup_local_symbol): Don't demangle the lookup name
917         if symbol_name_match_type::SEARCH_NAME.
918         (lookup_symbol_in_language): Pass down
919         symbol_name_match_type::FULL.
920         (lookup_symbol_search_name): New.
921         (lookup_language_this): Pass down
922         symbol_name_match_type::SEARCH_NAME.
923         (lookup_symbol_aux, lookup_local_symbol): New parameter
924         'match_type'.  Pass it down.
925         * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
926         (lookup_symbol_search_name): New declaration.
927         (lookup_symbol_in_block): New 'match_type' parameter.
928
929 2018-01-05  Pedro Alves  <palves@redhat.com>
930
931         PR gdb/22670
932         * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
933         ada_lookup_symbol.
934         (ada_lookup_symbol): Reimplement in terms of
935         ada_lookup_symbol_list, bits factored out from
936         ada_lookup_encoded_symbol.
937
938 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
939
940         * ada-exp.y (write_object_renaming): When subscripting an array
941         using a symbol as the index, pass the block in call to
942         ada_lookup_encoded_symbol when looking that symbol up.
943
944 2018-01-05  Jerome Guitton  <guitton@adacore.com>
945
946         * ada-lang.c (ada_array_length): Use ada_index_type instead of
947         TYPE_INDEX_TYPE.
948
949 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
950
951         * ada-lang.c (ada_to_fixed_value_create): Add handling of
952         the case where VALUE_LVAL (val0) is not lval_memory.
953
954 2018-01-05  Xavier Roirand  <roirand@adacore.com>
955
956         * ada-valprint.c (print_optional_low_bound): Handle
957         character-indexed array printing like boolean-indexed array
958         printing.
959
960 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
961
962         * NEWS: Create a new section for the next release branch.
963         Rename the section of the current branch, now that it has
964         been cut.
965
966 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
967
968         GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
969         * version.in: Bump version to 8.1.50.DATE-git.
970
971 2018-01-03  Xavier Roirand  <roirand@adacore.com>
972
973         * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
974         Add field.
975         * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
976         Add field.
977         (default_exception_support_info) <catch_handlers_sym>: Add field.
978         (exception_support_info_fallback) <catch_handlers_sym>: Add field.
979         (ada_exception_name_addr_1): Add "catch handlers" handling.
980         (ada_exception_catchpoint_cond_string) <ex>: New parameter.
981         Update all callers.
982         (create_excep_cond_exprs) <ex>: Add parameter.
983         (re_set_exception): Update create_excep_cond_exprs call.
984         (print_it_exception, print_one_exception, print_mention_exception)
985         (print_recreate_exception): Add "catch handler" handling.
986         (allocate_location_catch_handlers, re_set_catch_handlers)
987         (check_status_catch_handlers, print_it_catch_handlers)
988         (print_one_catch_handlers, print_mention_catch_handlers)
989         (print_recreate_catch_handlers): New function.
990         (catch_handlers_breakpoint_ops): New variable.
991         (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
992         Add parameter.  Add "catch handler" handling.
993         (ada_exception_sym_name, ada_exception_breakpoint_ops):
994         Add "catch handler" handling.
995         (ada_exception_catchpoint_cond_string): Add "catch handler"
996         handling.
997         (create_ada_exception_catchpoint): Update create_excep_cond_exprs
998         call.
999         (catch_ada_handlers_command): New function.
1000         (initialize_ada_catchpoint_ops): Initialize "catch handlers"
1001         operations structure.
1002         (_initialize_ada_language): Add "catch handlers" command entry.
1003         * NEWS: Document "catch handlers" feature.
1004
1005 2018-01-02  Joel Brobecker  <brobecker@adacore.com>
1006
1007         * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
1008         account when creating the array type of the slice.
1009         (ada_value_slice): Likewise.
1010
1011 2018-01-02  Joel Brobecker  <brobecker@adacore.com>
1012
1013         * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
1014         New enum value.
1015         (create_array_type_with_stride): Add byte_stride_prop parameter.
1016         * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
1017         New parameter.  Update all callers in this file.
1018         (array_type_has_dynamic_stride): New function.
1019         (is_dynamic_type_internal, resolve_dynamic_array): Add handling
1020         of arrays with dynamic byte strides.
1021         * dwarf2read.c (read_array_type): Add support for dynamic
1022         DW_AT_byte_stride attributes.
1023
1024 2018-01-02  Joel Brobecker  <brobecker@adacore.com>
1025
1026         * dwarf2read.c (read_unspecified_type): Treat
1027         DW_TAG_enumeration_type DIEs from Ada units as stubs.
1028
1029 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
1030
1031         Update copyright year range in all GDB files.
1032
1033 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
1034
1035         * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
1036         and gdb/testsuite/gdb.base/step-line.c.
1037
1038 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
1039
1040         * copyright.py (main): Dump the contents of
1041         MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
1042         even if BY_HAND is empty.
1043
1044 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
1045
1046         * top.c (print_gdb_version): Update Copyright year in version
1047         message.
1048
1049 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
1050
1051         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
1052
1053 For older changes see ChangeLog-2017.
1054 \f
1055 Local Variables:
1056 mode: change-log
1057 left-margin: 8
1058 fill-column: 74
1059 version-control: never
1060 coding: utf-8
1061 End: