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