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