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