Remove dwarf2_per_objfile global
[external/binutils.git] / gdb / ChangeLog
1 2018-01-07  Simon Marchi  <simon.marchi@ericsson.com>
2
3         * dwarf2read.c (struct mapped_debug_names): Add constructor.
4         <dwarf2_per_objfile>: New field.
5         (dwarf2_per_objfile): Remove global.
6         (get_dwarf2_per_objfile): New function.
7         (set_dwarf2_per_objfile): New function.
8         (dwarf2_build_psymtabs_hard): Change objfile parameter to
9         dwarf2_per_objfile.
10         (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
11         (read_abbrev_offset): Likewise.
12         (read_indirect_string): Likewise.
13         (read_indirect_line_string): Likewise.
14         (read_indirect_string_at_offset): Likewise.
15         (read_indirect_string_from_dwz): Likewise.
16         (dwarf2_find_containing_comp_unit): Change objfile parameter to
17         dwarf2_per_objfile.
18         (age_cached_comp_units): Add dwarf2_per_objfile parameter.
19         (create_all_comp_units): Change objfile parameter to
20         dwarf2_per_objfile.
21         (create_all_type_units): Likewise.
22         (process_queue): Add dwarf2_per_objfile parameter.
23         (read_and_check_comp_unit_head): Likewise.
24         (lookup_dwo_unit_in_dwp): Likewise.
25         (get_dwp_file): Likewise.
26         (process_cu_includes): Likewise.
27         (struct free_dwo_file_cleanup_data): New struct.
28         (dwarf2_has_info): Use get_dwarf2_per_objfile and
29         set_dwarf2_per_objfile.
30         (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
31         (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
32         context, adjust calls.
33         (dw2_instantiate_symtab): Likewise.
34         (dw2_get_cutu): Add dwarf2_per_objfile parameter.
35         (dw2_get_cu): Likewise.
36         (create_cu_from_index_list): Change objfile parameter to
37         dwarf2_per_objfile.
38         (create_cus_from_index_list): Get dwarf2_per_objfile from
39         context, adjust calls.
40         (create_cus_from_index): Likewise.
41         (create_signatured_type_table_from_index): Change objfile
42         parameter to dwarf2_per_objfile.
43         (create_signatured_type_table_from_debug_names): Change objfile
44         parameter to dwarf2_per_objfile.
45         (create_addrmap_from_index): Likewise.
46         (create_addrmap_from_aranges): Likewise.
47         (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
48         (dw2_setup): Remove.
49         (dw2_get_file_names_reader): Get dwarf2_per_objfile from
50         context.
51         (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
52         get_dwarf2_per_objfile.
53         (dw2_forget_cached_source_info): Likewise.
54         (dw2_map_symtabs_matching_filename): Likewise.
55         (struct dw2_symtab_iterator) <index>: Remove.
56         <dwarf2_per_objfile>: New field.
57         (dw2_symtab_iter_init): Replace index parameter with
58         dwarf2_per_objfile.
59         (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
60         (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
61         (dw2_print_stats): Likewise.
62         (dw2_dump): Likewise.
63         (dw2_expand_symtabs_for_function): Likewise.
64         (dw2_expand_all_symtabs): Likewise.
65         (dw2_expand_symtabs_with_fullname): Likewise.
66         (dw2_expand_marked_cus): Replace index and objfile parameters
67         with dwarf2_per_objfile.
68         (dw_expand_symtabs_matching_file_matcher): Add
69         dwarf2_per_objfile parameter and adjust calls.
70         (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
71         adjust calls.
72         (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
73         (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
74         adjust calls.
75         (create_cus_from_debug_names_list): Replace objfile parameter
76         with dwarf2_per_objfile and adjust calls.
77         (create_cus_from_debug_names): Likewise.
78         (dwarf2_read_debug_names): Likewise.
79         (mapped_debug_names::namei_to_name): Adjust call.
80         (dw2_debug_names_iterator::next): Likewise.
81         (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
82         (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
83         (dw2_debug_names_dump): Likewise.
84         (dw2_debug_names_expand_symtabs_for_function): Likewise.
85         (dw2_debug_names_expand_symtabs_matching): Likewise.
86         (dwarf2_initialize_objfile): Likewise.
87         (dwarf2_build_psymtabs): Likewise.
88         (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
89         this_cu.
90         (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
91         (read_and_check_comp_unit_head): Likewise.
92         (read_abbrev_offset): Likewise.
93         (create_debug_type_hash_table): Likewise.
94         (create_debug_types_hash_table): Likewise.
95         (create_all_type_units): Replace objfile parameter with
96         dwarf2_per_objfile.
97         (add_type_unit): Add dwarf2_per_objfile parameter.
98         (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
99         with dwarf2_per_objfile.
100         (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
101         (lookup_dwp_signatured_type): Likewise.
102         (lookup_signatured_type): Likewise.
103         (read_cutu_die_from_dwo): Likewise.
104         (init_tu_and_read_dwo_dies): Likewise.
105         (init_cutu_and_read_dies): Likewise.
106         (init_cutu_and_read_dies_no_follow): Likewise.
107         (allocate_type_unit_groups_table): Add objfile parameter.
108         (create_type_unit_group): Use dwarf2_per_objfile from cu.
109         (get_type_unit_group): Likewise.
110         (process_psymtab_comp_unit): Update call.
111         (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
112         (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
113         (print_tu_stats): Likewise.
114         (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
115         in void* parameter.
116         (build_type_psymtabs): Change objfile parameter to
117         dwarf2_per_objfile.
118         (process_skeletonless_type_unit): Use dwarf2_per_objfile
119         passed in void* parameter.
120         (process_skeletonless_type_units): Change objfile parameter to
121         dwarf2_per_objfile.
122         (set_partial_user): Likewise.
123         (dwarf2_build_psymtabs_hard): Likewise.
124         (read_comp_units_from_section): Likewise.
125         (create_all_comp_units): Likewise.
126         (scan_partial_symbols): Update calls.
127         (add_partial_symbol): Likewise.
128         (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
129         (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
130         (process_queue): Add dwarf2_per_objfile parameter.
131         (get_compunit_symtab): Use dwarf2_per_objfile from cu.
132         (compute_compunit_symtab_includes): Likewise.
133         (process_cu_includes): Add dwarf2_per_objfile parameter.
134         (process_full_comp_unit): Use dwarf2_per_objfile from cu.
135         (process_full_type_unit): Likewise.
136         (process_imported_unit_die): Update call.
137         (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
138         (read_file_scope): Likewise.
139         (allocate_dwo_file_hash_table): Add objfile parameter.
140         (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
141         (create_cus_hash_table): Likewise.
142         (create_dwp_hash_table): Likewise.
143         (create_dwo_unit_in_dwp_v1): Likewise.
144         (create_dwp_v2_section): Likewise.
145         (create_dwo_unit_in_dwp_v2): Likewise.
146         (lookup_dwo_unit_in_dwp): Likewise.
147         (try_open_dwop_file): Likewise.
148         (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
149         (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
150         cleanup to include a reference to dwarf2_per_objfile.
151         (open_dwp_file): Add dwarf2_per_objfile parameter.
152         (open_and_init_dwp_file): Likewise.
153         (get_dwp_file): Likewise.
154         (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
155         (queue_and_load_all_dwo_tus): Update call.
156         (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
157         data.
158         (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
159         (dwarf2_ranges_process): Likewise.
160         (dwarf2_get_pc_bounds): Likewise.
161         (mark_common_block_symbol_computed): Likewise.
162         (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
163         (dwarf2_read_abbrevs): Update call.
164         (read_partial_die): Use dwarf2_per_objfile from cu.
165         (find_partial_die): Likewise.
166         (fixup_partial_die): Likewise.
167         (read_attribute_value): Likewise.
168         (read_indirect_string_at_offset_from): Add objfile parameter.
169         (read_indirect_string_at_offset): Add dwarf2_per_objfile
170         parameter.
171         (read_indirect_string_from_dwz): Add objfile parameter.
172         (read_indirect_string): Add objfile parameter.
173         (read_addr_index_1): Add dwarf2_per_objfile parameter.
174         (read_addr_index): Use dwarf2_per_objfile from cu.
175         (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
176         call dw2_setup.
177         (read_str_index): Use dwarf2_per_objfile from cu.
178         (get_debug_line_section): Likewise.
179         (read_formatted_entries): Add dwarf2_per_objfile parameter.
180         (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
181         (new_symbol_full): Use dwarf2_per_objfile from cu.
182         (build_error_marker_type): Likewise.
183         (lookup_die_type): Likewise.
184         (determine_prefix): Likewise.
185         (follow_die_offset): Likewise.
186         (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
187         (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
188         (dwarf2_fetch_die_type_sect_off): Likewise.
189         (dwarf2_get_die_type): Likewise.
190         (follow_die_sig_1): Use dwarf2_per_objfile from cu.
191         (get_signatured_type): Likewise.
192         (get_DW_AT_signature_type): Likewise.
193         (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
194         (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
195         (cu_debug_loc_section): Likewise.
196         (fill_in_loclist_baton): Likewise.
197         (dwarf2_symbol_mark_computed): Likewise.
198         (dwarf2_find_containing_comp_unit): Change objfile parameter to
199         dwarf2_per_objfile.
200         (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
201         parameter.
202         (age_cached_comp_units): Add dwarf2_per_objfile parameter.
203         (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
204         (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
205         (set_die_type): Use dwarf2_free_objfile from cu.
206         (get_die_type_at_offset): Likewise.
207         (dwarf2_per_objfile_free): Don't assign global variable.
208         (debug_names) <constructor>: Add dwarf2_per_objfile
209         parameter, update m_debugstrlookup construction.
210         (debug_names::debug_str_lookup): Add dwarf2_per_objfile
211         parameter.
212         <m_dwarf2_per_objfile>: New field.
213         <lookup>: Use m_dwarf2_per_objfile.
214         (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
215         (psyms_seen_size): Likewise.
216         (write_gdbindex): Replace objfile parameter with
217         dwarf2_per_objfile.
218         (write_debug_names): Likewise.
219         (write_psymtabs_to_index): Likewise.
220         (save_gdb_index_command): Use get_dwarf2_per_objfile, update
221         calls.
222
223 2018-01-07  Simon Marchi  <simon.marchi@ericsson.com>
224
225         * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
226         <dwarf2_per_objfile>: New field.
227         (struct dwarf2_per_cu_data) <objfile>: Remove.
228         <dwarf2_per_objfile>: New field.
229         (create_cu_from_index_list): Assign dwarf2_per_objfile instead
230         of objfile.
231         (create_signatured_type_table_from_index): Likewise.
232         (create_debug_type_hash_table): Likewise.
233         (fill_in_sig_entry_from_dwo_entry): Likewise.
234         (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
235         (create_type_unit_group): Assign dwarf2_per_objfile instead of
236         objfile.
237         (create_partial_symtab): Access objfile through
238         dwarf2_per_objfile.
239         (process_psymtab_comp_unit_reader): Likewise.
240         (read_comp_units_from_section): Likewise.
241         (scan_partial_symbols): Likewise.
242         (add_partial_symbol): Likewise.
243         (add_partial_subprogram): Likewise.
244         (peek_die_abbrev): Likewise.
245         (fixup_go_packaging): Likewise.
246         (process_full_comp_unit): Likewise.
247         (process_full_type_unit): Likewise.
248         (process_imported_unit_die): Likewise.
249         (dwarf2_compute_name): Likewise.
250         (dwarf2_physname): Likewise.
251         (read_import_statement): Likewise.
252         (create_cus_hash_table): Assign dwarf2_physname instead of
253         objfile.
254         (read_func_scope): Access objfile through dwarf2_per_objfile.
255         (read_lexical_block_scope): Likewise.
256         (read_call_site_scope): Likewise.
257         (read_variable): Likewise.
258         (dwarf2_rnglists_process): Likewise.
259         (dwarf2_ranges_process): Likewise.
260         (dwarf2_ranges_read): Likewise.
261         (dwarf2_record_block_ranges): Likewise.
262         (dwarf2_add_field): Likewise.
263         (dwarf2_add_member_fn): Likewise.
264         (read_structure_type): Likewise.
265         (process_structure_scope): Likewise.
266         (read_enumeration_type): Likewise.
267         (read_array_type): Likewise.
268         (read_common_block): Likewise.
269         (read_namespace_type): Likewise.
270         (read_namespace): Likewise.
271         (read_module_type): Likewise.
272         (read_tag_pointer_type): Likewise.
273         (read_tag_ptr_to_member_type): Likewise.
274         (read_tag_string_type): Likewise.
275         (read_subroutine_type): Likewise.
276         (read_typedef): Likewise.
277         (read_base_type): Likewise.
278         (attr_to_dynamic_prop): Likewise.
279         (read_subrange_type): Likewise.
280         (read_unspecified_type): Likewise.
281         (load_partial_dies): Likewise.
282         (read_partial_die): Likewise.
283         (find_partial_die): Likewise.
284         (guess_partial_die_structure_name): Likewise.
285         (fixup_partial_die): Likewise.
286         (read_attribute_value): Likewise.
287         (read_addr_index_from_leb128): Likewise.
288         (dwarf2_read_addr_index): Likewise.
289         (dwarf2_string_attr): Likewise.
290         (lnp_state_machine::check_line_address): Likewise.
291         (dwarf_decode_lines_1): Likewise.
292         (dwarf_decode_lines): Likewise.
293         (dwarf2_start_symtab): Likewise.
294         (var_decode_location): Likewise.
295         (new_symbol_full): Likewise.
296         (dwarf2_const_value_data): Likewise.
297         (dwarf2_const_value_attr): Likewise.
298         (dwarf2_const_value): Likewise.
299         (die_type): Likewise.
300         (die_containing_type): Likewise.
301         (lookup_die_type): Likewise.
302         (guess_full_die_structure_name): Likewise.
303         (anonymous_struct_prefix): Likewise.
304         (dwarf2_name): Likewise.
305         (follow_die_ref_or_sig): Likewise.
306         (follow_die_offset): Likewise.
307         (follow_die_ref): Likewise.
308         (dwarf2_fetch_die_loc_sect_off): Likewise.
309         (dwarf2_fetch_constant_bytes): Likewise.
310         (dwarf2_fetch_die_type_sect_off): Likewise.
311         (dwarf2_get_die_type): Likewise.
312         (follow_die_sig): Likewise.
313         (decode_locdesc): Likewise.
314         (dwarf2_per_cu_objfile): Likewise.
315         (dwarf2_per_cu_text_offset): Likewise.
316         (init_one_comp_unit): Assign dwarf2_per_objfile instead of
317         objfile.
318         (set_die_type): Access objfile through
319         dwarf2_per_objfile.
320
321 2018-01-07  Simon Marchi  <simon.marchi@ericsson.com>
322
323         * valprint.c (converted_character_d): Remove typedef.
324         (DEF_VEC_O (converted_character_d)): Remove.
325         (count_next_character): Use std::vector.
326         (print_converted_chars_to_obstack): Likewise.
327         (generic_printstr): Likewise.
328
329 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
330
331         * xml-support.h (struct gdb_xml_value): Add constructor.
332         <value>: Change type to unique_xmalloc_ptr.
333         (gdb_xml_value_s): Remove typedef.
334         (DEF_VEC_O (gdb_xml_value_s)): Remove.
335         (gdb_xml_element_start_handler): Change parameter type to
336         std::vector.
337         (xml_find_attribute): Likewise.
338         * xml-support.c (xml_find_attribute): Change parameter type to
339         std::vector and adjust.
340         (gdb_xml_values_cleanup): Remove.
341         (gdb_xml_parser::start_element): Adjust to std::vector.
342         (xinclude_start_include): Change paraeter type to std::vector
343         and adjust.
344         * btrace.c (check_xml_btrace_version): Likewise.
345         (parse_xml_btrace_block): Likewise.
346         (parse_xml_btrace_pt_config_cpu): Likewise.
347         (parse_xml_btrace_pt): Likewise.
348         (parse_xml_btrace_conf_bts): Likewise.
349         (parse_xml_btrace_conf_pt): Likewise.
350         * memory-map.c (memory_map_start_memory): Likewise.
351         (memory_map_start_property): Likewise.
352         * osdata.c (osdata_start_osdata): Likewise.
353         (osdata_start_item): Likewise.
354         (osdata_start_column): Likewise.
355         * remote.c (start_thread): Likewise.
356         * solib-aix.c (library_list_start_library): Likewise.
357         (library_list_start_list): Likewise.
358         * solib-svr4.c (library_list_start_library): Likewise.
359         (svr4_library_list_start_list): Likewise.
360         * solib-target.c (library_list_start_segment): Likewise.
361         (library_list_start_section): Likewise.
362         (library_list_start_library): Likewise.
363         (library_list_start_list): Likewise.
364         * tracepoint.c (traceframe_info_start_memory): Likewise.
365         (traceframe_info_start_tvar): Likewise.
366         * xml-syscall.c (syscall_start_syscall): Likewise.
367         * xml-tdesc.c (tdesc_start_target): Likewise.
368         (tdesc_start_feature): Likewise.
369         (tdesc_start_reg): Likewise.
370         (tdesc_start_union): Likewise.
371         (tdesc_start_struct): Likewise.
372         (tdesc_start_flags): Likewise.
373         (tdesc_start_enum): Likewise.
374         (tdesc_start_field): Likewise.
375         (tdesc_start_enum_value): Likewise.
376         (tdesc_start_vector): Likewise.
377
378 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
379
380         * extension.h (struct xmethod_worker) <clone>: Remove.
381         * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
382         Remove.
383         (python_xmethod_worker::clone): Remove.
384         * valops.c (find_overload_match): Use std::move instead of
385         clone.
386
387 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
388
389         * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
390         (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
391         <free_xmethod_worker_data>: Remove.
392         <get_matching_xmethod_workers>: Chance VEC to std::vector.
393         <get_xmethod_arg_types>: Remove.
394         <get_xmethod_result_type>: Remove.
395         <invoke_xmethod>: Remove.
396         * extension.c (new_xmethod_worker): Remove.
397         (clone_xmethod_worker): Remove.
398         (get_matching_xmethod_workers): Return void, pass std::vector by
399         pointer.
400         (get_xmethod_arg_types): Rename to...
401         (xmethod_worker::get_arg_types): ... this, and adjust.
402         (get_xmethod_result_type): Rename to...
403         (xmethod_worker::get_result_type): ... this, and adjust.
404         (invoke_xmethod): Remove.
405         (free_xmethod_worker): Remove.
406         (free_xmethod_worker_vec): Remove.
407         * extension.h (enum ext_lang_rc): Move here from
408         extension-priv.h.
409         (struct xmethod_worker): Add constructor and destructor.
410         <data>: Remove.
411         <value>: Remove.
412         <invoke, clone, do_get_result_type, do_get_arg_types>: New
413         virtual pure methods.
414         <get_arg_types, get_result_type>: New methods.
415         (xmethod_worker_ptr): Remove typedef.
416         (DEF_VEC_P (xmethod_worker_ptr)): Remove.
417         (xmethod_worker_vec): Remove typedef.
418         (xmethod_worker_up): New typedef.
419         (invoke_xmethod): Remove.
420         (clone_xmethod_worker): Remove.
421         (free_xmethod_worker): Remove.
422         (free_xmethod_worker_vec): Remove.
423         (get_xmethod_arg_types): Remove.
424         (get_xmethod_result_type): Remove.
425         * valops.c (find_method_list): Use std::vector, don't use
426         intermediate vector.
427         (value_find_oload_method_list): Use std::vector.
428         (find_overload_match): Use std::vector.
429         (find_oload_champ): Use std::vector.
430         * value.c (value_free): Use operator delete.
431         (value_of_xmethod): Rename to...
432         (value_from_xmethod): ... this.  Don't assign
433         xmethod_worker::value, take rvalue-reference.
434         (result_type_of_xmethod): Adjust.
435         (call_xmethod): Adjust.
436         * value.h: Include extension.h.
437         (struct xmethod_worker): Don't forward-declare.
438         (value_of_xmethod): Rename to...
439         (value_from_xmethod): ... this, take rvalue-reference.
440         * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
441         (struct python_xmethod_worker): ... this, add constructor and
442         destructor.
443         <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
444         (gdbpy_free_xmethod_worker_data): Rename to...
445         (python_xmethod_worker::~python_xmethod_worker): ... this and
446         adjust.
447         (gdbpy_clone_xmethod_worker_data): Rename to...
448         (python_xmethod_worker::clone): ... this and adjust.
449         (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
450         temporary vector.
451         (gdbpy_get_xmethod_arg_types): Rename to...
452         (python_xmethod_worker::do_get_arg_types): ... this and adjust.
453         (gdbpy_get_xmethod_result_type): Rename to...
454         (python_xmethod_worker::do_get_result_type): ... this and
455         adjust.
456         (gdbpy_invoke_xmethod): Rename to...
457         (python_xmethod_worker::invoke): ... this and adjust.
458         (new_python_xmethod_worker): Rename to...
459         (python_xmethod_worker::python_xmethod_worker): ... this and
460         adjust.
461         * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
462         Remove.
463         (gdbpy_free_xmethod_worker_data): Remove.
464         (gdbpy_get_matching_xmethod_workers): Use std::vector.
465         (gdbpy_get_xmethod_arg_types): Remove.
466         (gdbpy_get_xmethod_result_type): Remove.
467         (gdbpy_invoke_xmethod): Remove.
468         * python/python.c (python_extension_ops): Remove obsolete
469         callbacks.
470
471 2018-01-05  Pedro Alves  <palves@redhat.com>
472
473         PR gdb/18653
474         * common/signals-state-save-restore.c
475         (save_original_signals_state): New parameter 'quiet'.  Warn if we
476         find a custom handler preinstalled, instead of internal erroring.
477         But only warn if !quiet.
478         * common/signals-state-save-restore.h
479         (save_original_signals_state): New parameter 'quiet'.
480         * main.c (captured_main_1): Move save_original_signals_state call
481         after option handling, and pass QUIET.
482
483 2018-01-05  Pedro Alves  <palves@redhat.com>
484
485         * spu-tdep.c (spu_catch_start): Pass
486         symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
487
488 2018-01-05  Pedro Alves  <palves@redhat.com>
489
490         PR gdb/22670
491         * ada-lang.c (literal_symbol_name_matcher): New function.
492         (ada_get_symbol_name_matcher): Use it for
493         symbol_name_match_type::SEARCH_NAME.
494         * block.c (block_lookup_symbol): New parameter 'match_type'.  Pass
495         it down instead of assuming symbol_name_match_type::FULL.
496         * block.h (block_lookup_symbol): New parameter 'match_type'.
497         * c-valprint.c (print_unpacked_pointer): Use
498         lookup_symbol_search_name instead of lookup_symbol.
499         * compile/compile-object-load.c (get_out_value_type): Pass down
500         symbol_name_match_type::SEARCH_NAME.
501         * cp-namespace.c (cp_basic_lookup_symbol): Pass down
502         symbol_name_match_type::FULL.
503         * cp-support.c (cp_get_symbol_name_matcher): Handle
504         symbol_name_match_type::SEARCH_NAME.
505         * infrun.c (insert_exception_resume_breakpoint): Use
506         lookup_symbol_search_name.
507         * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
508         * psymtab.c (maintenance_check_psymtabs): Use
509         symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
510         * stack.c (print_frame_args): Use lookup_symbol_search_name and
511         SYMBOL_SEARCH_NAME.
512         * symtab.c (lookup_local_symbol): Don't demangle the lookup name
513         if symbol_name_match_type::SEARCH_NAME.
514         (lookup_symbol_in_language): Pass down
515         symbol_name_match_type::FULL.
516         (lookup_symbol_search_name): New.
517         (lookup_language_this): Pass down
518         symbol_name_match_type::SEARCH_NAME.
519         (lookup_symbol_aux, lookup_local_symbol): New parameter
520         'match_type'.  Pass it down.
521         * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
522         (lookup_symbol_search_name): New declaration.
523         (lookup_symbol_in_block): New 'match_type' parameter.
524
525 2018-01-05  Pedro Alves  <palves@redhat.com>
526
527         PR gdb/22670
528         * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
529         ada_lookup_symbol.
530         (ada_lookup_symbol): Reimplement in terms of
531         ada_lookup_symbol_list, bits factored out from
532         ada_lookup_encoded_symbol.
533
534 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
535
536         * ada-exp.y (write_object_renaming): When subscripting an array
537         using a symbol as the index, pass the block in call to
538         ada_lookup_encoded_symbol when looking that symbol up.
539
540 2018-01-05  Jerome Guitton  <guitton@adacore.com>
541
542         * ada-lang.c (ada_array_length): Use ada_index_type instead of
543         TYPE_INDEX_TYPE.
544
545 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
546
547         * ada-lang.c (ada_to_fixed_value_create): Add handling of
548         the case where VALUE_LVAL (val0) is not lval_memory.
549
550 2018-01-05  Xavier Roirand  <roirand@adacore.com>
551
552         * ada-valprint.c (print_optional_low_bound): Handle
553         character-indexed array printing like boolean-indexed array
554         printing.
555
556 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
557
558         * NEWS: Create a new section for the next release branch.
559         Rename the section of the current branch, now that it has
560         been cut.
561
562 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
563
564         GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
565         * version.in: Bump version to 8.1.50.DATE-git.
566
567 2018-01-03  Xavier Roirand  <roirand@adacore.com>
568
569         * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
570         Add field.
571         * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
572         Add field.
573         (default_exception_support_info) <catch_handlers_sym>: Add field.
574         (exception_support_info_fallback) <catch_handlers_sym>: Add field.
575         (ada_exception_name_addr_1): Add "catch handlers" handling.
576         (ada_exception_catchpoint_cond_string) <ex>: New parameter.
577         Update all callers.
578         (create_excep_cond_exprs) <ex>: Add parameter.
579         (re_set_exception): Update create_excep_cond_exprs call.
580         (print_it_exception, print_one_exception, print_mention_exception)
581         (print_recreate_exception): Add "catch handler" handling.
582         (allocate_location_catch_handlers, re_set_catch_handlers)
583         (check_status_catch_handlers, print_it_catch_handlers)
584         (print_one_catch_handlers, print_mention_catch_handlers)
585         (print_recreate_catch_handlers): New function.
586         (catch_handlers_breakpoint_ops): New variable.
587         (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
588         Add parameter.  Add "catch handler" handling.
589         (ada_exception_sym_name, ada_exception_breakpoint_ops):
590         Add "catch handler" handling.
591         (ada_exception_catchpoint_cond_string): Add "catch handler"
592         handling.
593         (create_ada_exception_catchpoint): Update create_excep_cond_exprs
594         call.
595         (catch_ada_handlers_command): New function.
596         (initialize_ada_catchpoint_ops): Initialize "catch handlers"
597         operations structure.
598         (_initialize_ada_language): Add "catch handlers" command entry.
599         * NEWS: Document "catch handlers" feature.
600
601 2018-01-02  Joel Brobecker  <brobecker@adacore.com>
602
603         * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
604         account when creating the array type of the slice.
605         (ada_value_slice): Likewise.
606
607 2018-01-02  Joel Brobecker  <brobecker@adacore.com>
608
609         * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
610         New enum value.
611         (create_array_type_with_stride): Add byte_stride_prop parameter.
612         * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
613         New parameter.  Update all callers in this file.
614         (array_type_has_dynamic_stride): New function.
615         (is_dynamic_type_internal, resolve_dynamic_array): Add handling
616         of arrays with dynamic byte strides.
617         * dwarf2read.c (read_array_type): Add support for dynamic
618         DW_AT_byte_stride attributes.
619
620 2018-01-02  Joel Brobecker  <brobecker@adacore.com>
621
622         * dwarf2read.c (read_unspecified_type): Treat
623         DW_TAG_enumeration_type DIEs from Ada units as stubs.
624
625 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
626
627         Update copyright year range in all GDB files.
628
629 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
630
631         * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
632         and gdb/testsuite/gdb.base/step-line.c.
633
634 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
635
636         * copyright.py (main): Dump the contents of
637         MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
638         even if BY_HAND is empty.
639
640 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
641
642         * top.c (print_gdb_version): Update Copyright year in version
643         message.
644
645 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
646
647         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
648
649 For older changes see ChangeLog-2017.
650 \f
651 Local Variables:
652 mode: change-log
653 left-margin: 8
654 fill-column: 74
655 version-control: never
656 coding: utf-8
657 End: