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