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