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