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