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